Difference between revisions of "Template:RareItem.dpl2detailed"

Line 25: Line 25:
 
}}
 
}}
 
}}
 
}}
{{#ifeq: {{Boolean|{{{ {{#var:shard}}|}}} }} | 1 | {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[Category:UO:{{#var:shardname}} Rares]][[UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}}
+
{{#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]]|}}
 
{{!!}}
 
{{!!}}
 
{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}
 
{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}
 
{{#vardefine: month | {{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }} | 1~1 | jan = January | 2~2 | feb = February | 3~3 | mar = March | 4~4 | apr = April | 5~5 | may = May | 6~6 | jun = June | 7~7 | jul = July | 8~8 | aug = August | 9~9 | sep | sept = September | 10~ | oct = October | 11~ | nov = November | 12~ | dec = December | #default = }} }}{{#var: month}}{{#if: {{{day|}}} |&nbsp;{{{day}}}, |}}
 
{{#vardefine: month | {{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }} | 1~1 | jan = January | 2~2 | feb = February | 3~3 | mar = March | 4~4 | apr = April | 5~5 | may = May | 6~6 | jun = June | 7~7 | jul = July | 8~8 | aug = August | 9~9 | sep | sept = September | 10~ | oct = October | 11~ | nov = November | 12~ | dec = December | #default = }} }}{{#var: month}}{{#if: {{{day|}}} |&nbsp;{{{day}}}, |}}
{{#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]]}} }}
 
{{#if: {{{year_end|}}} | &#8211;}}
 
{{#if: {{{year_end|}}} | &#8211;}}
 
{{!!}}
 
{{!!}}
 
{{#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 21:31, 9 January 2022