Difference between revisions of "Template:Trait Box"

From CYOE Wiki
Jump to: navigation, search
m (17 revisions)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
  
Positive Traits
+
DO NOT USE
<pre>{{Trait Box
 
|colour=#DDFFAA
 
|trait=
 
|description=
 
}}
 
&lt;noinclude>[[Category:Trait]] [[Category:Positive Trait]]&lt;/noinclude>
 
</pre>
 
  
Negative Traits
+
Use [[:Template:New Trait Box]] instead!
<pre>{{Trait Box
 
|colour=#FFDDDD
 
|trait=
 
|description=
 
}}
 
&lt;noinclude>[[Category:Trait]] [[Category:Negative Trait]]&lt;/noinclude>
 
</pre>
 
 
 
Neutral Traits
 
<pre>{{Trait Box
 
|colour=#FFFF99
 
|trait=
 
|description=
 
}}
 
&lt;noinclude>[[Category:Trait]] [[Category:Neutral Trait]]&lt;/noinclude>
 
</pre>
 
 
 
Technology
 
<pre>{{Trait Box
 
|trait=
 
|description=
 
}}
 
&lt;noinclude>[[Category:Technology]]&lt;/noinclude>
 
</pre>
 
 
 
 
 
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).
 
 
 
<pre>[[My Trait|era=cyoe2]]</pre>
 
 
 
<pre>&lt;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}}}.
 
}}
 
}}
 
&lt;/includeonly>&lt;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]]&lt;/noinclude>
 
</pre>
 
 
</noinclude>
 
</noinclude>
 
+
<includeonly>{{To Do|task=Convert this to [[Template:New Trait Box]]}}</includeonly>
 
{|class="collapsible collapsed" align="{{{align|none}}}" width="480" style="border: 1px solid darkgray;"
 
{|class="collapsible collapsed" align="{{{align|none}}}" width="480" style="border: 1px solid darkgray;"
 
|-
 
|-

Latest revision as of 19:55, 13 September 2014


DO NOT USE

Use Template:New Trait Box instead!