Template:Mutation: Difference between revisions

296 bytes added ,  16:31, 3 November 2020
convert (?) tooltips to inline tooltips
mNo edit summary
(convert (?) tooltips to inline tooltips)
Line 43: Line 43:
| Mental defect = [[Category:Mental Defects]]}} }} }}
| Mental defect = [[Category:Mental Defects]]}} }} }}
{{#if: {{{cost|}}}      | {{infobox row|Cost|{{{cost}}} }} }}
{{#if: {{{cost|}}}      | {{infobox row|Cost|{{{cost}}} }} }}
{{#if: {{{slots|}}}      | {{infobox row|Body Location{{Tooltip|The body part(s) where this<br>mutation can be located}}|{{{slots}}} }} }}
{{#if: {{{slots|}}}      | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">The body part(s) where this<br>mutation can be located</span>|2=Body Location}}|{{{slots}}} }} }}
{{#if: {{{canequipslots|}}} | {{#if: {{{slots|}}} | {{infobox row|Location Equippable?{{Tooltip|Whether equipment can be worn<br>on top of the mutated body part}}|{{{canequipslots}}} }} }} }}
{{#if: {{{canequipslots|}}} | {{#if: {{{slots|}}} | {{infobox row|Location Equippable?{{Tooltip|Whether equipment can be worn<br>on top of the mutated body part}}|{{{canequipslots}}} }} }} }}
{{#if: {{{exclusions|}}} | {{infobox row|Exclusions|{{Consecutive links|{{{exclusions}}}}} }} }}
{{#if: {{{exclusions|}}} | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">Other mutations that cannot be<br>selected with this mutation</span>|2=Exclusions}}|{{Consecutive links|{{{exclusions}}}}} }} }}
{{#if: {{{variants|}}}  | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">The <b><u>C</u></b>ustomize options that may<br>be selected for this mutation</span>|2=Variants}}|{{{variants}}} }} }}
{{#if: {{{variants|}}}  | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">The <b><u>C</u></b>ustomize options that may<br>be selected for this mutation</span>|2=Variants}}|{{{variants}}} }} }}
{{#if: {{{code|}}}      | {{infobox row|Creation Code{{Tooltip|The letters that represent this<br>Mutation within a [[Build Library|Build Code]]}}|{{{code}}} }} }}
{{#if: {{{code|}}}      | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">The letters that represent this<br>Mutation within a [[Build Library|Build Code]]</span>|2=Creation Code}}|{{{code}}} }} }}
<!-- The ID is the name of the mutation in Mutations.xml, or its C# class name if it is not listed in Mutations.xml -->
<!-- The ID is the name of the mutation in Mutations.xml, or its C# class name if it is not listed in Mutations.xml -->
{{#if: {{{id|}}}        | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|wish]] for the mutation<br>(example: <code>mutation:{{{id}}}</code>)}}|{{{id}}} }} }}
{{#if: {{{id|}}}        | {{infobox row|ID{{Tooltip|Use this ID to [[Wishes|wish]] for the mutation<br>(example: <code>mutation:{{{id}}}</code>)}}|{{{id}}} }} }}
{{#if: {{{realitydistort|}}} | {{infobox row|Reality Distorting{{Tooltip|Reality distorting mutations<br>cannot be used under<br>the effects of normality.}}|{{{realitydistort}}} }} }}  
{{#if: {{{realitydistort|}}} | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">Reality distorting mutations<br>cannot be used under<br>the effects of normality.</span>|2=Reality Distorting}}|{{{realitydistort}}} }} }}  
{{#ifeq: {{{deprecated|}}} | yes | {{infobox row|Deprecated{{Tooltip|This mutation has been removed<br>from the game. Its wiki page is<br>preserved for historical interest}}|{{{deprecated}}} }} }} }}
{{#ifeq: {{{deprecated|}}} | yes | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">This mutation has been removed<br>from the game. Its wiki page is<br>preserved for historical interest|2=Deprecated}}|{{{deprecated}}} }} }} }}
{{#ifeq: {{{npconly|}}} | yes | [[Category:Innate mutations]] | [[Category:Mutations]]}}
{{#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}} }}