Difference between revisions of "Template:RareItem.dpl2detailed"

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}}}}{{#var:shardname}}<br/>|}}
 
}}<!--
 
}}<!--
-->{{#ifexpr: {{#var:n}} = 0 and {{#var:allwestern}} = 0 and {{#var:allasia}} = 0 and {{#var:alljapan}} = 0|[[:UO:Rares from unknown shards|unknown]]|}}
+
-->{{#ifexpr: {{#var:n}} = 0 and {{#var:allwestern}} = 0 and {{#var:allasia}} = 0 and {{#var:alljapan}} = 0|[[UO:Rares from unknown shards|unknown]]|}}
 
{{!!}}<!--
 
{{!!}}<!--
 
-->{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}<!--
 
-->{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}<!--
-->{{#if: {{{year|}}}
+
-->{{#if: {{{year|}}} | {{{year}}}
| [[:UO:Rares From {{{year}}}|{{{year}}}]]
 
 
| {{#if: {{{season|}}}
 
| {{#if: {{{season|}}}
| {{#vardefine: year |20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }}[[:UO:Rares From {{#var:year}}|{{#var:year}}]]
+
| {{#vardefine: year|20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }}{{#var:year}}
 
| [[UO:Rares with unknown year|unknown]]
 
| [[UO:Rares with unknown year|unknown]]
 
}}
 
}}
Line 62: Line 61:
 
--> {{#vardefine: month | {{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }} | 1~1 | jan = Jan | 2~2 | feb = Feb | 3~3 | mar = Mar | 4~4 | apr = Apr | 5~5 | may = May | 6~6 | jun = Jun | 7~7 | jul = Jul | 8~8 | aug = Aug | 9~9 | sep | sept = Sep | 10~ | oct = Oct | 11~ | nov = Nov | 12~ | dec = Dec | #default = }} }}{{#var: month}}{{#if: {{{day|}}}|&nbsp;{{{day}}}|}}
 
--> {{#vardefine: month | {{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }} | 1~1 | jan = Jan | 2~2 | feb = Feb | 3~3 | mar = Mar | 4~4 | apr = Apr | 5~5 | may = May | 6~6 | jun = Jun | 7~7 | jul = Jul | 8~8 | aug = Aug | 9~9 | sep | sept = Sep | 10~ | oct = Oct | 11~ | nov = Nov | 12~ | dec = Dec | #default = }} }}{{#var: month}}{{#if: {{{day|}}}|&nbsp;{{{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:11, 10 January 2022