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 3: Line 3:
{{#lvardef: rrty | {{{2 |}}} }}
{{#lvardef: rrty | {{{2 |}}} }}
{{#lvardef: file | {{{3 |}}} }}
{{#lvardef: file | {{{3 |}}} }}
{{#lvardef: link | {{{4 | }}} }}
{{#lvardef: link | {{{4 |}}} }}
{{#lvardef: text | {{{5 | {{{4}}} }}} }}
{{#lvardef: text | {{{5 | {{{4}}} }}} }}
{{#lvardef: cols | {{#switch: {{#lvar:rrty}}
{{#lvardef: cols | {{#switch: {{#lvar:rrty}}
Line 17: Line 17:
| story = #561D0099
| story = #561D0099
| s = #561D0099
| s = #561D0099
| #1B1A1999 }}}}
| #1B1A1999 }} }}
{{#lvardef: sufx | {{#switch: {{#lvar:file}}
{{#lvardef: sufx | {{#switch: {{#lvar:file}}
| ii = Item Icon.png
| ii = Item Icon.png
Line 25: Line 25:
| im = Item Image.png
| im = Item Image.png
| 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; padding: 4px 0px 6px 0px; max-height: 25px; border-radius: 5px; border: 2px solid {{#lvar:cols}};"> }}
{{#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; padding: 4px 0px 6px 0px; max-height: 25px; border-radius: 5px; border: 2px solid {{#lvar:cols}};"> }}
{{#lvardef: spnb | <span style="display: inline-block; vertical-align: middle; width: 25px; height: 25px; overflow: hidden;"> }}
{{#lvardef: spnb | <span style="display: inline-block; vertical-align: middle; width: 25px; height: 25px; overflow: hidden;"> }}
}}{{#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;[[{{#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.
Line 59: Line 59:




{{C|<nowiki>{{User:Llamageddon/RrtyItem|Club|veryrare}}</nowiki>}}
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Club|veryrare|link}}</nowiki>}} Using {{C|item}} keyword in 4th parameter.


{{User:Llamageddon/RrtyItem|Club|veryrare}}
{{User:Llamageddon/RrtyItem|Club|veryrare|ii|item}}




Navigation menu