Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Llamageddon/RrtyItem


This is a proof of concept 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.

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

{{User:Llamageddon/RrtyItem|Mace}}

Only first parameter defined.

Mace Item Icon.png


{{User:Llamageddon/RrtyItem|Mace|x|x|List_of_Weapons#Common|A common mace.}}

Unrecognised values in 2nd & 3rd. Link and link text in 4th and 5th.

Mace Item Icon.png A common mace. 


{{User:Llamageddon/RrtyItem|Longsword|uncommon|tt|List_of_Weapons#Uncommon|notext|small}}

Using a tooltip (large "faded") image, notext in 5th, and small in 6th.

Longsword Icon.png  


{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}

Blank image type.

Longbow Item Icon.png Longbows 


{{User:Llamageddon/RrtyItem|Club|veryrare|tt|item}}

Using tt and item keywords in 3rd & 4th parameters.

Club Icon.png Club 


{{User:Llamageddon/RrtyItem|Warhammer|legendary|||medium}}

Larger than native icon resolution defined.

Warhammer Item Icon.png


{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|story|tooltip|item}}

Using shortcuts for rarity and image type, and item keyword in 4th to copy item name as text link.

Armour of Uninhibited Kushigo Icon.png Armour of Uninhibited Kushigo 


{{User:Llamageddon/RrtyItem}}

Missing page/icon links and unrecognised or invalid values.

File:Missing Link Item Icon.png Missing Link 


List Layout

Stuffed Bear B Icon.png

Warhammer Item Icon.png

Club Item Icon.png

  • Mace Item Icon.png
  • Stuffed Bear B Icon.png
  • Warhammer Item Icon.png
Club Item Icon.png
Mace Item Icon.png
Stuffed Bear B Icon.png
  1. Warhammer Item Icon.png
  1. Club Item Icon.png
  1. Mace Item Icon.png