Template:Mutation: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(convert (?) tooltips to inline tooltips)
(cargo: remove NPC only, replace with Obtainable)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Mutations
<noinclude>{{#cargo_declare:_table=Mutations
|Name=String
|Type=String
|Type=String
|Cost=Integer
|Cost=Integer
Line 5: Line 6:
|CanEquipSlots=Boolean
|CanEquipSlots=Boolean
|Exclusions= List (,) of Page
|Exclusions= List (,) of Page
|CreationCode=String
|MutationID=String
|MutationID=String
|RealityDistort=Boolean
|RealityDistort=Boolean
Line 11: Line 11:
|Prerelease=Boolean
|Prerelease=Boolean
|Variants= List (,) of String
|Variants= List (,) of String
|NPConly=Boolean
|Obtainable=Boolean
|StartingMutation=Boolean
|Deprecated=Boolean}}<!--
|Deprecated=Boolean}}<!--
-->{{#cargo_attach:_table = GeneralData}}<!--


     CARGO STORE
     CARGO STORE


--></noinclude><includeonly>{{#cargo_store:_table=Mutations
--></noinclude><includeonly>{{#cargo_store:_table=Mutations
|Name={{{title|{{#titleparts:{{PAGENAME}}}}}}}
|Type={{{type|}}}
|Type={{{type|}}}
|Cost={{{cost|}}}
|Cost={{{cost|}}}
Line 22: Line 26:
|CanEquipSlots={{{canequipslots|}}}
|CanEquipSlots={{{canequipslots|}}}
|Exclusions={{{exclusions|}}}
|Exclusions={{{exclusions|}}}
|CreationCode={{{code|}}}
|RealityDistort={{{realitydistort|no}}}
|RealityDistort={{{realitydistort|no}}}
|MutationID={{{id|}}}
|MutationID={{{id|}}}
Line 28: Line 31:
|Prerelease={{{prerelease|no}}}
|Prerelease={{{prerelease|no}}}
|Variants={{{variants|}}}
|Variants={{{variants|}}}
|NPConly={{{npconly|no}}}
|Obtainable={{{obtainable|{{{startingmutation|no}}}}}}
|StartingMutation={{{startingmutation|no}}}
|Deprecated={{{deprecated|no}}}}}{{#vardefine:name|{{qud text|&y{{#titleparts:{{{title|}}}}} }}}}<!--
|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
     INFOBOX START
Line 44: Line 62:
{{#if: {{{cost|}}}      | {{infobox row|Cost|{{{cost}}} }} }}
{{#if: {{{cost|}}}      | {{infobox row|Cost|{{{cost}}} }} }}
{{#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: {{{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|{{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: {{{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: {{{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|{{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|{{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}}} }} }}  
{{#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|{{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: {{{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: {{{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>

Latest revision as of 23:40, 3 February 2024

This template defines the table "Mutations". View table.This template adds rows to the table "GeneralData", which is declared by the template General data table. View table.

{{Mutation
| title = {{PAGENAME}}
| image = 
| type = 
| cost = 
| slots = 
| canequipslots =
| id = 
| exclusions = 
| variants =
| code = 
| desc = 
| realitydistort =
| npconly =
| deprecated =
}}
Parameter Explanation Data type
title The name of the mutation. string
image The image that represents the mutation mutation name.png/none
type The category of mutation it is in. Auto adds the mutation to that category in the wiki. Physical/Mental/Physical defect/Mental defect
cost How many mutation points it costs to buy. int
slots which body slots this mutation takes up comma-delimited list
canequipslots whether equipment can be worn over the top of the mutated body slot yes/no
exclusions the mutations that cannot be selected when this one is. Wikilinks to the associated mutations
variants Character creation variants for this mutation (such as Horns, Horn, Antlers, Casque) comma-delimited list
code The creation code that is used for the build code. string
id The name of the object in Mutations.xml string
realitydistort If the mutation is affected by normality effects. yes/no
desc The short description of the mutation. The whole string, with color codes included
npconly set this to "yes" if this mutation is not available to the player during character creation yes/no
deprecated has this mutation been removed from the game? yes/no

Usage:

{{Mutation
| title = Burrowing Claws
| image = burrowing claws mutation.png
| type = Physical
| cost = 2
| slots = Hands
| id = Burrowing Claws
| exclusions = Flaming Hands, Freezing Hands
| code = bb
| desc = ya dig?
}}
Burrowing Claws
Burrowing claws mutation.png
Category

Physical

Cost

2

Body LocationThe body part(s) where this
mutation can be located

Hands

ExclusionsOther mutations that cannot be
selected with this mutation

Flaming Hands, Freezing Hands

ID?Use this ID to wish for the mutation
(example: mutation:Burrowing Claws)

Burrowing Claws

Burrowing Claws

ya dig?