Jump to content

Template:Trait infobox: Difference between revisions

From inZOI Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>
{{Trait Infobox
<div class="infobox-n trait" style="width:300px; border:1px solid #aaa; background:#f9f9f9; font-family: sans-serif;">
| name          = {{{name|{{PAGENAME}}}}}
  <!-- Header: Trait Name -->
| icon          = {{{icon|}}}
  <div class="infobox-header" style="background:#e0e0e0; text-align:center; font-weight:bold; font-size:120%; padding:4px;">
| description  = {{{description|}}}
    {{{name|{{PAGENAME}}}}
| category      = {{{category|}}} <!-- Wise and Logical, Jovial and Cheerful, etc. -->
  </div>
| subcategory  = {{{subcategory|}}} <!-- Specific trait name like Expert, Explorer, etc. -->
 
| effects      = {{{effects|}}} <!-- Optional: If a trait has special gameplay effects -->
  <!-- Icon: Display the trait icon if provided, or default to a file named as the trait -->
| unlock      = {{{unlock|}}} <!-- Optional: If the trait requires unlocking -->
  <div class="infobox-icon" style="text-align:center; margin:8px 0;">
| patch        = {{{patch|}}} <!-- Optional: If traits are introduced in specific updates -->
}}
 
<div class="infobox-trait">
  <div class="icon infobox-icon">
     {{#if: {{{icon|}}}
     {{#if: {{{icon|}}}
      | [[File:{{{icon}}}|80px]]
    | [[File:{{{icon}}}|46px]]
      | [[File:{{PAGENAME}}.png|80px]]
    | [[File:DefaultTraitIcon.png|46px]] <!-- Default icon if none is provided -->
     }}
     }}
   </div>
   </div>
 
 
   <!-- Trait Group (e.g. "Wise and Logical", "Jovial and Cheerful") -->
   <p class="heading">'''{{{name|{{PAGENAME}}}}}'''</p>
   <div class="infobox-group" style="text-align:center; font-style:italic; color:#555; margin-bottom:6px;">
 
     {{#if: {{{group|}}} | ({{{group}}}) }}
   <div class="trait-details">
    <div class="trait-category">
      '''Personality Category:''' {{{category|Unknown}}}
    </div>
    <div class="trait-subcategory">
      '''Trait Type:''' {{{subcategory|Unknown}}}
    </div>
     {{#if: {{{description|}}}
    | <div class="trait-description">
        '''Description:''' {{{description}}}
      </div>
    }}
   </div>
   </div>
 
  <!-- Description -->
  <div class="infobox-description" style="padding: 0 8px 8px 8px; font-size:90%;">
    {{{description|}}}
  </div>
 
  <div style="clear:both;"></div>
</div>
</includeonly>
<noinclude>
<!--
Trait infobox template for Inzoi Wiki.


Usage:
  {{#if: {{{effects|}}}
  {{Trait infobox
  | <div class="trait-effects">
    | name = Expert
      '''Effects:''' {{{effects}}}
    | icon = Expert.png
    </div>
    | group = Wise and Logical
  }}
    | description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
 
  {{#if: {{{unlock|}}}
  | <div class="trait-unlock">
      '''Unlock Conditions:''' {{{unlock}}}
    </div>
   }}
   }}


Parameters:
   {{#if: {{{patch|}}}
   * name: The trait's name. Defaults to the page name ({{PAGENAME}}) if not provided.
  | <div class="trait-patch">
  * icon: (Optional) The filename of the trait's icon. If not specified, the template will attempt to load a file named "{{PAGENAME}}.png".
      '''Introduced in Patch:''' {{{patch}}}
   * group: (Optional) The trait’s group or archetype (for example, "Wise and Logical" or "Jovial and Cheerful"). It appears in parentheses under the trait name.
    </div>
  * description: A brief description of the trait.
   }}
</div>


Be sure to add this template to the appropriate category:
[[Category:Traits]]
[[Category:Inzoi Traits]]
[[Category:{{{category}}} Traits]]
-->
</noinclude>

Revision as of 14:40, 12 February 2025

Template:Trait Infobox

Trait infobox

     Personality Category: Unknown
     Trait Type: Unknown




[[Category:{{{category}}} Traits]]