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>
<includeonly>
<!--  
<!--  
    =============================================
  =============================
            TEMPLATE: Trait Infobox
      TEMPLATE: Trait Infobox
    =============================================
  =============================
    Use this template on trait-specific pages.
 
    Example usage:
  This template combines both the simple trait display and optional extra fields.
        {{Trait infobox
 
        | name       = Expert
  PARAMETER NOTES:
        | image      = ExpertIcon.png
    | trait        = The trait’s name (e.g. "Expert"). If left empty, 'name' is used instead.
        | imagesize  = 120px
    | icon        = Filename for the trait’s icon (e.g. "Trait_Expert.png").
        | alttext     = Icon of an open book
    | personality  = The trait’s personality group (e.g. "Wise and Logical"). If left empty, 'category' is used.
        | iconcaption = Official Expert Icon
    | description  = A brief or detailed description of the trait.
        | category    = Wise and Logical
    | tagline      = A short tagline or flavor text for the trait.
        | tagline     = "Pursuing knowledge and skill"
    | gameplaytips = Optional gameplay tips or notes.
        | description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
    | conflicts    = Optional list or brief explanation of conflicting traits.
        | gameplaytips= Experts learn new skills more quickly and have special research options.
    | synergy      = Optional list of complementary traits or synergy notes.
        | conflicts   = May clash with traits that discourage learning
    | introduced  = Optional mention of when/how the trait was introduced (e.g. "Base Game" or version number).
        | synergy     = Explorer, Go-Getter
   
        | introduced = Base Game
  USAGE EXAMPLE:
        }}
    {{Trait infobox
    | trait       = Expert
    | icon        = Trait_Expert.png
    | personality  = Wise and Logical
     | description  = Pursues exceptional knowledge and skills...
    | 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
    }}
-->
-->


<div style="float:right; margin:0 0 1em 1em; width:auto;">
<div style="float:right; margin:0 0 1em 1em; width:auto;">
{| class="infobox" style="width:280px; background-color:#f9f9f9; border:1px solid #aaa; font-size:90%; text-align:left;"
{| class="infobox" style="width:300px; border:1px solid #aaa; background:#fff; font-size:90%; text-align:left;"
|+ style="text-align:center; font-size:110%; font-weight:bold; padding:0.2em 0.4em;" | {{{name|}}}
|+ style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait|{{{name|}}}}}
 
|-
|-
| colspan="2" style="text-align:center; padding:0.5em;"
| style="text-align:center; vertical-align:middle; width:64px;" |  
| {{#if: {{{image|}}}
[[File:{{{icon|Placeholder.png}}}|64px|alt={{{alttext|}}}]]
    | [[File:{{{image}}}|{{{imagesize|120px}}}|alt={{{alttext|}}}|center]]
| style="vertical-align:middle; padding:4px;" | '''Personality:''' {{{personality|{{{category|}}}}}
  }}
 
  {{#if: {{{iconcaption|}}}
{{#if: {{{tagline|}}}|
    | <div style="font-size:smaller; font-style:italic;">{{{iconcaption}}}</div>
  }}
|-
|-
! style="width:90px; background:#ececec; text-align:left; padding:0.2em 0.4em;" | Category
! colspan="2" style="background:#f8f8f8; padding:6px; text-align:center; border-top:1px solid #ddd;" | {{{tagline}}}
| style="padding:0.2em 0.4em;" | {{{category|}}}
}}
 
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Tagline
| colspan="2" style="padding:6px;" | '''Description:''' {{{description|}}}
| style="padding:0.2em 0.4em;" | {{{tagline|}}}
 
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Description
| style="padding:0.2em 0.4em;" | {{{description|}}}
{{#if: {{{gameplaytips|}}}|
{{#if: {{{gameplaytips|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Gameplay Tips
| colspan="2" style="padding:6px;" | '''Gameplay Tips:''' {{{gameplaytips}}}
| style="padding:0.2em 0.4em;" | {{{gameplaytips}}}
}}
}}
{{#if: {{{conflicts|}}}|
{{#if: {{{conflicts|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Conflicts
| colspan="2" style="padding:6px;" | '''Conflicts:''' {{{conflicts}}}
| style="padding:0.2em 0.4em;" | {{{conflicts}}}
}}
}}
{{#if: {{{synergy|}}}|
{{#if: {{{synergy|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Synergy
| colspan="2" style="padding:6px;" | '''Synergy:''' {{{synergy}}}
| style="padding:0.2em 0.4em;" | {{{synergy}}}
}}
}}
{{#if: {{{introduced|}}}|
{{#if: {{{introduced|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Introduced
| colspan="2" style="padding:6px;" | '''Introduced:''' {{{introduced}}}
| style="padding:0.2em 0.4em;" | {{{introduced}}}
}}
}}
|}
|}
Line 68: Line 74:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
To add this infobox to a trait page, insert the following code (at the top or wherever desired):
Create or edit a page for a specific trait and add:


<pre>
<pre>
{{Trait infobox
{{Trait infobox
| name       = Expert
| trait       =  
| image      = ExpertIcon.png
| icon        =  
| imagesize  = 120px
| personality =  
  | alttext    = Icon of an open book
| description =  
| iconcaption = Official Expert Icon
| tagline     =  
  | category    = Wise and Logical
| gameplaytips =  
| tagline     = "Pursuing knowledge and skill"
| conflicts   =  
| description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
| synergy     =  
| gameplaytips= Experts learn new skills more quickly and have special research options.
| introduced   =  
| conflicts   = May clash with traits that discourage learning
| synergy     = Explorer, Go-Getter
| introduced = Base Game
}}
}}
</pre>
</pre>


Feel free to remove any parameters you don’t need. This combined infobox provides a consistent, attractive layout for all Inzoi trait pages.
See the code comments in this template for further parameter details.
</noinclude>
</noinclude>

Revision as of 14:57, 12 February 2025


Usage

Create or edit a page for a specific trait and add:

{{Trait infobox
| trait        = 
| icon         = 
| personality  = 
| description  = 
| tagline      = 
| gameplaytips = 
| conflicts    = 
| synergy      = 
| introduced   = 
}}

See the code comments in this template for further parameter details.