Template:Trait Box

From CYOE Wiki
Revision as of 20:42, 16 May 2010 by Bubble Wrap (talk)
Jump to: navigation, search


Positive Traits

{{Trait Box
|colour=#DDFFAA
|trait=
|description=
}}
<noinclude>[[Category:Trait]] [[Category:Positive Trait]]</noinclude>

Negative Traits

{{Trait Box
|colour=#FFDDDD
|trait=
|description=
}}
<noinclude>[[Category:Trait]] [[Category:Negative Trait]]</noinclude>

Neutral Traits

{{Trait Box
|colour=#FFFF99
|trait=
|description=
}}
<noinclude>[[Category:Trait]] [[Category:Neutral Trait]]</noinclude>

Technology

{{Trait Box
|trait=
|description=
}}
<noinclude>[[Category:Technology]]</noinclude>


For a trait that must vary from game to game, use the following format, and use a link such as the one shown. Note in particular that the string for each era must be input twice, once in the switch statement for the included box, and once in the boxes further down. Viewing the trait page directly will show all instances of that trait, while including it will only show the requested version (defaults to cyoe1 in the example shown below, can be altered for traits that were added in later revisions).

[[My Trait|era=cyoe2]]
<includeonly>{{Trait Box
|colour=#DDFFAA
|trait=My Trait
|description=
{{#switch: {{{era|cyoe1}}}
|
|"cyoe1"
|cyoe1 = In CYOE1, this was the description we used.
|"cyoe2"
|cyoe2 = But in CYOE2 it changed to this.
|Not available in {{{era|cyoe1}}}.
}}
}}
</includeonly><noinclude>
{{Trait Box
|colour=#DDFFAA
|trait= My Trait (CYOE1)
|description=In CYOE1, this was the description we used.
}}

{{Trait Box
|colour=#DDFFAA
|trait=My Trait (CYOE2)
|description=But in CYOE2 it changed to this.
}}
[[Category:Trait]] [[Category:Positive Trait]]</noinclude>

And similarly for technology (where the title changes too).

<includeonly>{{Trait Box
|trait={{#switch: {{{era|cyoe1}}}
|
|"cyoe1"
|cyoe1 = CYOE 1 title and cost
|"cyoe2"
|cyoe2 = CYOE 2 title and cost
|Not available in {{{era|cyoe1}}}.
}}
|description={{#switch: {{{era|cyoe1}}}
|
|"cyoe1"
|cyoe1 = CYOE 1 description
|"cyoe2"
|cyoe2 = CYOE 2 description
|Not available in {{{era|cyoe1}}}.
}}
}}
</includeonly><noinclude>
{{Trait Box
|trait= CYOE 1 title and cost (CYOE1)
|description=CYOE 1 description
}}

{{Trait Box
|trait=CYOE 2 title and cost (CYOE2)
|description=CYOE 2 description
}}[[Category:Technology]]</noinclude>