Jump to content

Template:Trait infobox: Difference between revisions

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


<div style="float:right; margin:0 0 1em 1em; width:auto;">
{| class="infobox" style="width:300px; font-size:90%; border:1px solid #aaa; background:#fff;"
{| class="infobox" style="width: 280px; background-color: #f9f9f9; border:1px solid #aaa; font-size:90%; text-align:left;"
|+ style="text-align:center; font-size:110%; font-weight:bold; padding:0.2em 0.4em;" | {{{name|}}}
|-
|-
| colspan="2" style="text-align:center; padding:0.5em;"
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
| {{#if: {{{image|}}}
    | [[File:{{{image}}}|{{{imagesize|120px}}}|alt={{{alttext|}}}|center]]
  }}
  {{#if: {{{iconcaption|}}}
    | <div style="font-size:smaller; font-style:italic;">{{{iconcaption}}}</div>
  }}
|-
|-
! style="width: 90px; background:#ececec; text-align:left; padding:0.2em 0.4em;" | Category
| style="text-align:center; vertical-align:middle; width:64px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
| style="padding:0.2em 0.4em;" | {{{category|}}}
| style="vertical-align:middle; padding:4px;" | <b>Personality:</b> {{{personality}}}
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Tagline
| colspan="2" style="background:#f8f8f8; padding:6px; border-top:1px solid #ddd;" | {{{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|}}}|
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Gameplay Tips
| style="padding:0.2em 0.4em;" | {{{gameplaytips}}}
}}
{{#if: {{{conflicts|}}}|
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Conflicts
| style="padding:0.2em 0.4em;" | {{{conflicts}}}
}}
{{#if: {{{synergy|}}}|
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Synergy
| style="padding:0.2em 0.4em;" | {{{synergy}}}
}}
{{#if: {{{introduced|}}}|
|-
! 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:38, 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}}}