Jump to content

Template:Trait infobox: Difference between revisions

From inZOI Wiki
Undo revision 99 by Zoi (talk)
Tag: Undo
No edit summary
Tag: Reverted
Line 1: Line 1:
<noinclude>
<includeonly>
This template creates an infobox for Inzoi traits.
<!--
 
    =============================================
**Parameters:**
            TEMPLATE: Trait Infobox
* **icon** – Filename for the trait’s icon (e.g. `Trait_Expert.png`)
    =============================================
* **trait** – The trait’s name (e.g. `Expert`)
    Use this template on trait-specific pages.
* **personality** – The personality group (e.g. `Wise and Logical`)
    Example usage:
* **description** – A brief description of the trait
        {{Trait infobox
        | name        = Expert
        | image      = ExpertIcon.png
        | imagesize  = 120px
        | alttext    = Icon of an open book
        | iconcaption = Official Expert Icon
        | category    = Wise and Logical
        | tagline    = "Pursuing knowledge and skill"
        | description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
        | gameplaytips= Experts learn new skills more quickly and have special research options.
        | conflicts  = May clash with traits that discourage learning
        | synergy    = Explorer, Go-Getter
        | introduced  = Base Game
        }}
-->


Usage example:
<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;"
    {{Trait infobox
|+ style="text-align:center; font-size:110%; font-weight:bold; padding:0.2em 0.4em;" | {{{name|}}}
      | icon = Trait_Expert.png
|-
      | trait = Expert
| colspan="2" style="text-align:center; padding:0.5em;"
      | personality = Wise and Logical
| {{#if: {{{image|}}}
      | description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
    | [[File:{{{image}}}|{{{imagesize|120px}}}|alt={{{alttext|}}}|center]]
    }}
  }}
</noinclude>
  {{#if: {{{iconcaption|}}}
 
    | <div style="font-size:smaller; font-style:italic;">{{{iconcaption}}}</div>
{| class="infobox" style="width:300px; font-size:90%; border:1px solid #aaa; background:#fff;"
  }}
|-
! style="width: 90px; background:#ececec; text-align:left; padding:0.2em 0.4em;" | Category
| style="padding:0.2em 0.4em;" | {{{category|}}}
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Tagline
| 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|}}}|
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Gameplay Tips
| style="padding:0.2em 0.4em;" | {{{gameplaytips}}}
}}
{{#if: {{{conflicts|}}}|
|-
|-
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Conflicts
| style="padding:0.2em 0.4em;" | {{{conflicts}}}
}}
{{#if: {{{synergy|}}}|
|-
|-
| style="text-align:center; vertical-align:middle; width:64px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Synergy
| style="vertical-align:middle; padding:4px;" | <b>Personality:</b> {{{personality}}}
| style="padding:0.2em 0.4em;" | {{{synergy}}}
}}
{{#if: {{{introduced|}}}|
|-
|-
| colspan="2" style="background:#f8f8f8; padding:6px; border-top:1px solid #ddd;" | {{{description}}}
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Introduced
| style="padding:0.2em 0.4em;" | {{{introduced}}}
}}
|}
|}
</div>
</includeonly>
<noinclude>
== Usage ==
To use this template on a trait page, add the following code at the top (or wherever desired). Fill out or remove any parameters as needed:
<pre>
{{Trait infobox
| name        =
| image      =
| imagesize  =
| alttext    =
| iconcaption =
| category    =
| tagline    =
| description =
| gameplaytips=
| conflicts  =
| synergy    =
| introduced  =
}}
</pre>
</noinclude>

Revision as of 14:32, 12 February 2025


Usage

To use this template on a trait page, add the following code at the top (or wherever desired). Fill out or remove any parameters as needed:

{{Trait infobox
| name        = 
| image       = 
| imagesize   = 
| alttext     = 
| iconcaption = 
| category    = 
| tagline     = 
| description = 
| gameplaytips= 
| conflicts   = 
| synergy     = 
| introduced  = 
}}