Difference between revisions of "Template:RareItem.dpl3.default"

m
m
Line 1: Line 1:
<includeonly>{{#if: {{PAGENAME}} <> Rares|<div style="display:inline-block;text-align: center;padding:2em;">{{#vardefine: imagename|File:UO-Item-{{{graphic}}}-{{{hue}}}.png}}{{#if: {{{image|}}} | {{#vardefine: imagename|File:{{{image}}} }} }}[[{{#var: imagename}}]]<br>
+
<includeonly>{{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }}
[[{{{%PAGE%}}}|{{{name}}}&nbsp;{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 | {{{craftText}}} by {{{crafter}}}''}}{{#ifeq: {{Boolean|{{{engraving|}}} }} | 1 | {{{engraving}}} }}]]</div>}}</includeonly>
+
| 111 = 1
 +
| jan = 1
 +
| 222 = 2
 +
| feb = 2
 +
| 333 = 3
 +
| mar = 3
 +
| 444 = 4
 +
| apr = 4
 +
| 555 = 5
 +
| may = 5
 +
| 666 = 6
 +
| jun = 6
 +
| 777 = 7
 +
| jul = 7
 +
| 888 = 8
 +
| aug = 8
 +
| 999 = 9
 +
| sep = 9
 +
| sept = 9
 +
| 101 = 10
 +
| oct = 10
 +
| 111 = 11
 +
| nov = 11
 +
| 121 = 12
 +
| dec = 12
 +
| #default = 0
 +
}}}}{{#ifexpr: {{#var: month}} = {{CURRENTMONTH1}}|{{#if: {{PAGENAME}} <> Rares|<div style="display:inline-block;text-align: center;padding:2em;">{{#vardefine: imagename|File:UO-Item-{{{graphic}}}-{{{hue}}}.png}}{{#if: {{{image|}}} | {{#vardefine: imagename|File:{{{image}}} }} }}[[{{#var: imagename}}]]<br>
 +
[[{{{%PAGE%}}}|{{{name}}}&nbsp;{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 | {{{craftText}}} by {{{crafter}}}''}}{{#ifeq: {{Boolean|{{{engraving|}}} }} | 1 | {{{engraving}}} }}]]</div>}} }}</includeonly>

Revision as of 01:41, 22 August 2016