Jump to content

Template:Trait infobox: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Trait Infobox
<includeonly>
| name          = {{{name|{{PAGENAME}}}}}
{| class="infobox" style="font-size:90%; border:1px solid #aaa; background:#fff;"
| icon          = {{{icon|}}}
|-
| description  = {{{description|}}}
! colspan="2" style="text-align:center; font-size:120%; background:#ccf; padding:4px;" | {{{trait}}}
| category      = {{{category|}}} <!-- Wise and Logical, Jovial and Cheerful, etc. -->
|-
| subcategory  = {{{subcategory|}}} <!-- Specific trait name like Expert, Explorer, etc. -->
| colspan="2" style="text-align:center; padding:4px;" | [[File:{{{icon|Placeholder.png}}}|64px]]
| effects      = {{{effects|}}} <!-- Optional: If a trait has special gameplay effects -->
|-
| unlock      = {{{unlock|}}} <!-- Optional: If the trait requires unlocking -->
| colspan="2" style="text-align:center; font-style:italic; padding:4px;" | {{{tagline}}}
| patch        = {{{patch|}}} <!-- Optional: If traits are introduced in specific updates -->
|-
}}
! 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.


<div class="infobox-trait">
==Parameters==
  <div class="icon infobox-icon">
* '''trait''' – The trait’s name (e.g. ''Charmer'')
    {{#if: {{{icon|}}}
* '''icon''' – Filename for the trait’s icon (e.g. ''Charmer icon1.png'')
    | [[File:{{{icon}}}|46px]]
* '''tagline''' – A short, catchy phrase summarizing the trait (e.g. ''Kind and Generous'')
    | [[File:DefaultTraitIcon.png|46px]] <!-- Default icon if none is provided -->
* '''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'')
  </div>
* '''description''' – A brief description of the trait
* '''characteristics''' – A list of characteristics for the trait
* '''related trait''' – Traits that are related (e.g. ''Volunteer'')


  <p class="heading">'''{{{name|{{PAGENAME}}}}}'''</p>
==Usage==
<pre>
{{Trait infobox
| name =
| icon =
| tagline =
| keywords =
| values =
| description =
| characteristics = 
| related trait =
}}
</pre>


  <div class="trait-details">
==Example Usage==
    <div class="trait-category">
<pre>
      '''Personality Category:''' {{{category|Unknown}}}
{{Trait infobox
    </div>
| trait = Charmer
    <div class="trait-subcategory">
| icon = Charmer icon1.png
      '''Trait Type:''' {{{subcategory|Unknown}}}
| tagline = Kind and Generous
    </div>
| keywords = Kind, Big-Hearted, Sociable, Possessive, Lighthearted, Ambitious
    {{#if: {{{description|}}}
| values = Challenger, Accomplishment, Authority, Love
    | <div class="trait-description">
| 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:''' {{{description}}}
| characteristics = Frequently feels aflutter, Sad feeling lasts for a longer time, Builds romantic relationships easily, Likes discussing romantic topics
      </div>
| related trait = Volunteer
    }}
}}
  </div>
</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
}}


  {{#if: {{{effects|}}}
  | <div class="trait-effects">
      '''Effects:''' {{{effects}}}
    </div>
  }}


  {{#if: {{{unlock|}}}
Pages using this template will automatically be placed in the **Traits** category and have semantic properties for use in SMW queries.
  | <div class="trait-unlock">
</noinclude>
      '''Unlock Conditions:''' {{{unlock}}}
    </div>
  }}
 
  {{#if: {{{patch|}}}
  | <div class="trait-patch">
      '''Introduced in Patch:''' {{{patch}}}
    </div>
  }}
</div>
 
[[Category:Traits]]
[[Category:{{{category}}} Traits]]