Template:Creature mutation: Difference between revisions
Jump to navigation
Jump to search
(better documentation) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=CreatureMutations|Mutation=Page|MutationLevel=Integer}}</noinclude><includeonly>{{#cargo_store:_table=CreatureMutations|Mutation={{{1|}}}|MutationLevel={{{2|0}}}}} | <noinclude>{{#cargo_declare:_table=CreatureMutations|Mutation=Page|MutationLevel=Integer}}</noinclude><includeonly>{{#cargo_store:_table=CreatureMutations|Mutation={{{1|}}}|MutationLevel={{{2|0}}}}} | ||
[[{{{1|}}}]] {{#ifeq: {{#cargo_query:table=Mutations|fields=Type|where=_pageName='{{{1|Albino}}}' AND Type='Mental'}} |{{#cargo_query:table=Mutations|fields=Type|where=_pageName='shkjdkshf'}}|({{{2|1}}})|{{#vardefine:mod|{{modifier|{{{3|20}}}}}}}{{#ifexpr: {{#var:mod}} > 0|{{#vardefine:color|Green}}{{#vardefine:symbol|+}}|{{#ifexpr: {{#var:mod}} < 0|{{#vardefine:color|Red}}{{#vardefine:symbol|-}}|{{#vardefine:color|White}}{{#vardefine:symbol|+}}}}}}({{{2| | [[{{{1|}}}]] {{#ifeq: {{#cargo_query:table=Mutations|fields=Type|where=_pageName='{{{1|Albino}}}' AND Type='Mental'}} |{{#cargo_query:table=Mutations|fields=Type|where=_pageName='shkjdkshf'}}|({{{2|1}}})|{{#vardefine:mod|{{modifier|{{{3|20}}}}}}}{{#ifexpr: {{#var:mod}} > 0|{{#vardefine:color|Green}}{{#vardefine:symbol|+}}|{{#ifexpr: {{#var:mod}} < 0|{{#vardefine:color|Red}}{{#vardefine:symbol|-}}|{{#vardefine:color|White}}{{#vardefine:symbol|+}}}}}}({{{2|0}}}<span style="color:{{#var_final:color}};">{{#var:symbol}}{{#var:mod}}</span>)}} | ||
</includeonly><noinclude>[[Category:Templates]] | </includeonly><noinclude>[[Category:Templates]] |
Revision as of 15:58, 27 July 2019
This template defines the table "CreatureMutations". View table.
Template for use in Template:Character only.
The first argument is the mutation name, and the second is the mutation level (defaults to 0).
{{creature mutation|Burrowing Claws|3}}
Burrowing Claws (3)
If mutation level is 0(or not set), the mutation level will not be shown (used for 1 pt mutations):
{{creature mutation|Albino}}
Albino (1)
This template also takes a third argument, the ego value of a creature. If the mutation is a mental mutation, it will add bonus levels based on the ego modifier.
{{creature mutation|Psychometry|3|{{{ego|21}}}}}
Psychometry (3+2)