Template:Item icon/doc: Difference between revisions

Jump to navigation Jump to search
(Add missing example)
(document override_rarity, override_icon)
Line 9: Line 9:
|show_rarity=(optional) Whether to add a border and background to the icon according to the item's rarity. Omit to not show it.
|show_rarity=(optional) Whether to add a border and background to the icon according to the item's rarity. Omit to not show it.
|no_padding=(optional) If specified, does not insert padding. Advanced use mostly.
|no_padding=(optional) If specified, does not insert padding. Advanced use mostly.
|override_icon=(optional) If specified, skips looking up the Cargo table and inserts the specified icon directly. Must also specify '''override_rarity'''.
|override_rarity=(optional) When specified with '''override_icon''', will set the rarity of the displayed item.
}}</pre>
}}</pre>