Template:Rarity item/doc

From bg3.wiki
Jump to navigation Jump to search

See Template:ItemIcon/Family for more variations of ItemIcon.

Icon Sizes
Name Example Size
SmRarityItem: Potion of Supreme Healing 20
RarityItem: Potion of Supreme Healing 25
MdRarityItem: Potion of Supreme Healing 30
LgRarityItem:  Potion of Supreme Healing 40

Examples

Example Markup Renders as
Default usage
{{RarityItem|Potion of Supreme Healing}}
Potion of Supreme Healing
With size
{{RarityItem|Potion of Supreme Healing|40}}
Potion of Supreme Healing
With alias
{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}
Supremey Boi
Lookup specific UID
{{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}}
Leather Armour
Override icons/rarity
{{RarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}}
Handmaiden's Mace
Block-style
{{RarityItem|The Red Knight's Final Strategem|40|block=yes}}
The Red Knight's Final Strategem
Block-style with larger gap
{{RarityItem|The Red Knight's Final Strategem|40|block=yes|gap=12}}
The Red Knight's Final Strategem

See also

  • {{LgRarityItem}} - sets the default size to 40 instead of 25
  • {{MdRarityItem}} - sets the default size to 30 instead of 25
  • {{SmRarityItem}} - sets the default size to 20 instead of 25

Template data

Inserts an item's icon, rarity colours, and name into a page. Specialization of Template:ItemIcon.

Template parameters

ParameterDescriptionTypeStatus
name1

The name of the item

Page namerequired
size2

(optional) Size of the item's icon. Default 25

Suggested values
25 30 40
Numberoptional
uiduid

The uid of the item. If specified, will search by UID *instead of* item name. Must be specified with the name parameter as well.

Unknownoptional
aliasalias

(optional) If specified, renames link text to this.

Unknownoptional
blockblock

Whether to wrap the icon and text in a containing HTML element and use 'inline-flex' to align the icon and text.

Stringoptional
gapgap

If 'block' is set, the exact gap to use between the icon and text.

Numberoptional
nowrapnowrap

Whether to use 'white-space: nowrap' to prevent line breaks; not needed if 'block' is set.

Stringoptional
Separatorseparator

What to put between the icon and text. Default is an narrow non-breaking space.

Contentoptional
override_iconoverride_icon

If specified, overrides the icon.

Unknownoptional
override_rarityoverride_rarity

If specified along with override_icon, sets the rarity.

Unknownoptional