Template:Mutation: Difference between revisions

give Category:Mutations only if not npconly
(here you go)
(give Category:Mutations only if not npconly)
Line 2: Line 2:
<!--Partially based off of Templates:Item-->
<!--Partially based off of Templates:Item-->
</noinclude><includeonly>{{#cargo_store:_table=Mutations|
</noinclude><includeonly>{{#cargo_store:_table=Mutations|
Type={{{type|}}}|Cost={{{cost|}}}|Slots={{{slots|}}}|Exclusions={{{exclusions|}}}|CreationCode={{{code|}}}|RealityDistort={{{realitydistort|no}}}|MutationID={{{id|}}}|Description={{qud text|{{{desc|}}}|notxml|unbolded}}|Prerelease={{{prerelease|no}}}|NPConly={{{npconly|no}}}}}[[Category:Mutations]]{{#vardefine:name|{{qud text|&y{{#titleparts:{{{title|}}}}}|notxml}}}}
Type={{{type|}}}|Cost={{{cost|}}}|Slots={{{slots|}}}|Exclusions={{{exclusions|}}}|CreationCode={{{code|}}}|RealityDistort={{{realitydistort|no}}}|MutationID={{{id|}}}|Description={{qud text|{{{desc|}}}|notxml|unbolded}}|Prerelease={{{prerelease|no}}}|NPConly={{{npconly|no}}}}}{{#vardefine:name|{{qud text|&y{{#titleparts:{{{title|}}}}}|notxml}}}}
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| class = qud-mutation-infobox
| class = qud-mutation-infobox
Line 18: Line 18:
<!--This is the name of the object in Mutations.xml-->
<!--This is the name of the object in Mutations.xml-->
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
{{#if: {{{id|}}}      | {{infobox row|ID|{{{id}}} }} }}
{{#if: {{{realitydistort|}}} | {{infobox row|Reality Distorting{{Tooltip|Reality distorting mutations<br>cannot be used under<br>the effects of normality.}}|{{{realitydistort}}} }} }} }}{{#ifeq: {{{npconly|}}} | yes | [[Category:Innate mutations]]}}
{{#if: {{{realitydistort|}}} | {{infobox row|Reality Distorting{{Tooltip|Reality distorting mutations<br>cannot be used under<br>the effects of normality.}}|{{{realitydistort}}} }} }} }}
{{#ifeq: {{{npconly|}}} | yes | [[Category:Innate mutations]] | [[Category:Mutations]]}}
{{#if: {{{desc|}}} | {{Qud look|title={{{title|{{PAGENAME}}}}}|text={{{desc}}}|bordercolor=y|bottomtext=none|padding=1}} }}
{{#if: {{{desc|}}} | {{Qud look|title={{{title|{{PAGENAME}}}}}|text={{{desc}}}|bordercolor=y|bottomtext=none|padding=1}} }}
</includeonly><noinclude>
</includeonly><noinclude>
{{doc}}[[Category:Cargo Store Templates]]
{{doc}}[[Category:Cargo Store Templates]]
</noinclude>
</noinclude>