Template:Trait: Difference between revisions
Jump to navigation
Jump to search
(updated colors) |
(Adding mixed_effect variable.) |
||
Line 64: | Line 64: | ||
-->{{#if:{{{mycus|}}}| [[Mycus (Mutation category)|<b style="border:1px solid gray; background-color:lightgray; color:darkgray; padding: 0 0.6em">MYCUS</b>]]}} | -->{{#if:{{{mycus|}}}| [[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 {{#ifexpr:{{{3|0}}}<0|darkred|darkgreen}}; border-top: 1px solid {{#ifexpr:{{{3|0}}}<0|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:{{{PREREQS2|}}}|<b style="color:chocolate">Additional requirement:</b> {{{PREREQS2}}}<br>}}<!-- | -->{{#if:{{{PREREQS2|}}}|<b style="color:chocolate">Additional requirement:</b> {{{PREREQS2}}}<br>}}<!-- | ||
Line 92: | Line 92: | ||
* 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 '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. Means it can only be chosen as a starting trait, when using targeted mutagen, or using the debug menu. | * Set 'invalid' to '1' if the mutation is not a valid random mutation target. 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. Used for mutations with ones with <nowiki>'"mixed_effect" : true'</nowiki> in the json files. | |||
* 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. | * 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. | ||
* Set 'profession' to '1' if the mutation is a profession trait. The ones with <nowiki>'"profession" : true'</nowiki> in the json files. | * Set 'profession' to '1' if the mutation is a profession trait. The ones with <nowiki>'"profession" : true'</nowiki> in the json files. |
Revision as of 16:49, 5 September 2020
[[{{{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 random mutation target. 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. Used for mutations with ones with '"mixed_effect" : true' in the json files.
- 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 'profession' to '1' if the mutation is a profession trait. The ones with '"profession" : 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.
- Set 'purifiable' to '1' if the mutation is not purifiable. The ones with '"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.