Jump to content

Template:Trait infobox: Difference between revisions

From inZOI Wiki
No edit summary
Tag: Reverted
No edit summary
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<!--  
{| class="infobox" style="font-size:90%; border:1px solid #aaa; background:#fff;"
  =====================================
|-
  Trait Infobox for Inzoi (Stylized)
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
  =====================================
|-
  PARAMETERS:
| colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
  | name        = The displayed name of the trait (defaults to PAGENAME if omitted).
|-
  | icon        = File name of the trait icon (e.g., "Expert.png").
| colspan="2" style="text-align:center; font-style:italic; padding:4px;" | {{{tagline}}}
  | group      = Parent category / personality group for the trait.
|-
  | type        = Secondary classification or type (optional).
! style="width:100px; background:#ececec; text-align:left; padding:4px;" | Keywords
  | release    = Expansion/major release (optional).
| style="padding:4px;" | {{#arraymap:{{{keywords|}}}|,|x|[[x]]}}
  | patch      = Patch version (optional).
|-
  | description = Main description of the trait (in-game flavor).
! style="background:#ececec; text-align:left; padding:4px;" | Values
  | synergy    = Related/synergistic traits (optional).
| style="padding:4px;" | {{#arraymap:{{{values|}}}|,|x|[[x]]}}
  | notes      = Additional notes, tips, or dev info (optional).
|-
-->
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description'''
|-
! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{description}}}
|-
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Characteristics'''
|-
! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{characteristics}}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Related Trait
| style="padding:4px;" | [[{{{related trait}}}]]
|}
[[{{PAGENAME}}]] is a [[{{{tagline}}}]] [[trait]] for your [[Zoi]] in [[inZOI]].
<div style="display:none;">
{{#set:Trait={{{trait|}}} }}
{{#set:Icon=File:{{{icon|}}} }}
{{#set:Tagline={{{tagline|}}} }}
{{#set:Keywords={{{keywords|}}} |+sep}}
{{#set:Values={{{values|}}} |+sep}}
{{#set:Description={{{description|}}} }}
{{#set:Characteristics={{{characteristics|}}} |+sep}}
{{#set:Related Trait={{{related trait|}}} |+sep}}
</div>
[[Category:Traits]]
</includeonly>
<noinclude>
This template creates an infobox for [[trait]]s with Semantic MediaWiki annotations.


<!-- Handle expansions and patch categories -->
==Parameters==
{{#switch:{{lc:{{{release|}}}}}
* '''trait''' – The trait’s name (e.g. ''Charmer'')
| heavensward    = {{Heavensward expansion content}}
* '''icon''' – Filename for the trait’s icon (e.g. ''Charmer icon1.png'')
| stormblood    = {{Stormblood expansion content}}
* '''tagline''' – A short, catchy phrase summarizing the trait (e.g. ''Kind and Generous'')
| shadowbringers = {{Shadowbringers expansion content}}
* '''keywords''' – Keywords related to the trait (e.g. ''Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious'')
| endwalker      = {{Endwalker expansion content}}
* '''values''' – Core values or personality aspects associated with the trait (e.g. ''Challenger, Accomplishment, Authority, Love'')
| dawntrail      = {{Dawntrail expansion content}}
* '''description''' – A brief description of the trait
}}{{#if:{{{release|}}}||{{#switch:{{{patch|}}}
* '''characteristics''' – A list of characteristics for the trait
| 1.0|2.0|2.05|2.1|2.15|2.16|2.2|2.21|2.25|2.28|2.3|2.35|2.38|2.4|2.41|2.45|2.5|2.51|2.55|2.56|2.57=
* '''related trait''' – Traits that are related (e.g. ''Volunteer'')
| #default=[[Category:Missing release]]
}}}}


<!-- Start of the actual Infobox layout -->
==Usage==
<table class="infobox trait-infobox" style="border:1px solid #ccc; background:#f9f9f9; width:280px; margin:0 0 1em 1em; float:right;">
<pre>
  <!-- Header row (Trait Name) -->
{{Trait infobox
  <tr>
| name =
    <th colspan="2" style="background:#cce; color:#000; padding:5px; font-size:120%; text-align:center;">
| icon =  
      {{{name|{{#titleparts:{{PAGENAME}}}}}}}
| tagline =
    </th>
| keywords =
  </tr>
| values =
 
| description =
  <!-- Icon + Basic Info row -->
| characteristics =
  <tr>
| related trait =  
    <td style="width:60px; text-align:center; padding:5px;">
      <!-- Icon (fallback if none) -->
      {{#if: {{{icon|}}}
        | [[File:{{{icon}}}|50px]]
        | [[File:DefaultTraitIcon.png|50px]] <!-- fallback icon -->
      }}
    </td>
    <td style="vertical-align:top; padding:5px; line-height:1.4;">
      <!-- Group -->
      {{#if: {{{group|}}}
        | '''Group:''' {{{group}}}<br/>
      }}
      <!-- Type -->
      {{#if: {{{type|}}}
        | '''Type:''' {{{type}}}<br/>
      }}
      <!-- Release -->
      {{#if: {{{release|}}}
        | '''Release:''' {{{release}}}<br/>
      }}
      <!-- Patch -->
      {{#if: {{{patch|}}}
        | '''Patch:''' {{{patch}}}<br/>
      }}
      <!-- Synergy -->
      {{#if: {{{synergy|}}}
        | '''Synergy:''' {{{synergy}}}
      }}
    </td>
  </tr>
 
  <!-- Description row -->
  {{#if: {{{description|}}}
    | <tr>
        <td colspan="2" style="padding:8px;">
          {{Quotation|game|{{{description}}}}}
        </td>
      </tr>
  }}
 
  <!-- Notes row (optional) -->
  {{#if: {{{notes|}}}
    | <tr>
        <td colspan="2" style="padding:8px; font-size:90%; font-style:italic;">
          '''Notes:''' {{{notes}}}
        </td>
      </tr>
  }}
</table>
 
<!-- Auto-categorization by group (optional) -->
{{#if: {{{group|}}}
| [[Category:{{{group}}} Traits]]
}}
}}
</pre>


</includeonly>
==Example Usage==
<noinclude>
== Usage ==
Use this template to place a styled infobox at the top-right of an Inzoi trait page.
 
=== Basic Example ===
<pre>
<pre>
{{Trait infobox
{{Trait infobox
| name        = Expert
| trait = Charmer
| icon       = Expert.png
| icon = Charmer icon1.png
| group      = Wise and Logical
| tagline = Kind and Generous
| type        = Knowledge-Focused
| keywords = Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious
| release    =
| values = Challenger, Accomplishment, Authority, Love
| patch      =  
| description = With a cheerful and friendly personality, they easily make friends. Affectionate and open in expressing love, they can also appear seductive. Sometimes, they utilize their excellent communication skills to manipulate others for recognition of their talents and social status. Driven by a deep desire to be loved by all, they may exhibit anxiety and possessiveness, fearing the loss of affection.
| description = Pursues exceptional knowledge and skills...
| characteristics = Frequently feels aflutter, Sad feeling lasts for a longer time, Builds romantic relationships easily, Likes discussing romantic topics
| synergy    = Explorer
| related trait = Volunteer
| notes      = Especially helpful for R&D tasks.
}}
}}
</pre>
</pre>
{{Trait infobox
| trait = Charmer
| icon = Charmer icon1.png
| tagline = Kind and Generous
| keywords = Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious
| values = Challenger, Accomplishment, Authority, Love
| description = With a cheerful and friendly personality, they easily make friends. Affectionate and open in expressing love, they can also appear seductive. Sometimes, they utilize their excellent communication skills to manipulate others for recognition of their talents and social status. Driven by a deep desire to be loved by all, they may exhibit anxiety and possessiveness, fearing the loss of affection.
| characteristics = Frequently feels aflutter, Sad feeling lasts for a longer time, Builds romantic relationships easily, Likes discussing romantic topics
| related trait = Volunteer
}}


=== Parameters ===
; name
: (Optional) Defaults to the page name if omitted.
; icon
: (Optional) File name of the trait’s icon. If omitted, uses "DefaultTraitIcon.png".
; group
: (Optional) Main personality category (e.g., "Wise and Logical").
; type
: (Optional) A sub-classification.
; release
: (Optional) Expansion or major update in which the trait was introduced.
; patch
: (Optional) Specific patch version.
; description
: (Optional) Main descriptive text for the trait (displayed in a quote box).
; synergy
: (Optional) Other traits or mechanics it pairs well with.
; notes
: (Optional) Additional remarks or tips.


[[Category:Infobox templates|Trait infobox]]
Pages using this template will automatically be placed in the **Traits** category and have semantic properties for use in SMW queries.
</noinclude>
</noinclude>

Latest revision as of 11:49, 27 March 2025


This template creates an infobox for traits with Semantic MediaWiki annotations.

Parameters

  • trait – The trait’s name (e.g. Charmer)
  • icon – Filename for the trait’s icon (e.g. Charmer icon1.png)
  • tagline – A short, catchy phrase summarizing the trait (e.g. Kind and Generous)
  • keywords – Keywords related to the trait (e.g. Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious)
  • values – Core values or personality aspects associated with the trait (e.g. Challenger, Accomplishment, Authority, Love)
  • description – A brief description of the trait
  • characteristics – A list of characteristics for the trait
  • related trait – Traits that are related (e.g. Volunteer)

Usage

{{Trait infobox
| name = 
| icon = 
| tagline = 
| keywords = 
| values = 
| description = 
| characteristics =  
| related trait = 
}}

Example Usage

{{Trait infobox
| trait = Charmer
| icon = Charmer icon1.png
| tagline = Kind and Generous
| keywords = Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious
| values = Challenger, Accomplishment, Authority, Love
| description = With a cheerful and friendly personality, they easily make friends. Affectionate and open in expressing love, they can also appear seductive. Sometimes, they utilize their excellent communication skills to manipulate others for recognition of their talents and social status. Driven by a deep desire to be loved by all, they may exhibit anxiety and possessiveness, fearing the loss of affection.
| characteristics = Frequently feels aflutter, Sad feeling lasts for a longer time, Builds romantic relationships easily, Likes discussing romantic topics
| related trait = Volunteer
}}
Charmer
Kind and Generous
Keywords Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious
Values Challenger, Accomplishment, Authority, Love
Description
With a cheerful and friendly personality, they easily make friends. Affectionate and open in expressing love, they can also appear seductive. Sometimes, they utilize their excellent communication skills to manipulate others for recognition of their talents and social status. Driven by a deep desire to be loved by all, they may exhibit anxiety and possessiveness, fearing the loss of affection.
Characteristics
Frequently feels aflutter, Sad feeling lasts for a longer time, Builds romantic relationships easily, Likes discussing romantic topics
Related Trait Volunteer

Trait infobox is a Kind and Generous trait for your Zoi in inZOI.







Pages using this template will automatically be placed in the **Traits** category and have semantic properties for use in SMW queries.