User:Llamageddon/ItemIcon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#vardefine: exlk | {{{1 |}}} }}
{{#lvardef: exlk | {{{1 |}}} }}
{{#vardefine: rrty | {{{2 |}}} }}
{{#lvardef: rrty | {{{2 |}}} }}
}}<span style="padding: 4px 0px 6px 0px; max-width: 25px; border: 2px solid {{#switch: {{#var:rrty}} | common = #1B1A1999 | uncommon = #00491599 | rare = #00374999 | veryrare = #54003299 | legendary = #563E0D99 | story = #561D0099 | #1B1A1999 }};">[[File:{{#var:exlk}}|25px]]</span>&nbsp;</includeonly><noinclude>
}}<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-width: 25px; border: 2px solid {{#switch: {{#lvar:rrty}} | common = #1B1A1999 | uncommon = #00491599 | rare = #00374999 | veryrare = #54003299 | legendary = #563E0D99 | story = #561D0099 | #1B1A1999 }};">[[File:{{#lvar:exlk}}|25px]]</span>&nbsp;</includeonly><noinclude>
 
This is a proof of concept template for colouring icon borders depending on the value of a 'rarity' variable.
 
== Examples ==
== Examples ==
<nowiki>{{User:Llamageddon/ItemIcon|Club Item Icon.png|rare}}</nowiki>
<nowiki>{{User:Llamageddon/ItemIcon|Club Item Icon.png|rare}}</nowiki>

Latest revision as of 11:20, 5 September 2023


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

Examples[edit | edit source]

{{User:Llamageddon/ItemIcon|Club Item Icon.png|rare}}

Mace Item Icon.png 

{{User:Llamageddon/ItemIcon|Longsword Icon.png|uncommon}}

Longsword Icon.png 

{{User:Llamageddon/ItemIcon|Mace Item Icon.png|rare}}

Mace Item Icon.png 

{{User:Llamageddon/ItemIcon|Club Item Icon.png|veryrare}}

Club Item Icon.png 

{{User:Llamageddon/ItemIcon|Warhammer Item Icon.png|legendary}}

Warhammer Item Icon.png 

{{User:Llamageddon/ItemIcon|Stuffed Bear A Icon.png|story}}

Stuffed Bear A Icon.png 

{{User:Llamageddon/ItemIcon|Ball Item Icon.png}}

Ball Item Icon.png 

List Layout[edit | edit source]

Stuffed Bear A Icon.png 

Warhammer Item Icon.png 

Club Item Icon.png 

Mace Item Icon.png