Template:Itemicon insert: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(add uid field)
No edit summary
 
Line 14: Line 14:
}}</pre>
}}</pre>


{{#cargo_attach:_table=item_icon}}
{{#cargo_declare:
_table = item_icon
|rarity = String (allowed values=common,uncommon,rare, very rare,legendary,story)
|icon = File
|uid = String
}}


==Template data==
==Template data==

Latest revision as of 20:55, 14 April 2024

Template documentation

Inserts an icon into the Cargo item_icon database. Enables use of Template:ItemIcon.

Usage:
{{ItemIcon Insert
|icon=filename of the icon to use, without the File: prefix
|image=(optional) filename of the image to use as an icon, without the File: prefix. Overridden if "icon" is defined. Used for item template pages which may have an image configured but not an icon.
|rarity=the rarity of the item. One of (common,uncommon,rare, very rare,legendary,story). Defaults to common if not specified.
}}

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

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
iconicon

The icon file name, without the File: namespace.

Unknownrequired
imageimage

An image for the item. This is usually a faded image. Unfaded images should be put into "icon". Is overridden by "icon".

Unknownoptional
rarityrarity

The rarity of the item. Defaults to common.

Suggested values
common uncommon rare very rare
Unknownsuggested
uiduid

The unique id for the item. Can be used to query items that have multiple of the same display name.

Unknownsuggested