Template:Trait: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(Added threshold variable.)
(Removed mutation variable. (hope it works).)
Line 4: Line 4:
     |'''[[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:{{{bad|}}}|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><!--
-->{{#ifeq:{{CATEGORY}}|Mutations||<!--
      -->{{#if:{{{mutation|}}}|&nbsp;[[Mutation#Basic traits|<b style="border:1px dashed darkgreen; color:darkgreen; padding: 0 0.6em">Mutation</b>]]}}<!--
-->}}<!--


-->{{#if:{{{bionic|}}}|&nbsp;[[{{{bionic}}}|<b style="border:1px dashed darkblue; color:darkblue; padding: 0 0.6em">Has bionic analog</b>]]}}<!--
-->{{#if:{{{bionic|}}}|&nbsp;[[{{{bionic}}}|<b style="border:1px dashed darkblue; color:darkblue; padding: 0 0.6em">Has bionic analog</b>]]}}<!--

Revision as of 15:29, 11 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.