Difference between revisions of "Template:RareItem.dpl2detailed"

Line 48: Line 48:
 
-->{{#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]]|}}
+
{{#ifexpr: {{#var:n}} = 0 or {{#var:allwestern}} or {{#var:allasia}} or {{#var:alljapan}}|[[Category:UO:Rares from unknown shards]][[UO:Rares from unknown shards|unknown]]|}}
 
{{!!}}{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}
 
{{!!}}{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}
 
{{#if:{{{season|}}} | {{#vardefine: year |20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }} [[Category:UO:Rares From {{#var: year}}]]&nbsp;[[UO:Rares From {{#var: year}}|{{#var: year}}]]|{{#if:{{{year|}}}| [[:Category:UO:Rares From {{{year}}}]]&nbsp;[[UO:Rares From {{{year}}}|{{{year}}}]]|[[Category:UO:Rares with unknown year]][[UO:Rares with unknown year|unknown]]}} }}
 
{{#if:{{{season|}}} | {{#vardefine: year |20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }} [[Category:UO:Rares From {{#var: year}}]]&nbsp;[[UO:Rares From {{#var: year}}|{{#var: year}}]]|{{#if:{{{year|}}}| [[:Category:UO:Rares From {{{year}}}]]&nbsp;[[UO:Rares From {{{year}}}|{{{year}}}]]|[[Category:UO:Rares with unknown year]][[UO:Rares with unknown year|unknown]]}} }}

Revision as of 23:34, 9 January 2022