User:Llamageddon/RrtyItem: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (abbreviations for rarities)
mNo edit summary
Line 5: Line 5:
{{#lvardef: link | {{{4 | }}} }}
{{#lvardef: link | {{{4 | }}} }}
{{#lvardef: text | {{{5 | {{{4}}} }}} }}
{{#lvardef: text | {{{5 | {{{4}}} }}} }}
{{#lvardef: cols | {{#switch: {{#lvar:rrty}}  
{{#lvardef: cols | {{#switch: {{#lvar:rrty}}
| common = #1B1A1999  
| common = #1B1A1999
| uncommon = #00491599  
| uncommon = #00491599
| u = #00491599  
| u = #00491599
| rare = #00374999  
| rare = #00374999
| r = #00374999  
| r = #00374999
| veryrare = #54003299  
| veryrare = #54003299
| v = #54003299  
| v = #54003299
| legendary = #563E0D99  
| legendary = #563E0D99
| l = #563E0D99  
| l = #563E0D99
| story = #561D0099  
| story = #561D0099
| s = #561D0099  
| s = #561D0099
| #1B1A1999 }}}}
| #1B1A1999 }}}}
{{#lvardef: sufx | {{#switch: {{#lvar:file}}  
{{#lvardef: sufx | {{#switch: {{#lvar:file}}
| icon = Item Icon.png  
| ii = Item Icon.png
| tooltip = Icon.png  
| tooltip = Icon.png
| image = Item Image.png  
| tt = Icon.png
| icon = Icon.png
| im = Item Image.png
| unfaded = Item Image.png
| Item Icon.png }}}}
| Item Icon.png }}}}
{{#lvardef: spna | <span style="box-shadow: rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset, rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset; background: #1B1A19; padding: 4px 0px 6px 0px; max-height: 25px; border-radius: 5px; border: 2px solid {{#lvar:cols}};"> }}
{{#lvardef: spna | <span style="box-shadow: rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset, rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset; background: #1B1A19; padding: 4px 0px 6px 0px; max-height: 25px; border-radius: 5px; border: 2px solid {{#lvar:cols}};"> }}

Revision as of 21:20, 6 September 2023


This is a proof of concept template for colouring icon borders depending on the value of a 'rarity' variable.

Examples

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

Mace Item Icon.png


{{User:Llamageddon/RrtyItem|Mace|x|x|Mace|A normal Mace.}} Unrecognised values in 2nd & 3rd.

Mace Item Icon.png A normal Mace. 


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

Mace Item Icon.png A common mace. 


{{User:Llamageddon/RrtyItem|Longsword|uncommon|tooltip|Weapons}} Using a tooltip (large "faded") image.

Longsword Icon.png Longsword 


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

Longbow Item Icon.png Longbows 


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

Club Item Icon.png


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

Warhammer Item Icon.png


{{User:Llamageddon/RrtyItem|Stuffed Bear A|story|tooltip}}

Stuffed Bear A Icon.png


{{User:Llamageddon/RrtyItem}} Missing page/icon links.

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