Template:Mod: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(add infobox row for powerloadsensitive)
m (add linebreak to tooltip; update documentation)
Line 96: Line 96:
{{#if: {{{difficulty|}}}|{{infobox row|[[Artifact difficulty|Difficulty]] increase|{{{difficulty}}} }} }}
{{#if: {{{difficulty|}}}|{{infobox row|[[Artifact difficulty|Difficulty]] increase|{{{difficulty}}} }} }}
{{#if: {{{complexity|}}}|{{infobox row|[[Artifact complexity|Complexity]] increase|{{{complexity}}} }} }}
{{#if: {{{complexity|}}}|{{infobox row|[[Artifact complexity|Complexity]] increase|{{{complexity}}} }} }}
{{infobox row|{{Tooltip|Whether this mod can be further enhanced by the [[Overloaded]] mod|Power load-sensitive?}}|{{#ifeq:{{{powerloadsensitive|no}}}|yes|yes|no}}}}
{{infobox row|{{Tooltip|Whether this mod can be further<br/>enhanced by the [[Overloaded]] mod|Power load-sensitive?}}|{{#ifeq:{{{powerloadsensitive|no}}}|yes|yes|no}}}}
{{#if: {{{id|}}}|{{infobox row|ID|{{{id}}} }} }}
{{#if: {{{id|}}}|{{infobox row|ID|{{{id}}} }} }}
}}{{#if: {{{desc|}}}|{{qud quote|{{{desc}}}|noindent=true}} }}<!--
}}{{#if: {{{desc|}}}|{{qud quote|{{{desc}}}|noindent=true}} }}<!--
Line 202: Line 202:
<pre><nowiki>
<pre><nowiki>
{{Mod
{{Mod
| title         =
| title             =
| type         =
| type               =
| id           =
| id                 =
| rarity       =
| rarity             =
| tinkerable   =
| tinkerable         =
| canautotinker =  
| canautotinker     =  
| tinkertier   =
| tinkertier         =
| nativetier   =
| nativetier         =
| value         =
| value             =
| difficulty   =
| difficulty         =
| complexity   =
| complexity         =
| desc         =
| powerloadsensitive =
| restriction   =
| desc               =
| restriction       =
}}</nowiki></pre>
}}</nowiki></pre>
</noinclude>
</noinclude>

Revision as of 20:11, 17 September 2021

This template defines the table "Mods". View table. For the tables/ mod groups the mod belongs in, tag the page as the appropriate category. should be the table name but with proper spaces.

title display name of the mod ingame. {{Qud text|(displayname with color codes)}}
type category of the mod (for the query module) Hierarchy. Choose the most specific category it applies to, it it's in multiple tables, separate each by an comma (,).

Choice of:

  • General
    • Pottery
    • Statue
  • Weapon
    • Thrown Weapon
      • Grenade
    • Missile Weapon
      • Magazine
      • Firearm
    • Melee Weapon
      • Blade
        • Short Blade
        • Long Blade
        • Axe
      • Cudgel
  • Armor
    • Body
    • Helmet
    • Headwear
    • Mask
    • Eyewear
    • Shield
    • Boot
    • Glove
    • Gauntlet
    • Tread Accessory
  • Electronic
    • Energy Cell
    • Tech Wall
  • Book
  • Curio
restriction any further specifications from type. strings
mintier minimum tier items it can appear on. defaults to 0 integer
maxtier maximum tier items it can appear on. defaults to 99 integer
rarity rarity. character(C, U, R, M)
id the name of the object in Mods.xml. This is MANDATORY and must be unique. string
tinkerable defaults to no yes/no
canautotinker whether the mod can generate on an item created by tinkering, defaults to yes yes/no
tinkertier what tier of complexity this mod adds onto the object integer
nativetier The native tier it spawns in. integer
powerloadsensitive Whether this mod is "power load-sensitive". Power load-sensitive mods can be enhanced by the Overloaded mod. yes/no
value value. what this alters the base Commerce of the object by. float
desc description. string

Source code Copy/Paste. Delete all blank fields.

{{Mod
| title              =
| type               =
| id                 =
| rarity             =
| tinkerable         =
| canautotinker      = 
| tinkertier         =
| nativetier         =
| value              =
| difficulty         =
| complexity         =
| powerloadsensitive =
| desc               =
| restriction        =
}}