Jump to content

Template:Trait infobox: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
{{Trait Infobox
<includeonly>
| name           = {{{name|{{PAGENAME}}}}}
<!--
| icon         = {{{icon|}}}
  Trait Infobox for Inzoi
| description   = {{{description|}}}
  ---------------------------------------------------
| category      = {{{category|}}} <!-- Wise and Logical, Jovial and Cheerful, etc. -->
  Inspired by the FFXIV "Item infobox," but repurposed
| subcategory  = {{{subcategory|}}} <!-- Specific trait name like Expert, Explorer, etc. -->
  for use with character traits in the Inzoi game.
| effects      = {{{effects|}}} <!-- Optional: If a trait has special gameplay effects -->
 
| unlock      = {{{unlock|}}} <!-- Optional: If the trait requires unlocking -->
  PARAMETERS:
| patch        = {{{patch|}}} <!-- Optional: If traits are introduced in specific updates -->
  | name       = Name of the trait (defaults to PAGENAME if omitted).
}}
  | icon       = File name for the trait’s icon (e.g. "Expert.png"); omit "File:" prefix.
  | group      = The overarching group or personality category (e.g. "Wise and Logical").
  | type        = More specific sub-type or classification if applicable (optional).
  | release    = For tracking expansions or major releases. (optional)
  | patch      = For tracking patch version (optional).
  | description = Description of the trait.
  | synergy    = Optional field to list synergy or related traits.
  | notes      = Optional developer/extra notes.
 
  USAGE EXAMPLE (on a Trait page):
  {{Trait infobox
  | name        = Expert
  | icon        = ExpertTrait.png
  | group      = Wise and Logical
  | type        = Knowledge-Focused
  | release    =
  | patch      =
  | description = Pursues exceptional knowledge and skills, interested in theory...
  | synergy    = Explorer
  | notes      = This trait is especially useful for science-based careers.
  }}
-->
{{#switch:{{lc:{{{release|}}}}}
|
  <!-- Example for future expansions; replace these with actual expansions if desired
  | expansion1 = <!-- some special category or banner -->
  | expansion2 =  
  -->
}}{{#if:{{{release|}}}||{{#switch:{{{patch|}}}
| 1.0|2.0|2.05|2.1|2.15|2.16|2.2|2.21|2.25|2.28|2.3|2.35|2.38|2.4|2.41|2.45|2.5|2.51|2.55|2.56|2.57=
| #default = [[Category:Missing release]]
}}}}
 
<div class="infobox-n trait">
  <!-- Hidden "dot" to help with layout -->
  <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div>


<div class="infobox-trait">
  <!-- Icon Section -->
   <div class="icon infobox-icon">
   <div class="icon infobox-icon">
     {{#if: {{{icon|}}}
     {{#if: {{{icon|}}}
    | [[File:{{{icon}}}|46px]]
      | [[File:{{{icon}}}|46px]]
    | [[File:DefaultTraitIcon.png|46px]] <!-- Default icon if none is provided -->
      | [[File:DefaultTraitIcon.png|46px]] <!-- Fallback if icon not provided -->
     }}
     }}
   </div>
   </div>


   <p class="heading">'''{{{name|{{PAGENAME}}}}}'''</p>
  <!-- Heading / Title -->
   <p class="heading">
    [[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]
  </p>


   <div class="trait-details">
  <!-- Trait Classification -->
     <div class="trait-category">
   <div class="statistics trait">
      '''Personality Category:''' {{{category|Unknown}}}
     <!-- Group (e.g. "Wise and Logical") -->
    </div>
    {{#if: {{{group|}}}
    <div class="trait-subcategory">
      | <span class="characteristic group" title="Personality Group/Category">{{{group}}}</span>
      '''Trait Type:''' {{{subcategory|Unknown}}}
    }}
     </div>
     <!-- Type (optional further classification) -->
     {{#if: {{{description|}}}
     {{#if: {{{type|}}}
    | <div class="trait-description">
      | &nbsp; • &nbsp;<span class="characteristic type">{{{type}}}</span>
        '''Description:''' {{{description}}}
      </div>
     }}
     }}
   </div>
   </div>


   {{#if: {{{effects|}}}
   <div class="wrapper">
  | <div class="trait-effects">
    <!-- Additional fields can be shown as a definition list -->
      '''Effects:''' {{{effects}}}
    {{#if: {{{release|}}}
    </div>
      | ;Release
  }}
        :{{{release}}}
    }}
    {{#if: {{{patch|}}}
      | ;Patch
        :{{{patch}}}
    }}
    {{#if: {{{synergy|}}}
      | ;Related/Synergy
        :{{{synergy}}}
    }}
    {{#if: {{{notes|}}}
      | ;Notes
        :{{{notes}}}
    }}
  </div>


   {{#if: {{{unlock|}}}
  <!-- Description -->
  | <div class="trait-unlock">
   {{#if: {{{description|}}}
      '''Unlock Conditions:''' {{{unlock}}}
    | {{Quotation|game|
    </div>
        {{{description}}}
      }}
   }}
   }}


  {{#if: {{{patch|}}}
  | <div class="trait-patch">
      '''Introduced in Patch:''' {{{patch}}}
    </div>
  }}
</div>
</div>


[[Category:Traits]]
<!--
[[Category:{{{category}}} Traits]]
  AUTOCATEGORIZATION (optional).
  For example, if you wish to auto-categorize by group,
  uncomment or extend the logic below:
-->
{{#if: {{{group|}}}
| [[Category:{{{group}}} Traits]]
}}
 
</includeonly>
<noinclude>
== Usage ==
Use this template to provide an infobox for an **Inzoi** trait page.
 
'''Example:'''
<pre>
{{Trait infobox
| name        = Expert
| icon        = ExpertTrait.png
| group      = Wise and Logical
| type        = Knowledge-Focused
| release    = (Optional release info)
| patch      = (Optional patch info)
| description = Pursues exceptional knowledge and skills, interested in theory, technology...
| synergy    = Explorer
| notes      = This trait is especially effective in research-related professions.
}}
</pre>
 
== Parameters ==
; name
: (Optional) The trait’s display name. Defaults to the page name if left blank.
; icon
: (Optional) The file name for the trait’s icon. If omitted, will display "DefaultTraitIcon.png".
; group
: (Optional) The trait’s main personality category or group (e.g. "Wise and Logical").
; type
: (Optional) A secondary classification or sub-type (e.g. "Knowledge-Focused").
; release
: (Optional) Expansion or major update in which this trait was introduced.
; patch
: (Optional) Specific patch version for the trait’s introduction or rework.
; description
: (Optional) Main descriptive text for the trait.
; synergy
: (Optional) Other traits it works well with or is closely related to.
; notes
: (Optional) Developer notes, additional mechanics, or tips.
 
[[Category:Infobox templates|Trait infobox]]
</noinclude>