Template:Trait: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(Removed mutation variable. (hope it works).)
(Attempt at removal of bad parameter. Not sure if I need #if or something else)
Line 2: Line 2:


-->{{#ifeq:{{{2|}}}|{{CATEGORY}}
-->{{#ifeq:{{{2|}}}|{{CATEGORY}}
     |'''[[Traits|<b style="font: 1.1em Consolas, monospace; background-color:{{#if:{{{bad|}}}|darkred|darkgreen}}; color:white; padding: 0 0.6em">TRAIT</b>]]'''[[Category:Traits]]<!--
     |'''[[Traits|<b style="font: 1.1em Consolas, monospace; background-color:{{#if:{{{3|}}}<0|darkred|darkgreen}}; color:white; padding: 0 0.6em">TRAIT</b>]]'''[[Category:Traits]]<!--
   -->|<span style="font-size: 1.3em;">'''{{{2}}}'''</span>}} <span style="font-size: 0.7em;">{{{1|}}}</span><!--
   -->|<span style="font-size: 1.3em;">'''{{{2}}}'''</span>}} <span style="font-size: 0.7em;">{{{1|}}}</span><!--


Line 55: Line 55:
{| border="0" class="va-table" style="border-collapse: collapse; border: 0px none; margin: 0 auto 0 1.5em; text-align:left;"
{| border="0" class="va-table" style="border-collapse: collapse; border: 0px none; margin: 0 auto 0 1.5em; text-align:left;"
|-  
|-  
| style="border-left: 3px solid {{#if:{{{bad|}}}|darkred|darkgreen}}; border-top: 1px solid {{#if:{{{bad|}}}|darkred|darkgreen}}; padding: 0.1em 0.5em"|<!--
| style="border-left: 3px solid {{#if:{{{3|}}}<0|darkred|darkgreen}}; border-top: 1px solid {{#if:{{{3|}}}<0|darkred|darkgreen}}; padding: 0.1em 0.5em"|<!--
-->{{#if:{{{PREREQS|}}}|<b style="color:chocolate">Requires:</b> {{{PREREQS}}}<br>}}<!--
-->{{#if:{{{PREREQS|}}}|<b style="color:chocolate">Requires:</b> {{{PREREQS}}}<br>}}<!--
-->{{#if:{{{PREREQS2|}}}|<b style="color:chocolate">Additional requirement:</b> {{{PREREQS2}}}<br>}}<!--
-->{{#if:{{{PREREQS2|}}}|<b style="color:chocolate">Additional requirement:</b> {{{PREREQS2}}}<br>}}<!--
Line 69: Line 69:
       |/ Ugliness: <span style="color:darkred">'''{{{5}}}'''</span>}}
       |/ Ugliness: <span style="color:darkred">'''{{{5}}}'''</span>}}
|-  
|-  
| style="max-width:64em; border-left: 1px solid {{#if:{{{bad|}}}|darkred|darkgreen}}; padding: 0.1em 0.5em 0" | {{#if:{{{6|}}}|"{{{6|}}}"}}
| style="max-width:64em; border-left: 1px solid {{#if:{{{3|}}}<0|darkred|darkgreen}}; padding: 0.1em 0.5em 0" | {{#if:{{{6|}}}|"{{{6|}}}"}}
|-
|-
| style="max-width:64em; border-left: 1px solid {{#if:{{{bad|}}}|darkred|darkgreen}}; padding: 0.1em 0.5em 0" | {{#if:{{{7|}}}|{{{7|}}}}}
| style="max-width:64em; border-left: 1px solid {{#if:{{{3|}}}<0|darkred|darkgreen}}; padding: 0.1em 0.5em 0" | {{#if:{{{7|}}}|{{{7|}}}}}
|}
|}
</div><noinclude>
</div><noinclude>

Revision as of 15:20, 12 August 2016

{{{2}}}
Point cost: {{{3}}} / Visiblity: {{{4}}} / Ugliness: {{{5}}}

Documentation

Documentation incomplete.

Use this template to create the mutation/trait infobox.

Some of the variables:

  • set 'bionic' to the correct bionic if the mutation has a bionic that has a similar feature set. Add a link to the bionic in the notes. For example bionic=Internal Storage
  • Set 'invalid' to '1' if the mutation is not a valid mutation target. Means it can only be chosen as a starting trait, or using the debug menu.
  • Set 'trait' to '1' if the mutation is a possible starting trait. Only use this for the default starting traits. The ones with '"starting_trait" : true' in the json files.
  • Set 'threshold' to '1' if the mutation is a threshold mutation. Only use for threshold mutations. The ones with '"threshreq"' values set in the json files.