Template:Medium rarity item: Difference between revisions
Jump to navigation
Jump to search
(add uid) |
(add overrides) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{RarityItem|{{{1}}}|30|alias={{{alias|}}}{{{2|}}}|uid={{{uid|}}} }}</onlyinclude></includeonly><noinclude>{{documentation|content= | <includeonly><onlyinclude>{{RarityItem | ||
|{{{1}}} | |||
|30 | |||
|alias={{{alias|}}}{{{2|}}} | |||
|uid={{{uid|}}} | |||
|override_icon={{{override_icon|}}} | |||
|override_rarity={{{override_rarity|}}} | |||
}}</onlyinclude></includeonly><noinclude>{{documentation|content= | |||
{{MdRarityItem|Dwarven Thrower}} | {{MdRarityItem|Dwarven Thrower}} | ||
Line 24: | Line 31: | ||
"uid": { | "uid": { | ||
"description": "If specified, will search by UID instead of by name." | "description": "If specified, will search by UID instead of by name." | ||
}, | |||
"override_icon": { | |||
"description": "If specified, overrides the icon. In that case, must also specify override_rarity." | |||
}, | |||
"override_rarity": { | |||
"description": "Overrides the rarity of the item." | |||
} | } | ||
}, | }, | ||
Line 31: | Line 44: | ||
"1", | "1", | ||
"uid", | "uid", | ||
"2" | "2", | ||
"override_icon", | |||
"override_rarity" | |||
], | ], | ||
"format": "inline" | "format": "inline" |
Revision as of 17:36, 16 December 2023
Template documentation
As Template:RarityItem but sets the default size to 30 instead of 25.
Template data
Displays an item's rarity and item from a cargo table lookup.
Parameter | Description | Type | Status | |
---|---|---|---|---|
alias | alias | Sets the display name of the link | Unknown | optional |
item name | 1 | Sets the item name to look up. | Unknown | required |
uid | uid | If specified, will search by UID instead of by name. | Unknown | optional |
alias2 | 2 | An alternative for the "alias" parameter. Sets the display name of the link. | Unknown | optional |
override_icon | override_icon | If specified, overrides the icon. In that case, must also specify override_rarity. | Unknown | optional |
override_rarity | override_rarity | Overrides the rarity of the item. | Unknown | optional |