4,977
editsMore actions
m
no edit summary
Llamageddon (talk | contribs) mNo edit summary |
Llamageddon (talk | contribs) mNo edit summary |
||
Line 30: | Line 30: | ||
}}{{#lvar:spna}}{{#lvar:spnb}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}} {{#lvar:sufx}}|25px]] | [[File:{{#lvar:item}} {{#lvar:sufx}}|25px|link={{#lvar:link}}]]</span></span> {{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | [[{{#lvar:link}}|{{#lvar:text}}]]}} }}</includeonly><noinclude>__NOTOC__ | }}{{#lvar:spna}}{{#lvar:spnb}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}} {{#lvar:sufx}}|25px]] | [[File:{{#lvar:item}} {{#lvar:sufx}}|25px|link={{#lvar:link}}]]</span></span> {{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | [[{{#lvar:link}}|{{#lvar:text}}]]}} }}</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 == |