Ad placeholder

User:Llamageddon/RrtyItem: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Added guide for keywords and shortcuts.)
No edit summary
Line 35: Line 35:
}}{{#lvar:spna}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|{{#lvar:pixl}}]] | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|{{#lvar:pixl}}|{{#Ifeq: {{#lvar:link}} | item | link={{#lvar:item}} | link={{#lvar:link}}}}]]</span>&nbsp;{{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | {{#Ifeq: {{#lvar:text}} | notext | | [[{{#lvar:link}}|{{#lvar:text}}]]}}}}&nbsp;}}</includeonly><noinclude>__NOTOC__
}}{{#lvar:spna}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|{{#lvar:pixl}}]] | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|{{#lvar:pixl}}|{{#Ifeq: {{#lvar:link}} | item | link={{#lvar:item}} | link={{#lvar:link}}}}]]</span>&nbsp;{{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | {{#Ifeq: {{#lvar:text}} | notext | | [[{{#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. The icon size is set to the standard {{C|25px}} maximum height for inline use.
This is a 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 by default. {{C|_Item_Icon.png}} is set as the default image type, and {{C|common}} is the default rarity setting.


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.
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.
Line 81: Line 81:


{{User:Llamageddon/RrtyItem|Mace}}
{{User:Llamageddon/RrtyItem|Mace}}
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Shortsword|v|tt|item}}</nowiki>}}
Very rare, tooltip image of a shortsword, with the name of the item as a text link.
{{User:Llamageddon/RrtyItem|Shortsword|v|tt|item}}




Navigation menu