Template:Creature mutation: Difference between revisions

better documentation
(fixed ego modifier logic with jank solution)
(better documentation)
Line 6: Line 6:
Template for use in [[Template:Character]] only.  
Template for use in [[Template:Character]] only.  


The first argument is the mutation name, and the second is the mutation level (defaults to 0). If mutation level is 0, the mutation level will not be shown (used for 1 pt mutations):
The first argument is the mutation name, and the second is the mutation level (defaults to 0).  


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{creature mutation|Burrowing Claws|3}}
{{creature mutation|Burrowing Claws|3}}
</syntaxhighlight>
</syntaxhighlight>
{{creature mutation|Burrowing Claws|3}}</noinclude>
{{creature mutation|Burrowing Claws|3}}
If mutation level is 0(or not set), the mutation level will not be shown (used for 1 pt mutations):
<syntaxhighlight lang="xml">
{{creature mutation|Albino}}
</syntaxhighlight>
{{creature mutation|Albino}}
 
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.
<syntaxhighlight lang="xml">
{{creature mutation|Psychometry|3|{{{ego|21}}}}}
</syntaxhighlight>
{{creature mutation|Psychometry|3|21}}
 
</noinclude>