Template:Item icon: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Rename table column name->rarity)
(fix order by)
Line 4: Line 4:
|where=item_icon._pageName="{{{name}}}"
|where=item_icon._pageName="{{{name}}}"
|limit=1
|limit=1
|order by=item_icon.name
|order by=item_icon._pageName
|default=
|default=
|more results text=
|more results text=

Revision as of 07:26, 7 September 2023


This template fetches and displays an icon for an item. The information is uploaded using the standard item descriptions. Use Template:ItemIcon Insert to add a page that doesn't use Template:MiscItemPage, Template:EquipmentPage, or Template:WeaponPage.

Usage:
{{ItemIcon
|name=the name of the icon page
|size=(optional) the size of the icon
|show_name=(optional) Whether to show the name. Any value will show the name of the item as a link. Omit to hide it.
}}

Templates

Copy-ready template (no item name): {{ItemIcon|name=}}

Copy-ready template (with item name): {{ItemIcon|name=|show_name=true}}

Examples

{{ItemIcon|name=Potion of Healing}}

{{ItemIcon|name=Potion of Healing|size=30}}

{{ItemIcon|name=Potion of Healing|size=24|show_name=true}} Potion of Healing

{{ItemIcon|name=The Red Knight's Final Stratagem}} (testing that pages with ' work)

This template defines the table "item_icon". View table.