Template:Mod: Difference between revisions
Jump to navigation
Jump to search
(tweak) |
(integrate native tier, add canautotinker) |
||
Line 7: | Line 7: | ||
|Tinkerable=Boolean | |Tinkerable=Boolean | ||
|TinkerTier=Integer | |TinkerTier=Integer | ||
|NativeTier=Integer | |||
|CanAutoTinker=Boolean | |||
|Description=Wikitext | |Description=Wikitext | ||
|DisplayName=Wikitext | |DisplayName=Wikitext | ||
Line 55: | Line 57: | ||
|TinkerTier={{{tinkertier|}}} | |TinkerTier={{{tinkertier|}}} | ||
|NativeTier={{{nativetier|}}} | |NativeTier={{{nativetier|}}} | ||
|CanAutoTinker={{{canautotinker|no}}} | |||
|Description={{qud text|{{{desc|}}} }} | |Description={{qud text|{{{desc|}}} }} | ||
|Restriction={{{restriction|no restrictions}}} | |Restriction={{{restriction|no restrictions}}} | ||
Line 72: | Line 75: | ||
{{#if: {{{restriction|}}}|{{infobox row|Restrictions|{{{restriction|}}} }} }} | {{#if: {{{restriction|}}}|{{infobox row|Restrictions|{{{restriction|}}} }} }} | ||
{{infobox row|Tiers|{{{mintier|0}}} - {{{maxtier|99}}} }} | {{infobox row|Tiers|{{{mintier|0}}} - {{{maxtier|99}}} }} | ||
{{#if: {{{nativetier|}}}|{{infobox row|{{Tooltip| | {{#if: {{{nativetier|}}}|{{infobox row|{{Tooltip|Less likely to appear on items</br>at a lower [[tier]] than this.|Native Tier}}|{{{nativetier}}} }} }} | ||
{{#if: {{{rarity|}}}|{{infobox row|Rarity|{{#switch: {{{rarity}}}| C = Common | U = Uncommon | R = Rare | M = Mega Rare}} }} }} | {{#if: {{{rarity|}}}|{{infobox row|Rarity|{{#switch: {{{rarity}}}| C = Common | U = Uncommon | R = Rare | M = Mega Rare}} }} }} | ||
{{infobox row|Tinkerable|{{{tinkerable|no}}} }} | {{infobox row|Tinkerable|{{{tinkerable|no}}} }} | ||
{{#ifeq: {{{tinkerable|}}}| yes | {{infobox row|Tinker Tier|{{{tinkertier}}} }} }} | {{#ifeq: {{{tinkerable|}}}| yes | {{infobox row|Tinker Tier|{{{tinkertier}}} }} }} | ||
{{infobox row|May appear on tinkered items|{{{canautotinker|no}}} }} | |||
{{infobox row|Value Multiplier|{{{value|1.0}}}}} | {{infobox row|Value Multiplier|{{{value|1.0}}}}} | ||
{{#if: {{{difficulty|}}}|{{infobox row|Difficulty increase|{{{difficulty}}} }} }} | {{#if: {{{difficulty|}}}|{{infobox row|Difficulty increase|{{{difficulty}}} }} }} | ||
Line 152: | Line 156: | ||
| defaults to no | | defaults to no | ||
| yes/no | | yes/no | ||
|- | |||
| canautotinker | |||
| whether the mod can generate on an item created by tinkering, defaults to no | |||
| yes/no | |||
|- | |- | ||
! tinkertier | ! tinkertier | ||
Line 173: | Line 181: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Mod | {{Mod | ||
| title | | title = | ||
| type | | type = | ||
| id | | id = | ||
| rarity | | rarity = | ||
| tinkerable | | tinkerable = | ||
| tinkertier | | canautotinker = | ||
| nativetier | | tinkertier = | ||
| value | | nativetier = | ||
| difficulty | | value = | ||
| complexity | | difficulty = | ||
| desc | | complexity = | ||
| restriction = | | desc = | ||
| restriction = | |||
}}</nowiki></pre> | }}</nowiki></pre> | ||
</noinclude> | </noinclude> |
Revision as of 16:31, 14 August 2020
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 no | yes/no |
tinkertier | what tier of complexity this mod adds onto the object | integer |
nativetier | The native tier it spawns in. | integer |
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 = | desc = | restriction = }}