4,977
editsAd placeholder
User:Llamageddon/ItemIcon: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
No edit summary |
Llamageddon (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
{{#lvardef: rrty | {{{2 |}}} }} | {{#lvardef: rrty | {{{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> </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> </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> |