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

m
m
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }}
+
<includeonly>{{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }}
  | 111 = 1
+
  | 1~1 = 1
 
  | jan = 1
 
  | jan = 1
  | 222 = 2
+
  | 2~2 = 2
 
  | feb = 2
 
  | feb = 2
  | 333 = 3
+
  | 3~3 = 3
 
  | mar = 3
 
  | mar = 3
  | 444 = 4
+
  | 4~4 = 4
 
  | apr = 4
 
  | apr = 4
  | 555 = 5
+
  | 5~5 = 5
 
  | may = 5
 
  | may = 5
  | 666 = 6
+
  | 6~6 = 6
 
  | jun = 6
 
  | jun = 6
  | 777 = 7
+
  | 7~7 = 7
 
  | jul = 7
 
  | jul = 7
  | 888 = 8
+
  | 8~8 = 8
 
  | aug = 8
 
  | aug = 8
  | 999 = 9
+
  | 9~9 = 9
 
  | sep = 9
 
  | sep = 9
 
  | sept = 9
 
  | sept = 9
  | 101 = 10
+
  | 10~ = 10
 
  | oct = 10
 
  | oct = 10
  | 111 = 11
+
  | 11~ = 11
 
  | nov = 11
 
  | nov = 11
  | 121 = 12
+
  | 12~ = 12
 
  | dec = 12
 
  | dec = 12
 
  | #default = 0
 
  | #default = 0
}}}}{{#ifexpr: {{#var: month}} = {{#if:{{CURRENTMONTH1}} <> 12|{{#expr: {{CURRENTMONTH1}}-1}}|12 }}|{{#if: {{PAGENAME}} <> Rares|
+
}}}}{{#ifexpr: {{#var: month}} = {{#ifexpr: {{CURRENTMONTH1}} <> 1|{{#expr: {{CURRENTMONTH1}} - 1}}|12}}|
{{#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;max-width: 18em;">{{#if: {{#var: imagename}} |[[{{#var: imagename}}]]}}<br>[[{{{%PAGE%}}}|{{{name}}}&nbsp;{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 | {{{craftText}}} by {{{crafter}}}''}}{{#ifeq: {{Boolean|{{{engraving|}}} }} | 1 | {{{engraving}}} }}]]</div> }} }}</includeonly>
+
{{#if: {{PAGENAME}} <> Rares|<div style="display:inline-block;text-align: center;padding:2em;max-width: 18em;">{{UOImage|{{{graphic|}}}|{{{hue|}}}|{{{image|}}}|{{%PAGE%}}}}{{#if: {{#var: imagename}} |[[{{#var: imagename}}|link={{{%PAGE%}}}]]}}<br>{{#vardefine: craftinfo|{{CrafterInfo|{{{crafter|}}}|{{{craftText|}}} }} }}[[{{{%PAGE%}}}|{{{name}}}&nbsp;{{#var: craftinfo}}{{{engraving|}}}]]<br><span style="color:#555;">( Count: {{{quantity|?}}} )</span></div> }} }}</includeonly>

Latest revision as of 14:12, 12 November 2019