Jump to content

Template:Trait infobox: Difference between revisions

From inZOI Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
<includeonly>
<noinclude>
<!--
This template creates an infobox for Inzoi traits.
  =============================
      TEMPLATE: Trait Infobox
  =============================
    
    
  This template combines both the simple trait display and optional extra fields.
**Parameters:**
* **icon** – Filename for the trait’s icon (e.g. `Trait_Expert.png`)
* **trait** – The trait’s name (e.g. `Expert`)
* **personality** – The personality group (e.g. `Wise and Logical`)
* **description** – A brief description of the trait
 
Usage example:
    
    
  PARAMETER NOTES:
    | trait        = The trait’s name (e.g. "Expert"). If left empty, 'name' is used instead.
    | icon        = Filename for the trait’s icon (e.g. "Trait_Expert.png").
    | personality  = The trait’s personality group (e.g. "Wise and Logical"). If left empty, 'category' is used.
    | description  = A brief or detailed description of the trait.
    | tagline      = A short tagline or flavor text for the trait.
    | gameplaytips = Optional gameplay tips or notes.
    | conflicts    = Optional list or brief explanation of conflicting traits.
    | synergy      = Optional list of complementary traits or synergy notes.
    | introduced  = Optional mention of when/how the trait was introduced (e.g. "Base Game" or version number).
   
  USAGE EXAMPLE:
     {{Trait infobox
     {{Trait infobox
    | trait        = Expert
      | icon = Trait_Expert.png
    | icon         = Trait_Expert.png
      | trait = Expert
    | personality = Wise and Logical
      | personality = Wise and Logical
    | description = Pursues exceptional knowledge and skills...
      | description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
    | tagline      = "Pursuing knowledge and skill"
    | gameplaytips = Great for skill-building...
    | conflicts    = May clash with traits that discourage study
    | synergy      = Explorer, Go-Getter
    | introduced  = Base Game
     }}
     }}
-->
</noinclude>
 
<div style="float:right; margin:0 0 1em 1em; width:auto;">
{| class="infobox" style="width:300px; border:1px solid #aaa; background:#fff; font-size:90%; text-align:left;"
|+ style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait|{{{name|}}}}}
 
|-
| style="text-align:center; vertical-align:middle; width:64px;" |
[[File:{{{icon|Placeholder.png}}}|64px|alt={{{alttext|}}}]]
| style="vertical-align:middle; padding:4px;" | '''Personality:''' {{{personality|{{{category|}}}}}


{{#if: {{{tagline|}}}|
{| class="infobox" style="width:300px; font-size:90%; border:1px solid #aaa; background:#fff;"
|-
|-
! colspan="2" style="background:#f8f8f8; padding:6px; text-align:center; border-top:1px solid #ddd;" | {{{tagline}}}
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
}}
 
|-
|-
| colspan="2" style="padding:6px;" | '''Description:''' {{{description|}}}
| style="text-align:center; vertical-align:middle; width:64px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
 
| style="vertical-align:middle; padding:4px;" | <b>Personality:</b> {{{personality}}}
{{#if: {{{gameplaytips|}}}|
|-
|-
| colspan="2" style="padding:6px;" | '''Gameplay Tips:''' {{{gameplaytips}}}
| colspan="2" style="background:#f8f8f8; padding:6px; border-top:1px solid #ddd;" | {{{description}}}
}}
 
{{#if: {{{conflicts|}}}|
|-
| colspan="2" style="padding:6px;" | '''Conflicts:''' {{{conflicts}}}
}}
 
{{#if: {{{synergy|}}}|
|-
| colspan="2" style="padding:6px;" | '''Synergy:''' {{{synergy}}}
}}
 
{{#if: {{{introduced|}}}|
|-
| colspan="2" style="padding:6px;" | '''Introduced:''' {{{introduced}}}
}}
|}
|}
</div>
</includeonly>
<noinclude>
== Usage ==
Create or edit a page for a specific trait and add:
<pre>
{{Trait infobox
| trait        =
| icon        =
| personality  =
| description  =
| tagline      =
| gameplaytips =
| conflicts    =
| synergy      =
| introduced  =
}}
</pre>
See the code comments in this template for further parameter details.
</noinclude>

Revision as of 15:00, 12 February 2025

This template creates an infobox for Inzoi traits.

    • Parameters:**
  • **icon** – Filename for the trait’s icon (e.g. `Trait_Expert.png`)
  • **trait** – The trait’s name (e.g. `Expert`)
  • **personality** – The personality group (e.g. `Wise and Logical`)
  • **description** – A brief description of the trait

Usage example:


Expert
File:Trait Expert.png Personality: Wise and Logical
Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.


{{{trait}}}
File:Placeholder.png Personality: {{{personality}}}
{{{description}}}