Template:Mutation: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Type is string now)
(cleaned up a lot of the infobox and removed unecessary things/better off in their own table)
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}}</noinclude>
<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}}
<!--Partially based off of Templates:Item-->
<!--Partially based off of Templates:Item-->
<includeonly>
</noinclude><includeonly>{{#cargo_store:_table=Mutations|Type={{{type|}}}|Cost={{{cost|}}}|Slots={{{slots|}}}|Exclusions= {{{exclusions|}}}|CreationCode={{{code|}}}|RealityDistort={{{realitydistort|no}}}|MutationID={{{id|}}}|Description={{{desc|}}}}}
{{#cargo_store:_table=Mutations|Type={{{type|}}}|Cost={{{cost|}}}|Slots={{{slots|}}}|Exclusions= {{{exclusions|}}}|CreationCode={{{code|}}}|RealityDistort={{{realitydistort|no}}}|MutationID={{{id|}}}|Description={{{desc|}}}}}
[[Category:Mutations]]
[[Category:Mutations]]
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
Line 11: Line 10:
| Physical defect = [[Category:Physical Defects]]
| Physical defect = [[Category:Physical Defects]]
| Mental defect = [[Category:Mental Defects]]}} }} }}
| Mental defect = [[Category:Mental Defects]]}} }} }}
<!--Everything should be stats at level 1! Add the other levels in an additional table in the doc!-->
{{#if: {{{cost|}}}    | {{infobox row|Cost|{{{cost}}} }} }}
{{#if: {{{cost|}}}    | {{infobox row|Cost|{{{cost}}} }} }}
{{#if: {{{av|}}}      | {{infobox row|Base [[AV]]|{{{av}}} }} }}
{{#if: {{{dv|}}}      | {{infobox row|Base [[DV]]|{{{dv}}} }} }}
{{#if: {{{ma|}}}      | {{infobox row|MA|{{{ma}}} }} }}
{{#if: {{{slots|}}}  | {{infobox row|Takes up|{{{slots}}} }} }}
{{#if: {{{slots|}}}  | {{infobox row|Takes up|{{{slots}}} }} }}
{{#if: {{{exclusions|}}} | {{infobox row|Exclusions|{{Consecutive links|{{{exclusions}}}}} }} }}
{{#if: {{{exclusions|}}} | {{infobox row|Exclusions|{{Consecutive links|{{{exclusions}}}}} }} }}
Line 21: Line 16:
<!--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}}} }} }}
<!--Makes the attributes box show up if *any* of the attributes are filled out-->
{{#if: {{{realitydistort|}}} | {{infobox row|Reality Distorting{{Tooltip|This mutation is unable to be used under the effects of normality.}} }} }} }}
{{#if: {{{strength|}}}{{{agility|}}}{{{toughness|}}}{{{intelligence|}}}{{{willpower|}}}{{{ego|}}} |
{{infobox row|Attributes|{{#if: {{{strength|}}}    | <p style="color:#FFFFFF">  {{{strength}}} Strength</p>}}{{#if: {{{agility|}}}      | <p style="color:#CFC041">  {{{agility}}} Agility</p>}}{{#if: {{{toughness|}}}    | <p style="color:#D74200">    {{{toughness}}} Toughness</p>}}{{#if: {{{intelligence|}}} | <p style="color:rgb(51,102,255)">    {{{intelligence}}} Intelligence</p>}}{{#if: {{{willpower|}}}    | <p style="color:#00C420">    {{{willpower}}} Willpower</p>}}{{#if: {{{ego|}}}          | <p style="color:#DA5BD6"> {{{ego}}} Ego</p>}} }} }}
<!--Makes the resistances box show up if *any* of the resistances are filled out-->
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}} |
{{infobox row|Resistance|
{{#if: {{{acid|}}}    | <p style="color:#00C420">  {{{acid}}} Acid</p>}}{{#if: {{{electric|}}} | <p style="color:#CFC041"> {{{electric}}} Electric</p>}}{{#if: {{{cold|}}}    | <p style="color:#0096FF">  {{{cold}}} Cold</p>}}{{#if: {{{heat|}}}    | <p style="color:#D74200">    {{{heat}}} Heat</p>}} }} }}
{{#if: {{{realitydistort|}}} | {{infobox row|Reality Distorting{{Tooltip|This mutation is unable to be used under the effects of normality.}} }} }}  
| footer = These attributes assume that the mutation is level 1.}}
{{#if: {{{desc|}}} | {{Qud look notxml|text={{{desc}}}|bordercolor=y|bottomtext=none|padding=1}} }}
{{#if: {{{desc|}}} | {{Qud look notxml|text={{{desc}}}|bordercolor=y|bottomtext=none|padding=1}} }}



Revision as of 21:04, 10 August 2019

This template defines the table "Mutations". 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

Takes up

Hands

Exclusions

Flaming Hands, Freezing Hands

Creation Code

bb

ID

Burrowing Claws

Template:Qud look notxml