Template:Mutation: Difference between revisions

Jump to navigation Jump to search
cargo: remove NPC only, replace with Obtainable
(Add variants infobox row (probably should also be added to cargo, will leave that to Dij)
(cargo: remove NPC only, replace with Obtainable)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Mutations|Type=String|Cost=Integer|Slots=List (,) of String|Exclusions= List (,) of Page|CreationCode=String|MutationID=String|RealityDistort=Boolean|Description=Wikitext|Prerelease=Boolean|NPConly=Boolean}}
<noinclude>{{#cargo_declare:_table=Mutations
<!--Partially based off of Templates:Item-->
|Name=String
</noinclude><includeonly>{{#cargo_store:_table=Mutations|
|Type=String
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}}}}
|Cost=Integer
{{#invoke:infobox|infobox
|Slots=List (,) of String
|CanEquipSlots=Boolean
|Exclusions= List (,) of Page
|MutationID=String
|RealityDistort=Boolean
|Description=Wikitext
|Prerelease=Boolean
|Variants= List (,) of String
|Obtainable=Boolean
|StartingMutation=Boolean
|Deprecated=Boolean}}<!--
 
-->{{#cargo_attach:_table = GeneralData}}<!--
 
    CARGO STORE
 
--></noinclude><includeonly>{{#cargo_store:_table=Mutations
|Name={{{title|{{#titleparts:{{PAGENAME}}}}}}}
|Type={{{type|}}}
|Cost={{{cost|}}}
|Slots={{{slots|}}}
|CanEquipSlots={{{canequipslots|}}}
|Exclusions={{{exclusions|}}}
|RealityDistort={{{realitydistort|no}}}
|MutationID={{{id|}}}
|Description={{qud text|{{{desc|}}}|unbolded}}
|Prerelease={{{prerelease|no}}}
|Variants={{{variants|}}}
|Obtainable={{{obtainable|{{{startingmutation|no}}}}}}
|StartingMutation={{{startingmutation|no}}}
|Deprecated={{{deprecated|no}}}}}{{#vardefine:name|{{qud text|&y{{#titleparts:{{{title|}}}}} }}}}<!--
 
    General Data Storage    (store ID with "Mutation:" in front to avoid object ID collisions)
 
-->{{#cargo_store:_table=GeneralData
|ObjectID=Mutation:{{{id|}}}
|DisplayName={{qud text|{{{title|{{PAGENAME}}}}}}}
|Image={{#ifeq: {{{image|}}} | none ||{{{image|}}}}}
|PlainName={{StripFormatting|1={{{title|{{#titleparts:{{PAGENAME}}}} }}} }}
|TileColors={{{tilecolors|wW}}}
|Categories=Mutations
|Aliases={{#var:aliases|}}
|IDAliases={{#var:idaliases|}}
|JoinKey={{FULLPAGENAME}}
|Description={{qud text|{{{desc|}}}|unbolded}} }}<!--
 
    INFOBOX START
 
-->{{#invoke:infobox|infobox
| class = qud-mutation-infobox
| class = qud-mutation-infobox
| rows =  
| rows =  
Line 12: Line 60:
| Physical defect = [[Category:Physical Defects]]
| Physical defect = [[Category:Physical Defects]]
| 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|Takes up|{{{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: {{{exclusions|}}} | {{infobox row|Exclusions|{{Consecutive links|{{{exclusions}}}}} }} }}
{{#if: {{{canequipslots|}}} | {{#if: {{{slots|}}} | {{infobox row|{{Tooltip|1=<span style="font-weight:normal;">Whether equipment can be worn<br>on top of the mutated body part</span>|2=Location Equippable?}}|{{{canequipslots}}} }} }} }}
{{#if: {{{variants|}}} | {{infobox row|Variants|{{{variants}}} }} }}
{{#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: {{{code|}}} | {{infobox row|Creation Code|{{{code}}} }} }}
{{#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}}} }} }}
<!--This is the name of the object 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|{{{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: {{{npconly|}}} | yes | [[Category:Innate mutations]] | [[Category:Mutations]]}}
{{#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: {{{startingmutation|no}}}{{{obtainable|no}}} | nono | [[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>

Navigation menu