Template:Image rarity item: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Created page with "<includeonly>{{#cargo_query: tables = item_icon | fields = TRIM(icon) = icon, CONCAT('', '{{{w|50}}}') = size, LOWER(rarity) = rarity, CONCAT('', "{{{1}}}") = page, CONCAT('', "{{{2|{{{1}}}}}}") = alias | where = {{#if: {{{uid|}}} | item_icon.uid = "{{{uid}}}" | item_icon._pageName="{{{1}}}" }} | limit = 1 | order by = item_icon._pageName | default = {{Image rarity item/Format|icon={{{1}}} Unfaded Icon.png|size={{{w|50}}}|rarity=common|pa...") |
(No difference)
|
Revision as of 07:26, 15 October 2024
See also: Template:RarityItem
This template is similar to RarityItem except it places the icon above the link to the item.
The default size is 50px (width and height).
Examples
Markup | Renders as |
---|---|
{{Image rarity item|Moondrop Pendant}} | Moondrop Pendant |
{{Image rarity item|Moondrop Pendant|Moon Pendant}} | Moon Pendant |
{{Image rarity item|Moondrop Pendant|w=80}} | Moondrop Pendant |
Template Data Section
Inserts an item's icon automatically. Can also display a link to the item.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | The name of the icon. Identical to the item's page name.
| Page name | required |
uid | uid | If specified, will instead search by UID. | String | optional |
size | size | The height of the item icon.
| Number | optional |
show_name | show_name | If non-empty, will link the icon as well. | Boolean | optional |
no_padding | no_padding | Whether to remove exterior padding. Advanced use. | Unknown | optional |
show_rarity | show_rarity | If non-empty, will display an icon border corresponding to the rarity. | Boolean | optional |
override_icon | override_icon | If provided, will override the icon with the provided one. | String | optional |
override_rarity | override_rarity | If provided, will replace the fetched rarity. | String | optional |
alias | alias | An alias for the item. | String | optional |
wrap | wrap | If non-empty, will allow the item icon to wrap. | Boolean | optional |