Template:Mod: Difference between revisions
Jump to navigation
Jump to search
m (Fix unhandled "Yes" from mod pages) |
(Fix case-sensitivity in cargo store) |
||
Line 71: | Line 71: | ||
|Value = {{{value|1.0}}} | |Value = {{{value|1.0}}} | ||
|Rarity = {{{rarity|}}} | |Rarity = {{{rarity|}}} | ||
|Tinkerable = {{{tinkerable|no}}} | |Tinkerable = {{lc:{{{tinkerable|no}}}}} | ||
|TinkerTier = {{#ifeq:{{{tinkerable|}}}|yes|{{tinker check|{{{tinkertier|1}}} }} }} | |TinkerTier = {{#ifeq:{{lc:{{{tinkerable|}}}}}|yes|{{tinker check|{{{tinkertier|1}}} }} }} | ||
|BitUsed = {{#ifeq:{{{tinkerable|}}}|yes|{{{tinkertier|1}}} }} | |BitUsed = {{#ifeq:{{lc:{{{tinkerable|}}}}}|yes|{{{tinkertier|1}}} }} | ||
|NativeTier = {{{nativetier|}}} | |NativeTier = {{{nativetier|}}} | ||
|CanAutoTinker = {{{canautotinker|yes}}} | |CanAutoTinker = {{lc:{{{canautotinker|yes}}}}} | ||
|Description = {{qud text|{{{desc|}}} }} | |Description = {{qud text|{{{desc|}}} }} | ||
|Restriction = {{{restriction|no restrictions}}} | |Restriction = {{{restriction|no restrictions}}} | ||
|Difficulty = {{{difficulty|}}} | |Difficulty = {{{difficulty|}}} | ||
|Complexity = {{{complexity|}}} | |Complexity = {{{complexity|}}} | ||
|PowerLoadSensitive = {{{powerloadsensitive|no}}} | |PowerLoadSensitive = {{lc:{{{powerloadsensitive|no}}}}} | ||
|EMPSensitive = {{{empsensitive|no}}} | |EMPSensitive = {{lc:{{{empsensitive|no}}}}} | ||
|RealityDistortionBased = {{{realitydistortion|no}}} | |RealityDistortionBased = {{lc:{{{realitydistortion|no}}}}} | ||
|ChargeUsed = {{{chargeused|}}} | |ChargeUsed = {{{chargeused|}}} | ||
|DisplayName = {{{title|{{#titleparts:{{PAGENAME}}}} }}} | |DisplayName = {{{title|{{#titleparts:{{PAGENAME}}}} }}} | ||
|PlainName = {{#invoke: HTMLParse | strip_formatting | html ={{{title|{{#titleparts:{{PAGENAME}}}} }}}}} | |PlainName = {{#invoke: HTMLParse | strip_formatting | html ={{{title|{{#titleparts:{{PAGENAME}}}} }}}}} | ||
|TinkerTierNum = {{#ifeq:{{{tinkerable|}}}|yes|{{{tinkertier|1}}} }} | |TinkerTierNum = {{#ifeq:{{lc:{{{tinkerable|}}}}}|yes|{{{tinkertier|1}}} }} | ||
}}<!-- | }}<!-- | ||
Line 107: | Line 107: | ||
{{#ifeq: {{lc:{{{tinkerable|}}}}}| yes | {{infobox row|Tinker skill|[[{{Tinker check|{{{tinkertier}}} }}]] }} }} | {{#ifeq: {{lc:{{{tinkerable|}}}}}| yes | {{infobox row|Tinker skill|[[{{Tinker check|{{{tinkertier}}} }}]] }} }} | ||
{{#ifeq: {{lc:{{{tinkerable|}}}}}| yes | {{infobox row|Bit required|{{Bits|{{{tinkertier|1}}}}} }} }} | {{#ifeq: {{lc:{{{tinkerable|}}}}}| yes | {{infobox row|Bit required|{{Bits|{{{tinkertier|1}}}}} }} }} | ||
{{infobox row|{{Tooltip|Can appear spontaneously on an<br/>item you create with tinkering.|Autotinkerable}}|{{{canautotinker|yes}}} }} | {{infobox row|{{Tooltip|Can appear spontaneously on an<br/>item you create with tinkering.|Autotinkerable}}|{{lc:{{{canautotinker|yes}}}}} }} | ||
{{infobox row|Value multiplier|{{{value|1.0}}}}} | {{infobox row|Value multiplier|{{{value|1.0}}}}} | ||
{{#if: {{{difficulty|}}}|{{infobox row|[[Artifact difficulty|Difficulty]]|+{{{difficulty}}} }} }} | {{#if: {{{difficulty|}}}|{{infobox row|[[Artifact difficulty|Difficulty]]|+{{{difficulty}}} }} }} |
Revision as of 20:16, 16 December 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:
|
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 |
chargeused | Amount of charge consumed per use by this mod, if applicable. Usually a number but can also be a string such as "variable". | string |
powerloadsensitive | Whether this mod is "power load-sensitive". Power load-sensitive mods can be enhanced by the Overloaded mod. | yes/no |
empsensitive | Whether this mod is EMP-sensitive. | yes/no |
realitydistortion | Whether this mod is Reality distortion-based. | 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 = | chargeused = | powerloadsensitive = | empsensitive = | realitydistortion = | desc = | restriction = }}