Difference between revisions of "Template:RareItem.dpl2detailed"

Line 17: Line 17:
 
|a = {{#ifexpr: {{#var:exist}}||{{#vardefine: allasia|{{Boolean|0}}}} }}
 
|a = {{#ifexpr: {{#var:exist}}||{{#vardefine: allasia|{{Boolean|0}}}} }}
 
}}
 
}}
}}<!--
+
}}
--> {{#ifexpr: {{#var:allwestern}} and {{#var:allasia}}
+
{{#ifexpr: {{#var:allwestern}} and {{#var:allasia}}
 
|All Shards<br/>
 
|All Shards<br/>
 
|{{#ifexpr: {{#var:allasia}}|All Asia Shards<br/>|{{#ifexpr: {{#var:alljapan}}|All Japanese Shards<br/>|}}{{#ifexpr: {{#var:allasia}}|All Western Shards<br/>|}} }}
 
|{{#ifexpr: {{#var:allasia}}|All Asia Shards<br/>|{{#ifexpr: {{#var:alljapan}}|All Japanese Shards<br/>|}}{{#ifexpr: {{#var:allasia}}|All Western Shards<br/>|}} }}
}}<!--
+
}}
--> {{#loop: i | 0 | {{#arraysize: shards}} |
+
{{#loop: i | 0 | {{#arraysize: shards}} |
{{#vardefine: shard|{{#arrayindex: shards|{{#var:i}}}} }}<!--
+
{{#vardefine: shard|{{#arrayindex: shards|{{#var:i}}}} }}
--> {{#vardefine: exist|{{Boolean|{{{ {{#var:shard}}|}}} }} }}<!--
+
{{#vardefine: exist|{{Boolean|{{{ {{#var:shard}}|}}} }} }}
--> {{#switch: {{#arrayindex: shardTypes|{{#var:i}}}}
+
{{#switch: {{#arrayindex: shardTypes|{{#var:i}}}}
 
|j|jh = {{#ifexpr: {{#var:alljapan}} or {{#var:allasia}}|{{#vardefine: exist|{{Boolean|0}}}}|}}
 
|j|jh = {{#ifexpr: {{#var:alljapan}} or {{#var:allasia}}|{{#vardefine: exist|{{Boolean|0}}}}|}}
 
|w|wh = {{#ifexpr: {{#var:allwestern}}|{{Boolean|0}}|}}
 
|w|wh = {{#ifexpr: {{#var:allwestern}}|{{Boolean|0}}|}}
 
|a = {{#ifexpr: {{#var:allasia}}|{{Boolean|0}}|}}
 
|a = {{#ifexpr: {{#var:allasia}}|{{Boolean|0}}|}}
}}<!--
+
}}
--> {{#vardefine: shardname |
+
{{#vardefine: shardname |
 
{{#switch: {{#var:shard}}
 
{{#switch: {{#var:shard}}
 
| GL = Great Lakes
 
| GL = Great Lakes
Line 46: Line 46:
 
}}
 
}}
 
}}<!--
 
}}<!--
--> {{#ifexpr: {{#var:exist}}| {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/>|}}
+
-->{{#ifexpr: {{#var:exist}}| {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[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]]|}}

Revision as of 23:22, 9 January 2022