Difference between revisions of "Template:RareItem.dpl2detailed"

Line 8: Line 8:
 
     {{!!}}{{#if: {{{hue|}}} |[[:Category:UO:Items_using_hue_{{{hue}}}|{{{hue}}}]]|unknown}}
 
     {{!!}}{{#if: {{{hue|}}} |[[:Category:UO:Items_using_hue_{{{hue}}}|{{{hue}}}]]|unknown}}
 
     {{!!}}{{#if: {{{type|}}} |{{#arraydefine:types|{{{type}}} }}{{#arraysort:types|asc}}{{#arrayprint:types |,  |@@@@  | {{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}{{#if: {{{crafter|}}}|-crafted|}} Item}}[[:Category:UO:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[:Category:Items of unknown origin|unknown]]}}
 
     {{!!}}{{#if: {{{type|}}} |{{#arraydefine:types|{{{type}}} }}{{#arraysort:types|asc}}{{#arrayprint:types |,  |@@@@  | {{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}{{#if: {{{crafter|}}}|-crafted|}} Item}}[[:Category:UO:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[:Category:Items of unknown origin|unknown]]}}
     {{!!}}
+
     {{!!}}{{#vardefine: n | 0}}
 
+
{{#loop: i | 0 | {{#arraysize: shards}} | {{#vardefine: shard | {{#arrayindex: shards | {{#var:i}} }} }}
{{#vardefine: shardcount|0}}{{
+
{{#vardefine: shardname |
  #loop: i
+
{{#switch: {{#var:shard}}
  | 0
+
| GL = Great Lakes
  | 27
+
| LA = Lake Austin
  | {{#if: {{{ {{#arrayindex: shards | {{#var:i}} }} | }}} | {{#vardefine: shardcount | {{#expr: {{#var: shardcount}} + 1}} }} }}
+
| LS = Lake Superior
}}{{#ifexpr: {{#var: shardcount}} > 1 | s }} || {{#vardefine:n|0}}
+
| Napa = Napa Valley
{{
+
| SP = Siege Perilous
  #loop: i
+
| Test = Test Center
  | 0
+
| SantaSlay = Santa's Slay
  | {{#arraysize: shards}}
+
| ShardOfScreams = Shard Of Screams
  | {{#vardefine: shard | {{#arrayindex: shards | {{#var:i}} }} }} {{#vardefine: shardname|{{#switch: {{#var:shard}}
+
| ShardOfTheDead = Shard Of The Dead
| GL = Great Lakes
+
| ShardOfTheDead2 = Shard Of The Dead II
| LA = Lake Austin
+
| #default = {{#var:shard}}
| LS = Lake Superior
+
}}
| Napa = Napa Valley
+
}}
| SP = Siege Perilous
+
{{#ifeq: {{Boolean|{{{ {{#var:shard}}|}}} }} | 1 | {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[Category:UO:{{#var:shardname}} Rares]][[UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}}
| Test = Test Center
+
}}
|SantaSlay = Santa's Slay
 
|ShardOfScreams = Shard Of Screams
 
|ShardOfTheDead = Shard Of The Dead
 
|ShardOfTheDead2 = Shard Of The Dead II
 
| #default = {{#var:shard}}
 
}} }} {{#ifeq: {{Boolean|{{{ {{#var:shard}}|}}} }} | 1 | {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[Category:UO:{{#var:shardname}} Rares]][[UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}} }}
 
 
{{#ifeq:{{#var:n}}|0|[[Category:UO:Rares from unknown shards]][[UO:Rares from unknown shards|unknown]]|}}
 
{{#ifeq:{{#var:n}}|0|[[Category:UO:Rares from unknown shards]][[UO:Rares from unknown shards|unknown]]|}}
 
 
 
     {{!!}}{{{year|}}}{{{month|}}}{{{day|}}}
 
     {{!!}}{{{year|}}}{{{month|}}}{{{day|}}}
 
     {{!!}}{{#if: {{{quantity|}}} |{{#replace: {{{quantity}}}|*|&lowast;}}|unknown[[Category:UO:Rares of unknown quantity]]}}
 
     {{!!}}{{#if: {{{quantity|}}} |{{#replace: {{{quantity}}}|*|&lowast;}}|unknown[[Category:UO:Rares of unknown quantity]]}}
 
}}
 
}}

Revision as of 07:43, 2 October 2018