Difference between revisions of "Template:RareItem.dpl2detailed"

Line 7: Line 7:
 
--> {{#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]]}}
 
{{!!}}<!--
 
{{!!}}<!--
--> {{#arraydefine: shards| Arirang,Asuka,Atlantic,Baja,Balhae,Catskills,Chesapeake,Drachenfels,Europa,Formosa,GL,Hokuto,Izumo,LA,LS,Legends,Mizuho,Mugen,Napa,Oceania,Origin,Pacific,Sakura,SP,Sonoma,Wakoku,Yamato,NL,Test,Abyss,Baekdu,Farmageddon,Retribution,SantaSlay,ShardOfScreams,ShardOfTheDead,ShardOfTheDead2,Winterland}}<!--
+
-->{{#arraydefine: shards| Arirang,Asuka,Atlantic,Baja,Balhae,Catskills,Chesapeake,Drachenfels,Europa,Formosa,GL,Hokuto,Izumo,LA,LS,Legends,Mizuho,Mugen,Napa,Oceania,Origin,Pacific,Sakura,SP,Sonoma,Wakoku,Yamato,NL,Test,Abyss,Baekdu,Farmageddon,Retribution,SantaSlay,ShardOfScreams,ShardOfTheDead,ShardOfTheDead2,Winterland}}<!--
--> {{#arraydefine: shardTypes| a,j,w,w,a,w,w,w,w,a,w,j,j,w,w,w,j,jh,w,a,w,w,j,wh,w,j,j,,,,,,,,,,,}}
+
-->{{#arraydefine: shardTypes| a,j,w,w,a,w,w,w,w,a,w,j,j,w,w,w,j,jh,w,a,w,w,j,wh,w,j,j,,,,,,,,,,,}}<!--
{{#vardefine: n|0}}{{#vardefine: allwestern|{{Boolean|1}}}}{{#vardefine: alljapan|{{Boolean|1}}}}{{#vardefine: allasia|{{Boolean|1}}}}
+
-->{{#vardefine: n|0}}{{#vardefine: allwestern|1}}{{#vardefine: alljapan|1}}{{#vardefine: allasia|1}}<!--
{{#loop: i | 0 | {{#arraysize: shards}} |
+
-->{{#loop: i | 0 | {{#arraysize: shards}} |
 
{{#vardefine: exist|{{Boolean|{{{ {{#arrayindex:shards|{{#var:i}}}}|}}} }} }}
 
{{#vardefine: exist|{{Boolean|{{{ {{#arrayindex:shards|{{#var:i}}}}|}}} }} }}
 
{{#switch: {{#arrayindex: shardTypes|{{#var:i}}}}
 
{{#switch: {{#arrayindex: shardTypes|{{#var:i}}}}
|j|jh = {{#ifexpr: {{#var:exist}}||{{#vardefine: alljapan|{{Boolean|0}}}}{{#vardefine: allasia|{{Boolean|0}}}} }}
+
|j|jh = {{#ifexpr: {{#var:exist}}||{{#vardefine: alljapan|0}}{{#vardefine: allasia|0}} }}
|w|wh = {{#ifexpr: {{#var:exist}}||{{#vardefine: allwestern|{{Boolean|0}}}} }}
+
|w|wh = {{#ifexpr: {{#var:exist}}||{{#vardefine: allwestern|0}} }}
|a = {{#ifexpr: {{#var:exist}}||{{#vardefine: allasia|{{Boolean|0}}}} }}
+
|a = {{#ifexpr: {{#var:exist}}||{{#vardefine: allasia|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/>|}} }}
Line 26: Line 26:
 
{{#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|0}}| }}
|w|wh = {{#ifexpr: {{#var:allwestern}}|{{Boolean|0}}|}}
+
|w|wh = {{#ifexpr: {{#var:allwestern}}| {{#vardefine: exist|0}}| }}
|a = {{#ifexpr: {{#var:allasia}}|{{Boolean|0}}|}}
+
|a = {{#ifexpr: {{#var:allasia}}| {{#vardefine: exist|0}}| }}
 
}}
 
}}
 
{{#vardefine: shardname |
 
{{#vardefine: shardname |

Revision as of 23:30, 9 January 2022


||unknown

|| || unknown }}