Ad placeholder

User:Llamageddon/RrtyItem: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 30: Line 30:
}}{{#lvar:spna}}{{#lvar:spnb}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|25px]] | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|25px|link={{#lvar:link}}]]</span></span>&nbsp;{{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | [[{{#lvar:link}}|{{#lvar:text}}]]}}&nbsp;}}</includeonly><noinclude>__NOTOC__
}}{{#lvar:spna}}{{#lvar:spnb}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|25px]] | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|25px|link={{#lvar:link}}]]</span></span>&nbsp;{{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | [[{{#lvar:link}}|{{#lvar:text}}]]}}&nbsp;}}</includeonly><noinclude>__NOTOC__


This is a proof of concept template for colouring icon borders depending on the value of a 'rarity' variable.
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 {{C|25px}} maximum height for inline use.
 
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.


== Examples ==
== Examples ==

Navigation menu