Jump to content

Template:Trait infobox: Difference between revisions

From inZOI Wiki
No edit summary
Tag: Reverted
No edit summary
 
(48 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
|-
  ---------------------------------------------------
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
  Inspired by the FFXIV "Item infobox," but repurposed
|-
  for use with character traits in the Inzoi game.
| colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
|-
| colspan="2" style="text-align:center; font-style:italic; padding:4px;" | {{{tagline}}}
|-
! style="width:100px; background:#ececec; text-align:left; padding:4px;" | Keywords
| style="padding:4px;" | {{#arraymap:{{{keywords|}}}|,|x|[[x]]}}
|-
! style="background:#ececec; text-align:left; padding:4px;" | Values
| style="padding:4px;" | {{#arraymap:{{{values|}}}|,|x|[[x]]}}
|-
! 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.


  PARAMETERS:
==Parameters==
  | name       = Name of the trait (defaults to PAGENAME if omitted).
* '''trait''' – The trait’s name (e.g. ''Charmer'')
  | icon       = File name for the trait’s icon (e.g. "Expert.png"); omit "File:" prefix.
* '''icon''' – Filename for the trait’s icon (e.g. ''Charmer icon1.png'')
  | group      = The overarching group or personality category (e.g. "Wise and Logical").
* '''tagline''' – A short, catchy phrase summarizing the trait (e.g. ''Kind and Generous'')
  | type        = More specific sub-type or classification if applicable (optional).
* '''keywords''' – Keywords related to the trait (e.g. ''Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious'')
  | release    = For tracking expansions or major releases. (optional)
* '''values''' – Core values or personality aspects associated with the trait (e.g. ''Challenger, Accomplishment, Authority, Love'')
  | patch      = For tracking patch version (optional).
* '''description''' – A brief description of the trait
  | description = Description of the trait.
* '''characteristics''' – A list of characteristics for the trait
  | synergy    = Optional field to list synergy or related traits.
* '''related trait''' – Traits that are related (e.g. ''Volunteer'')
  | notes      = Optional developer/extra notes.


  USAGE EXAMPLE (on a Trait page):
==Usage==
  {{Trait infobox
<pre>
  | name       = Expert
{{Trait infobox
  | icon       = ExpertTrait.png
| name =  
  | group      = Wise and Logical
| icon =  
  | type        = Knowledge-Focused
| tagline =  
  | release    =  
| keywords =  
  | patch      =
| values =  
  | description = Pursues exceptional knowledge and skills, interested in theory...
| description =  
  | synergy    = Explorer
| characteristics =   
  | notes      = This trait is especially useful for science-based careers.
| related trait =  
  }}
-->
{{#switch:{{lc:{{{release|}}}}}
|
  <!-- Example for future expansions; replace these with actual expansions if desired
  | expansion1 = <!-- some special category or banner -->
  | expansion2 =
  -->
}}{{#if:{{{release|}}}||{{#switch:{{{patch|}}}
| 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=
  | #default = [[Category:Missing release]]
}}}}
 
<div class="infobox-n trait">
  <!-- Hidden "dot" to help with layout -->
  <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div>
 
  <!-- Icon Section -->
  <div class="icon infobox-icon">
    {{#if: {{{icon|}}}
      | [[File:{{{icon}}}|46px]]
      | [[File:DefaultTraitIcon.png|46px]] <!-- Fallback if icon not provided -->
    }}
  </div>
 
  <!-- Heading / Title -->
  <p class="heading">
    [[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]
  </p>
 
  <!-- Trait Classification -->
  <div class="statistics trait">
    <!-- Group (e.g. "Wise and Logical") -->
    {{#if: {{{group|}}}
      | <span class="characteristic group" title="Personality Group/Category">{{{group}}}</span>
    }}
    <!-- Type (optional further classification) -->
    {{#if: {{{type|}}}
      | &nbsp; • &nbsp;<span class="characteristic type">{{{type}}}</span>
    }}
  </div>
 
  <div class="wrapper">
    <!-- Additional fields can be shown as a definition list -->
    {{#if: {{{release|}}}
      | ;Release
        :{{{release}}}
    }}
    {{#if: {{{patch|}}}
      | ;Patch
        :{{{patch}}}
    }}
    {{#if: {{{synergy|}}}
      | ;Related/Synergy
        :{{{synergy}}}
    }}
    {{#if: {{{notes|}}}
      | ;Notes
        :{{{notes}}}
    }}
  </div>
 
  <!-- Description -->
  {{#if: {{{description|}}}
    | {{Quotation|game|
        {{{description}}}
      }}
  }}
 
</div>
 
<!--
  AUTOCATEGORIZATION (optional).
  For example, if you wish to auto-categorize by group,
  uncomment or extend the logic below:
-->
{{#if: {{{group|}}}
| [[Category:{{{group}}} Traits]]
}}
}}
</pre>


</includeonly>
==Example Usage==
<noinclude>
== Usage ==
Use this template to provide an infobox for an **Inzoi** trait page.
 
'''Example:'''
<pre>
<pre>
{{Trait infobox
{{Trait infobox
| name        = Expert
| trait = Charmer
| icon       = ExpertTrait.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    = (Optional release info)
| values = Challenger, Accomplishment, Authority, Love
| patch      = (Optional patch info)
| 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, interested in theory, technology...
| 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      = This trait is especially effective in research-related professions.
}}
}}
</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) The trait’s display name. Defaults to the page name if left blank.
; icon
: (Optional) The file name for the trait’s icon. If omitted, will display "DefaultTraitIcon.png".
; group
: (Optional) The trait’s main personality category or group (e.g. "Wise and Logical").
; type
: (Optional) A secondary classification or sub-type (e.g. "Knowledge-Focused").
; release
: (Optional) Expansion or major update in which this trait was introduced.
; patch
: (Optional) Specific patch version for the trait’s introduction or rework.
; description
: (Optional) Main descriptive text for the trait.
; synergy
: (Optional) Other traits it works well with or is closely related to.
; notes
: (Optional) Developer notes, additional mechanics, 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.