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

(Created page with "<includeonly>{{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }} | 111 = 1 | jan = 1 | 222 = 2 | feb = 2 | 333 = 3 | mar = 3 | 444 = 4 | apr = 4 | 555...")
 
m
Line 26: Line 26:
 
  | dec = 12
 
  | dec = 12
 
  | #default = 0
 
  | #default = 0
}}}}{{#ifexpr: {{#var: month}} = {{#if:{{CURRENTMONTH1}} <> 12|{{#expr: {{CURRENTMONTH1}}-1|12 }}|{{#if: {{PAGENAME}} <> Rares|
+
}}}}{{#ifexpr: {{#var: month}} = {{#if:{{CURRENTMONTH1}} <> 12|{{#expr: {{CURRENTMONTH1}}-1}}|12 }}|{{#if: {{PAGENAME}} <> Rares|
 
{{#if: {{{graphic|}}}|{{#if: {{{hue|}}}|{{#vardefine: imagename|File:UO-Item-{{{graphic}}}-{{{hue}}}.png}} }} }}{{#if: {{{image|}}} | {{#vardefine: imagename|File:{{{image}}} }} }}<div style="display:inline-block;text-align: center;padding:2em;">{{#if: {{#var: imagename}} |[[{{#var: imagename}}]]}}<br>[[{{{%PAGE%}}}|{{{name}}}&nbsp;{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 | {{{craftText}}} by {{{crafter}}}''}}{{#ifeq: {{Boolean|{{{engraving|}}} }} | 1 | {{{engraving}}} }}]]</div> }} }}</includeonly>
 
{{#if: {{{graphic|}}}|{{#if: {{{hue|}}}|{{#vardefine: imagename|File:UO-Item-{{{graphic}}}-{{{hue}}}.png}} }} }}{{#if: {{{image|}}} | {{#vardefine: imagename|File:{{{image}}} }} }}<div style="display:inline-block;text-align: center;padding:2em;">{{#if: {{#var: imagename}} |[[{{#var: imagename}}]]}}<br>[[{{{%PAGE%}}}|{{{name}}}&nbsp;{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 | {{{craftText}}} by {{{crafter}}}''}}{{#ifeq: {{Boolean|{{{engraving|}}} }} | 1 | {{{engraving}}} }}]]</div> }} }}</includeonly>

Revision as of 02:29, 22 August 2016