User:Llamageddon/ItemIcon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#vardefine: rare | {{{1 |}}} }}
{{#lvardef: exlk | {{{1 |}}} }}
{{#vardefine: exlk | {{{2 |}}} }}
{{#lvardef: rrty | {{{2 |}}} }}
{{#vardefine: text | {{{3 | {{{2}}} }}} }}
}}<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>
}}<span class="bg3wiki-div-border bg3wiki-icon-colour-{{#var:rare}}">{{icon|{{#var:exlk}}_Item_Icon.png|link = {{#var:exlk}} | 25px }}</span>&nbsp;[[{{#var:exlk}}|{{#var:text}}]]</includeonly><noinclude>
{{User:Llamageddon/ItemIcon|veryrare|Mace|{{blank}}}}


{{User:Llamageddon/ItemIcon|uncommon|Club|Mace}}</noinclude>
This is a proof of concept template for colouring icon borders depending on the value of a 'rarity' variable.
 
== Examples ==
<nowiki>{{User:Llamageddon/ItemIcon|Club Item Icon.png|rare}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Mace Item Icon.png|common}}
 
<nowiki>{{User:Llamageddon/ItemIcon|Longsword Icon.png|uncommon}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Longsword Icon.png|uncommon}}
 
<nowiki>{{User:Llamageddon/ItemIcon|Mace Item Icon.png|rare}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Mace Item Icon.png|rare}}
 
<nowiki>{{User:Llamageddon/ItemIcon|Club Item Icon.png|veryrare}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Club Item Icon.png|veryrare}}
 
<nowiki>{{User:Llamageddon/ItemIcon|Warhammer Item Icon.png|legendary}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Warhammer Item Icon.png|legendary}}
 
<nowiki>{{User:Llamageddon/ItemIcon|Stuffed Bear A Icon.png|story}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Stuffed Bear A Icon.png|story}}
 
<nowiki>{{User:Llamageddon/ItemIcon|Ball Item Icon.png}}</nowiki>
 
{{User:Llamageddon/ItemIcon|Ball Item Icon.png}}
 
=== List Layout ===
{{User:Llamageddon/ItemIcon|Stuffed Bear A Icon.png|story}}
 
{{User:Llamageddon/ItemIcon|Warhammer Item Icon.png|legendary}}
 
{{User:Llamageddon/ItemIcon|Club Item Icon.png|veryrare}}
 
{{User:Llamageddon/ItemIcon|Mace Item Icon.png|rare}}
</noinclude>

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