User:Llamageddon/RrtyItem: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
(Added guide for keywords and shortcuts.)
Line 23: Line 23:
| tooltip = Icon.png
| tooltip = Icon.png
| tt = Icon.png
| tt = Icon.png
| icon = Icon.png
| im = Item Image.png
| im = Item Image.png
| unfaded = Item Image.png
| unfaded = Item Image.png
Line 39: Line 38:


The rarity is defined by the second paramater: {{User:Llamageddon/Highlight|{{Color|#1B1A1999|common}}}}, {{User:Llamageddon/Highlight|{{Color|#00491599|uncommon}}}}, {{User:Llamageddon/Highlight|{{Color|#00374999|rare}}}}, {{User:Llamageddon/Highlight|{{Color|#54003299|veryrare}}}}, {{User:Llamageddon/Highlight|{{Color|#563E0D99|legendary}}}},  or {{User:Llamageddon/Highlight|{{Color|#561D0099|story}}}}. If left blank, it will default to dark grey (common) for the border.
The rarity is defined by the second paramater: {{User:Llamageddon/Highlight|{{Color|#1B1A1999|common}}}}, {{User:Llamageddon/Highlight|{{Color|#00491599|uncommon}}}}, {{User:Llamageddon/Highlight|{{Color|#00374999|rare}}}}, {{User:Llamageddon/Highlight|{{Color|#54003299|veryrare}}}}, {{User:Llamageddon/Highlight|{{Color|#563E0D99|legendary}}}},  or {{User:Llamageddon/Highlight|{{Color|#561D0099|story}}}}. If left blank, it will default to dark grey (common) for the border.
== Shortcuts and Keywords ==
=== Rarity and Colour ===
'''2nd parameter'''
''Default/null value'': (c) common - #1B1A1999
* ({{C|u}}) {{C|uncommon}} = #00491599
* ({{C|r}}) {{C|rare}} = #00374999
* ({{C|v}}) {{C|veryrare}} = #54003299
* ({{C|l}}) {{C|legendary}} = #563E0D99
* ({{C|s}}) {{C|story}} = #561D0099
=== Image Type ===
'''3rd parameter'''
''Default/null value'': (ii) - Item Icon.png
* ({{C|tt}}) {{C|tooltip}} = Icon.png
* ({{C|im}}) {{C|unfaded}} = Item Image.png
=== Link and Text Keywords ===
''4th parameter''
* {{C|item}} = Copy in the item name (1st parameter) as the link text.
''5th parameter''
* {{C|notext}} = Don't use any custom link (4th parameter) as a text link.
=== Image Size ===
'''6th parameter'''
''Default/null value'': ({{C|inline}}) = 25px
* {{C|large}} = 380px (''Native "faded" tooltip resolution'')
* {{C|medium}} = 144px (''Most common native "unfaded" tooltip resolution'')
* {{C|small}} = 40px (''Native item icon resolution'')
* {{C|inline}} = 25px (''Typical size for inline image use'')


== Examples ==
== Examples ==

Revision as of 10:41, 7 September 2023


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.

Shortcuts and Keywords

Rarity and Colour

2nd parameter

Default/null value: (c) common - #1B1A1999

  • (u) uncommon = #00491599
  • (r) rare = #00374999
  • (v) veryrare = #54003299
  • (l) legendary = #563E0D99
  • (s) story = #561D0099

Image Type

3rd parameter

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

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

Link and Text Keywords

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

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)

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|u|tt|List_of_Weapons#Uncommon|notext|small}}

Using a tooltip (large "faded") image. Shortcuts in 2nd and 3rd, custom link in 4th, keyword 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|Warhammer|legendary||||medium}}

Larger than native icon resolution defined.

Warhammer Item Icon.png


{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|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