Template:Medium rarity item: Difference between revisions
Jump to navigation
Jump to search
created |
HiddenDragon (talk | contribs) No edit summary |
||
(16 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{RarityItem|{{{1}}}|30}}</onlyinclude></includeonly><noinclude> | <includeonly><onlyinclude>{{RarityItem | ||
|{{{1}}} | |||
|30 | |||
|alias={{{alias|}}}{{{2|}}} | |||
|nowrap={{{nowrap|}}} | |||
|uid={{{uid|}}} | |||
|override_icon={{{override_icon|}}} | |||
|override_rarity={{{override_rarity|}}} | |||
}}</onlyinclude></includeonly><noinclude>{{documentation|content= | |||
{{shortcut|MdRarityItem}} | |||
As [[Template:RarityItem]] but sets the default size to 30 instead of 25. | As [[Template:RarityItem]] but sets the default size to 30 instead of 25. | ||
[ | Examples: | ||
</noinclude> | {{Template demo | ||
| style = table | |||
| caption 1 = Default | |||
| <nowiki>{{MdRarityItem|Handmaiden's Mace}}</nowiki> | |||
| caption 2 = Override icon/rarity | |||
| <nowiki>{{MdRarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}}</nowiki> | |||
}} | |||
Other options | |||
* {{tlink|LgRarityItem}} - sets the default size to 40 instead of 25 | |||
* {{tlink|SmRarityItem}} - sets the default size to 20 instead of 25 | |||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "item name", | |||
"description": "Sets the item name to look up.", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "alias2", | |||
"description": "An alternative for the \"alias\" parameter. Sets the display name of the link." | |||
}, | |||
"alias": { | |||
"description": "Sets the display name of the link" | |||
}, | |||
"uid": { | |||
"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." | |||
} | |||
}, | |||
"description": "Displays an item's rarity and item from a cargo table lookup.", | |||
"paramOrder": [ | |||
"alias", | |||
"1", | |||
"uid", | |||
"2", | |||
"override_icon", | |||
"override_rarity" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
}}</noinclude> |
Latest revision as of 08:22, 19 January 2025
Template documentation
Shortcut
- {{MdRarityItem}}
As Template:RarityItem but sets the default size to 30 instead of 25.
Examples:
Example | Markup | Renders as |
---|---|---|
Default | {{MdRarityItem|Handmaiden's Mace}} | Handmaiden's Mace |
Override icon/rarity | {{MdRarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}} | Handmaiden's Mace |
Other options
- {{LgRarityItem}} - sets the default size to 40 instead of 25
- {{SmRarityItem}} - sets the default size to 20 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 |