4,977
editsAd placeholder
User:Llamageddon/RrtyIcon: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
Llamageddon (talk | contribs) mNo edit summary |
Llamageddon (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
{{#lvardef: exlk | {{{1 |}}} }} | {{#lvardef: exlk | {{{1 |}}} }} | ||
{{#lvardef: rrty | {{{2 |}}} }} | {{#lvardef: rrty | {{{2 |}}} }} | ||
{{#lvardef: bord | <span style=" | {{#lvardef: bord | <span style="background: #1B1A19; padding: 4px 0px 6px 0px; max-height: 25px; border: 2px solid {{#switch: {{#lvar:rrty}} | common = #1B1A1999 | uncommon = #00491599 | rare = #00374999 | veryrare = #54003299 | legendary = #563E0D99 | story = #561D0099 | #1B1A1999 }};"> }} | ||
}}{{#lvar:bord}}{{ItemIcon|name={{#lvar:exlk}}|size=25}}</span> </includeonly><noinclude>__NOTOC__ | }}{{#lvar:bord}}{{ItemIcon|name={{#lvar:exlk}}|size=25}}</span> </includeonly><noinclude>__NOTOC__ | ||
This template uses the [[Template:ItemIcon|<nowiki>{{ItemIcon}}</nowiki>]] template to give the icon for the item defined in the first parameter a coloured border, based on rarity. The icon size is set to the standard {{C|25px}} maximum height for inline use. | This template uses the [[Template:ItemIcon|<nowiki>{{ItemIcon}}</nowiki>]] template to give the icon for the item defined in the first parameter a coloured border, based on rarity. The icon size is set to the standard {{C|25px}} maximum height for inline use. |