Jump to content

Template:Trait infobox: Difference between revisions

From inZOI Wiki
No edit summary
Tag: Reverted
No edit summary
 
(45 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;"
    =============================================
|-
            TEMPLATE: Trait Infobox
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
    =============================================
|-
    Use this template on trait-specific pages.
| colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
    Example usage:
        {{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
        }}
-->
 
<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;"
|+ 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-style:italic; padding:4px;" | {{{tagline}}}
| {{#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="width:100px; background:#ececec; text-align:left; padding:4px;" | Keywords
| style="padding:0.2em 0.4em;" | {{{category|}}}
| style="padding:4px;" | {{#arraymap:{{{keywords|}}}|,|x|[[x]]}}
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Tagline
! style="background:#ececec; text-align:left; padding:4px;" | Values
| style="padding:0.2em 0.4em;" | {{{tagline|}}}
| style="padding:4px;" | {{#arraymap:{{{values|}}}|,|x|[[x]]}}
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Description
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Description'''
| style="padding:0.2em 0.4em;" | {{{description|}}}
{{#if: {{{gameplaytips|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Gameplay Tips
! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{description}}}
| style="padding:0.2em 0.4em;" | {{{gameplaytips}}}
}}
{{#if: {{{conflicts|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Conflicts
! colspan="2" style="background:#ececec; text-align:center; padding:4px;" | '''Characteristics'''
| style="padding:0.2em 0.4em;" | {{{conflicts}}}
}}
{{#if: {{{synergy|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Synergy
! colspan="2" style="background:#ffffff; text-align:left; padding:4px; border-top:1px solid #ddd; font-weight: normal;" | {{{characteristics}}}
| style="padding:0.2em 0.4em;" | {{{synergy}}}
}}
{{#if: {{{introduced|}}}|
|-
|-
! style="background:#ececec; text-align:left; padding:0.2em 0.4em;" | Introduced
! style="background:#ececec; text-align:left; padding:4px;" | Related Trait
| style="padding:0.2em 0.4em;" | {{{introduced}}}
| 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>
</div>
[[Category:Traits]]
</includeonly>
</includeonly>
<noinclude>
This template creates an infobox for [[trait]]s with Semantic MediaWiki annotations.


<noinclude>
==Parameters==
== Usage ==
* '''trait''' – The trait’s name (e.g. ''Charmer'')
To add this infobox to a trait page, insert the following code (at the top or wherever desired):
* '''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==
<pre>
{{Trait infobox
| name =
| icon =
| tagline =
| keywords =
| values =
| description =
| characteristics = 
| related trait =
}}
</pre>


==Example Usage==
<pre>
<pre>
{{Trait infobox
{{Trait infobox
| name        = Expert
| trait = Charmer
| image      = ExpertIcon.png
| icon = Charmer icon1.png
| imagesize  = 120px
| tagline = Kind and Generous
| alttext    = Icon of an open book
| keywords = Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious
| iconcaption = Official Expert Icon
| values = Challenger, Accomplishment, Authority, Love
| category    = Wise and Logical
| 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.
| tagline    = "Pursuing knowledge and skill"
| characteristics = Frequently feels aflutter, Sad feeling lasts for a longer time, Builds romantic relationships easily, Likes discussing romantic topics
| description = Pursues exceptional knowledge and skills, interested in theory, technology, and detailed exploration.
| related trait = Volunteer
| 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
}}
}}
</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
}}


Feel free to remove any parameters you don’t need. This combined infobox provides a consistent, attractive layout for all Inzoi trait pages.
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.