Difference between revisions of "Template:RareItem.dpl2detailed"

 
Line 22: Line 22:
 
}}
 
}}
 
}}<!--
 
}}<!--
-->{{#ifexpr: {{#var:all_western}} and {{#var:all_asia}}
+
-->{{#ifexpr: {{#var:all_asia}} and {{#var:all_western}}
|{{#ifexpr: {{#var:wohc_japan}} or {{#var:wohc_western}}|All Shards (w/o {{#ifexpr:{{#var:wohc_japan}}|Mugen|}}{{#ifexpr:{{#var:wohc_western}}|SP|}})|All Shards}}<br/>
+
| {{#switch: {{#var:wohc_japan|0}}{{#var:wohc_western|0}}
|{{#ifexpr: {{#var:all_asia}}|All Asia Shards<br/>|{{#ifexpr: {{#var:all_japan}}|All Japanese Shards{{#ifexpr:{{#var:wohc_japan}}|&nbsp;(w/o Mugen)|}}<br/>|}}{{#ifexpr: {{#var:all_asia}}|All Western Shards{{#ifexpr:{{#var:wohc_western}}|&nbsp;(w/o SP)|}}<br/>|}} }}
+
| 11 = All Non-Hardcore Shards
 +
| 10 = All Shards (w/o Mugen)
 +
| 01 = All Shards (w/o SP)
 +
| #default = All Shards
 +
}}<br/>
 +
|{{#ifexpr: {{#var:all_asia}} or {{#var:all_japan}}
 +
|All {{#ifexpr: {{#var:all_asia}}|Asia|Japanese}} Shards{{#ifexpr:{{#var:wohc_japan}}|&nbsp;(w/o Mugen)|}}<br/>|
 +
}}
 +
{{#ifexpr: {{#var:all_western}}|All Western Shards{{#ifexpr:{{#var:wohc_western}}|&nbsp;(w/o SP)|}}<br/>|}}
 
}}<!--
 
}}<!--
 
-->{{#loop: i | 0 | {{#arraysize: shards}} |
 
-->{{#loop: i | 0 | {{#arraysize: shards}} |
Line 57: Line 65:
 
-->{{#if: {{{year|}}} | {{{year}}}
 
-->{{#if: {{{year|}}} | {{{year}}}
 
| {{#if: {{{season|}}}
 
| {{#if: {{{season|}}}
| {{#vardefine: year|20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }}{{#var:year}}
+
| {{#vardefine: year|20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }}{{#var:year}} |unknown}}
| [[UO:Rares with unknown year|unknown]]
 
}}
 
 
}}<!--
 
}}<!--
 
-->{{#if: {{{year_end|}}} | &#8211;}}
 
-->{{#if: {{{year_end|}}} | &#8211;}}
Line 65: Line 71:
 
--> {{#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}}
+
--> {{#if: {{{quantity|}}} | {{#replace: {{{quantity}}}|*|&lowast;}}|?}}
 
}}
 
}}

Latest revision as of 21:43, 10 January 2022