Template:Trait: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
m (based of new colors)
(Category:Targeted Mutation Only)
 
(49 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="{{anchorencode:{{{2|}}}}}" style="display:table; margin: {{#ifeq:{{{2|}}}|{{PAGENAME}}|-1em 0 0.6em 0|1.2em 0 0.6em 0}}; font-family: consolas"><!--
<div id="{{anchorencode:{{{2|}}}}}" style="display:table; margin: {{#ifeq:{{{2|}}}|{{CATEGORY}}|-1em 0 0.6em 0|1.2em 0 0.6em 0}}; font-family: consolas"><!--


-->{{#ifeq:{{{2|}}}|{{PAGENAME}}
-->{{#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:{{#ifexpr:{{{3|0}}}<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><!--


-->{{#ifeq:{{PAGENAME}}|Mutation||<!--
-->{{#if:{{{bionic|}}}|&nbsp;[[{{{bionic}}}|<b style="border:1px dashed darkblue; color:blue; padding: 0 0.6em">Has bionic analog</b>]]}}<!--
      -->{{#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:{{{trait|}}}|&nbsp;[[Character#Traits|<b style="border:1px solid darkblue; color:blue; padding: 0 0.6em">Possible Starting Trait</b>]]{{#ifeq:{{ROOTPAGENAME}}|{{{2|}}}|[[Category:Starting Trait]]}} }}<!--


-->{{#if:{{{lizard|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid DarkKhaki ; background-color:khaki; color:black; padding: 0 0.6em">LIZARD</b>]]}}<!--
-->{{#if:{{{invalid|}}}|&nbsp;[[Mutation#Sources_of_mutation|<b style="border:1px solid darkblue; color:blue; padding: 0 0.6em">Targeted Mutation Only</b>]]{{#ifeq:{{ROOTPAGENAME}}|{{{2|}}}|[[Category:Targeted Mutation Only]]}} }}<!--


-->{{#if:{{{bird|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid royalblue; background-color:DeepSkyBlue; color:black; padding: 0 0.6em">BIRD</b>]]}}<!--
-->{{#if:{{{profession|}}}|&nbsp;[[Professions|<b style="border:1px solid darkblue; color:blue; padding: 0 0.6em">Profession Trait</b>]]}}<!--


-->{{#if:{{{fish|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid MediumAquamarine; background-color:Aquamarine; color:black; padding: 0 0.6em">FISH</b>]]}}<!--
-->{{#if:{{{purifiable|}}}|&nbsp;[[Purifier|<b style="border:1px solid darkblue; background-color:lightblue; color:darkblue; padding: 0 0.6em">Not purifiable</b>]]{{#ifeq:{{ROOTPAGENAME}}|{{{2|}}}|[[Category:Not Purifiable]]}} }}<!--


-->{{#if:{{{beast|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid darkred; background-color:tomato; color:black; padding: 0 0.6em">BEAST</b>]]}}<!--
-->{{#if:{{{threshold|}}}|&nbsp;[[Mutation#Thresholds|<b style="border:1px solid darkgreen; color:lightgreen; padding: 0 0.6em">Threshold Mutation</b>]]}}<!--


-->{{#if:{{{feline|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid Sienna; background-color:SandyBrown; color:white; padding: 0 0.6em">FELINE</b>]]}}<!--
-->{{#if:{{{lizard|}}}|&nbsp;[[Lizard|<b style="border:1px solid DarkKhaki ; background-color:khaki; color:black; padding: 0 0.6em">LIZARD</b>]]}}<!--


-->{{#if:{{{lupine|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid DimGrey; background-color:darkgrey; color:white; padding: 0 0.6em">LUPINE</b>]]}}<!--
-->{{#if:{{{bird|}}}|&nbsp;[[Bird|<b style="border:1px solid royalblue; background-color:DeepSkyBlue; color:black; padding: 0 0.6em">BIRD</b>]]}}<!--


-->{{#if:{{{ursine|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid Maroon; background-color:brown; color:white; padding: 0 0.6em">URSINE</b>]]}}<!--
-->{{#if:{{{fish|}}}|&nbsp;[[Fish|<b style="border:1px solid MediumAquamarine; background-color:Aquamarine; color:black; padding: 0 0.6em">FISH</b>]]}}<!--


-->{{#if:{{{cattle|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid SaddleBrown; background-color: Peru; color:black; padding: 0 0.6em">CATTLE</b>]]}}<!--
-->{{#if:{{{beast|}}}|&nbsp;[[Beast|<b style="border:1px solid darkred; background-color:tomato; color:black; padding: 0 0.6em">BEAST</b>]]}}<!--


-->{{#if:{{{insect|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid orange; background-color:yellow; color:black; padding: 0 0.6em">INSECT</b>]]}}<!--
-->{{#if:{{{feline|}}}|&nbsp;[[Feline|<b style="border:1px solid Sienna; background-color:SandyBrown; color:white; padding: 0 0.6em">FELINE</b>]]}}<!--


-->{{#if:{{{plant|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid darkgreen; background-color:ForestGreen; color:white; padding: 0 0.6em">PLANT</b>]]}}<!--
-->{{#if:{{{lupine|}}}|&nbsp;[[Lupine|<b style="border:1px solid DimGrey; background-color:darkgrey; color:white; padding: 0 0.6em">LUPINE</b>]]}}<!--


-->{{#if:{{{slime|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid green; background-color:GreenYellow; color:black; padding: 0 0.6em">SLIME</b>]]}}<!--
-->{{#if:{{{ursine|}}}|&nbsp;[[Ursine|<b style="border:1px solid Maroon; background-color:brown; color:white; padding: 0 0.6em">URSINE</b>]]}}<!--


-->{{#if:{{{troglo|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid DarkSlateGray; background-color:SlateGray; color:white; padding: 0 0.6em">TROGLOBITE</b>]]}}<!--
-->{{#if:{{{cattle|}}}|&nbsp;[[Cattle|<b style="border:1px solid SaddleBrown; background-color: Peru; color:black; padding: 0 0.6em">CATTLE</b>]]}}<!--


-->{{#if:{{{cephalopod|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid Indigo; background-color:purple; color:white; padding: 0 0.6em">CEPHALOPOD</b>]]}}<!--
-->{{#if:{{{insect|}}}|&nbsp;[[Insect|<b style="border:1px solid orange; background-color:yellow; color:black; padding: 0 0.6em">INSECT</b>]]}}<!--


-->{{#if:{{{spider|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid DarkOrange; background-color:orange; color:black; padding: 0 0.6em">SPIDER</b>]]}}<!--
-->{{#if:{{{plant|}}}|&nbsp;[[Plant|<b style="border:1px solid darkgreen; background-color:ForestGreen; color:white; padding: 0 0.6em">PLANT</b>]]}}<!--


-->{{#if:{{{medical|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid darkred; background-color:red; color:white; padding: 0 0.6em">MEDICAL</b>]]}}<!--
-->{{#if:{{{slime|}}}|&nbsp;[[Slime (Mutation category)|<b style="border:1px solid green; background-color:GreenYellow; color:black; padding: 0 0.6em">SLIME</b>]]}}<!--


-->{{#if:{{{alpha|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid blue; background-color:SkyBlue; color:black; padding: 0 0.6em">ALPHA</b>]]}}<!--
-->{{#if:{{{troglo|}}}|&nbsp;[[Troglobite (Mutation category)|<b style="border:1px solid DarkSlateGray; background-color:SlateGray; color:white; padding: 0 0.6em">TROGLOBITE</b>]]}}<!--
-->{{#if:{{{troglobite|}}}|&nbsp;[[Troglobite (Mutation category)|<b style="border:1px solid DarkSlateGray; background-color:SlateGray; color:white; padding: 0 0.6em">TROGLOBITE</b>]]}}<!--


-->{{#if:{{{elfa|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid green; background-color:lightgreen; color:black; padding: 0 0.6em">ELF-A</b>]]}}<!--
-->{{#if:{{{cephalopod|}}}|&nbsp;[[Cephalopod|<b style="border:1px solid Indigo; background-color:purple; color:white; padding: 0 0.6em">CEPHALOPOD</b>]]}}<!--


-->{{#if:{{{chimera|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid FireBrick; background-color:IndianRed; color:white; padding: 0 0.6em">CHIMERA</b>]]}}<!--
-->{{#if:{{{spider|}}}|&nbsp;[[Spider|<b style="border:1px solid DarkOrange; background-color:orange; color:black; padding: 0 0.6em">SPIDER</b>]]}}<!--


-->{{#if:{{{raptor|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid DarkGreen; background-color:green; color:white; padding: 0 0.6em">RAPTOR</b>]]}}<!--
-->{{#if:{{{medical|}}}|&nbsp;[[Medical|<b style="border:1px solid darkred; background-color:red; color:white; padding: 0 0.6em">MEDICAL</b>]]}}<!--


-->{{#if:{{{rat|}}}|&nbsp;[[Mutation#Categories|<b style="border:1px solid black; background-color:grey; color:white; padding: 0 0.6em">RAT</b>]]}}
-->{{#if:{{{alpha|}}}|&nbsp;[[Alpha|<b style="border:1px solid blue; background-color:SkyBlue; color:black; padding: 0 0.6em">ALPHA</b>]]}}<!--
 
-->{{#if:{{{elfa|}}}|&nbsp;[[Elf-A|<b style="border:1px solid green; background-color:lightgreen; color:black; padding: 0 0.6em">ELF-A</b>]]}}<!--
 
-->{{#if:{{{chimera|}}}|&nbsp;[[Chimera|<b style="border:1px solid FireBrick; background-color:IndianRed; color:white; padding: 0 0.6em">CHIMERA</b>]]}}<!--
 
-->{{#if:{{{raptor|}}}|&nbsp;[[Raptor|<b style="border:1px solid DarkGreen; background-color:green; color:white; padding: 0 0.6em">RAPTOR</b>]]}}<!--
 
-->{{#if:{{{rat|}}}|&nbsp;[[Rat|<b style="border:1px solid black; background-color:grey; color:white; padding: 0 0.6em">RAT</b>]]}}<!--
 
-->{{#if:{{{mouse|}}}|&nbsp;[[Mouse|<b style="border:1px solid black; background-color:LightGrey; color:black; padding: 0 0.6em">MOUSE</b>]]}}<!--
 
-->{{#if:{{{marloss|}}}|&nbsp;[[Marloss|<b style="border:1px solid black; background-color:purple; color:white; padding: 0 0.6em">MARLOSS</b>]]}}<!--
 
-->{{#if:{{{mycus|}}}|&nbsp;[[Mycus (Mutation category)|<b style="border:1px solid gray; background-color:lightgray; color:darkgray; padding: 0 0.6em">MYCUS</b>]]}}
{| 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:{{{mixed_effect|}}}|pink|{{#ifexpr:{{{3|0}}}<0|darkred|darkgreen}}}}; border-top: 1px solid {{#if:{{{mixed_effect|}}}|pink|{{#ifexpr:{{{3|0}}}<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:{{{CANCELS|}}}|<b style="color:darkred">Cancels:</b> {{{CANCELS}}}<br>}}<!--
-->{{#if:{{{PREREQS2|}}}|<b style="color:chocolate">Additional requirement:</b> {{{PREREQS2}}}<br>}}<!--
-->{{#if:{{{CHANGES_TO|}}}|<b style="color:darkblue">Changes to:</b> {{{CHANGES_TO}}}<br>}}<!--
-->{{#if:{{{CANCELS|}}}|<b style="color:red">Cancels:</b> {{{CANCELS}}}<br>}}<!--
-->{{#if:{{{CHANGES_TO|}}}|<b style="color:blue">Changes to:</b> {{{CHANGES_TO}}}<br>}}<!--
-->{{#if:{{{LEADS_TO|}}}|<b style="color:darkgreen">Leads to:</b> {{{LEADS_TO}}}<br>}}<!--
-->{{#if:{{{LEADS_TO|}}}|<b style="color:darkgreen">Leads to:</b> {{{LEADS_TO}}}<br>}}<!--
-->Point cost: <span style="color:{{#ifeq:{{{3|}}}|0|black|darkgreen}}">'''{{{3}}}'''</span><!--
-->Point cost: <span style="color:{{#ifeq:{{{3|}}}|0|black|green}}">'''{{{3}}}'''</span><!--
--> {{#ifeq:{{{4|}}}|0
--> {{#ifeq:{{{4|}}}|0
       |
       |
       |/ Visiblity: <span style="color:chocolate">'''{{{4}}}'''</span>}}<!--
       |/ Visibility: <span style="color:chocolate">'''{{{4}}}'''</span>}}<!--
--> {{#ifeq:{{{5|}}}|0
--> {{#ifeq:{{{5|}}}|0
       |
       |
       |/ Ugliness: <span style="color:darkred">'''{{{5}}}'''</span>}}
       |/ Ugliness: <span style="color:red">'''{{{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:{{{mixed_effect|}}}|pink|{{#ifexpr:{{{3|0}}}<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:{{{mixed_effect|}}}|pink|{{#ifexpr:{{{3|0}}}<0|darkred|darkgreen}}}}; padding: 0.1em 0.5em 0" | {{#if:{{{7|}}}|{{{7|}}}}}
|}
|}
</div><noinclude>[[Category:Templates|{{PAGENAME}}]]
{{#if:{{{mixed_effect|}}}|{{#ifeq:{{ROOTPAGENAME}}|{{{2|}}}|[[Category:Mixed Effect]]}} }}
</div><noinclude>
==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, <nowiki>bionic=Internal Storage</nowiki>
* Set 'invalid' to '1' if the mutation is not a valid random mutation target. This means it can only be chosen as a starting trait, when using targeted mutagen, or using the debug menu.
* Set 'mixed_effect' to '1' if the mutation has both good and bad effects, this overrides the normal points cost border color, turning it pink (same as ingame). Used for mutations with <nowiki>'"mixed_effect" : true'</nowiki> in the json files. This should also put the mutation's page in Category:Mixed Effect.
* Set 'trait' to '1' if the mutation is a possible starting trait. Only use this for the default starting traits - the ones with <nowiki>'"starting_trait" : true'</nowiki> in the json files. This should also put the trait's page in Category:Starting Traits.
* Set 'profession' to '1' if the mutation is a profession trait. These have <nowiki>'"profession" : true'</nowiki> in the json file.
* Set 'threshold' to '1' if the mutation is a threshold mutation. Only use for threshold mutations - the ones with <nowiki>'"threshreq"'</nowiki> values set in the json files.
* Set 'purifiable' to '1' if the mutation is not purifiable. These have <nowiki>'"purifiable"'</nowiki> values set to false in the json files.
* The third normal argument is the points cost. If the points cost is negative, it is considered a bad mutation, and will have a red border (mixed_effect will override this).
 
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 02:56, 1 March 2021

[[{{{2}}}]]
Point cost: {{{3}}} / Visibility: {{{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 random mutation target. This means it can only be chosen as a starting trait, when using targeted mutagen, or using the debug menu.
  • Set 'mixed_effect' to '1' if the mutation has both good and bad effects, this overrides the normal points cost border color, turning it pink (same as ingame). Used for mutations with '"mixed_effect" : true' in the json files. This should also put the mutation's page in Category:Mixed Effect.
  • 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. This should also put the trait's page in Category:Starting Traits.
  • Set 'profession' to '1' if the mutation is a profession trait. These have '"profession" : true' in the json file.
  • 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.
  • Set 'purifiable' to '1' if the mutation is not purifiable. These have '"purifiable"' values set to false in the json files.
  • The third normal argument is the points cost. If the points cost is negative, it is considered a bad mutation, and will have a red border (mixed_effect will override this).