4,977
editsMore actions
m
no edit summary
Llamageddon (talk | contribs) mNo edit summary |
Llamageddon (talk | contribs) mNo edit summary |
||
Line 5: | Line 5: | ||
{{#lvardef: link | {{{4 |}}} }} | {{#lvardef: link | {{{4 |}}} }} | ||
{{#lvardef: text | {{{5 | {{{4}}} }}} }} | {{#lvardef: text | {{{5 | {{{4}}} }}} }} | ||
{{#lvardef: size | {{#lvar:pixl}} }} | |||
{{#lvardef: cols | {{#switch: {{#lvar:rrty}} | {{#lvardef: cols | {{#switch: {{#lvar:rrty}} | ||
| common = #1B1A1999 | | common = #1B1A1999 | ||
Line 26: | Line 27: | ||
| unfaded = Item Image.png | | unfaded = Item Image.png | ||
| Item Icon.png }} }} | | Item Icon.png }} }} | ||
{{#lvardef: spna | <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 | {{#lvardef: size | 40px }} | ||
{{# | {{#lvardef: spna | <span style="display: inline-block; 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; max-height: {{#lvar:size}}; vertical-align: middle; width: {{#lvar:size}}; height: {{#lvar:size}}; overflow: hidden; border-radius: 5px; border: 2px solid {{#lvar:cols}};">}} | ||
}}{{#lvar:spna | }}{{#lvar:spna}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:size}}]] | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:size}}| link={{#lvar:link}}]]</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. The icon size is set to the standard {{C|25px}} maximum height for inline use. | 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. |