User:Llamageddon/RrtyItem

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search


This is a template for colouring icon borders depending on the value of a 'rarity' variable. The icon size is set to the standard 25px maximum height for inline use by default. _Item_Icon.png is set as the default image type.

The rarity is defined by the second paramater: common, uncommon, rare, veryrare, legendary, or story. If left blank, it will default to dark grey (common) for the border.

Examples[edit | edit source]

  • Only first parameter defined.
{{User:Llamageddon/RrtyItem|Mace}}

TestMace Item Icon.png


  • Using shortcuts for rarity and image type, and item keyword in 4th to copy item name as text link.
{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}

Test2 Armour of Uninhibited Kushigo Icon.png Armour of Uninhibited Kushigo


  • Unrecognised value in 3rd. Link and link text in 4th and 5th.
{{User:Llamageddon/RrtyItem|Mace|v|x|List of Weapons#Very Rare|A very rare mace.}}

Mace Item Icon.png  A very rare mace.


  • Using a tooltip (large "faded") image. Shortcuts in 2nd and 3rd, custom link in 4th, keyword notext in 5th, and small in 6th.
{{User:Llamageddon/RrtyItem|Longsword|u|tt|List of Weapons#Uncommon|notext|small}}

Longsword Icon.png 


  • Blank image type.
{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}

Longbow Item Icon.png  Longbows


  • Larger than native icon resolution defined.
{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}}

Warhammer Item Icon.png


  • Missing page/icon links and unrecognised or invalid values.
{{User:Llamageddon/RrtyItem|Missing Link|Link Missing|Missing Link|Link Missing|Missing Link|Link Missing}}

File:Missing Link Item Icon.png  Missing Link

Shortcuts and Keywords[edit | edit source]

Rarity and Colour[edit | edit source]

2nd parameter

Default/null value: common = #48484899

(u) uncommon = #01BD3999
(r) rare = #01BFFF99
(v) veryrare = #D1017B99
(l) legendary = #B7861D99
(s) story = #FF590199

Image Type[edit | edit source]

3rd parameter

Default/null value: (ii) = Item Icon.png

(tt) tooltip = Icon.png
(im) unfaded = Item Image.png

Link and Text Keywords[edit | edit source]

4th parameter

item = Copy in the item name (1st parameter) as the link text.

5th parameter

notext = Don't use any custom link (4th parameter) as a text link.

Image Size[edit | edit source]

6th parameter

Default/null value: inline = 25px

large = 380px (Native "faded" tooltip resolution)
medium = 144px (Most common native "unfaded" tooltip resolution)
small = 40px (Native item icon resolution)
inline = 25px (Typical size for inline image use)

Testing[edit | edit source]

Armour of Uninhibited Kushigo Icon.png Armour of Uninhibited Kushigo Test Armour of Uninhibited Kushigo Icon.png Armour of Uninhibited KushigoTestytest

Armour of Uninhibited Kushigo Icon.png Armour of Uninhibited Kushigo