Difference between revisions of "Template:RareItem.dpl2detailed"
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
--> {{#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: all_western|1}}{{#vardefine: all_japan|1}}{{#vardefine: all_asia|1}}{{#vardefine: wohc_western|0}}{{#vardefine: wohc_japan | + | --> {{#vardefine: n|0}}{{#vardefine: all_western|1}}{{#vardefine: all_japan|1}}{{#vardefine: all_asia|1}}{{#vardefine: wohc_western|0}}{{#vardefine: wohc_japan|0}}<!-- |
-->{{#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}}}} | + | {{#ifexpr: {{#var:exist}}| | |
− | + | {{#switch: {{#arrayindex: shardTypes|{{#var:i}}}} | |
− | + | |j = {{#vardefine: all_japan|0}}{{#vardefine: all_asia|0}} | |
− | + | |jh= {{#vardefine: wohc_japan|1}} | |
− | + | |w = {{#vardefine: all_western|0}} | |
− | + | |wh= {{#vardefine: wohc_western|1}} | |
− | + | |a = {{#vardefine: all_asia|0}} | |
+ | }} | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
− | -->{{#ifexpr: {{#var: | + | -->{{#ifexpr: {{#var:all_asia}} and {{#var:all_western}} |
− | |{{# | + | | {{#switch: {{#var:wohc_japan|0}}{{#var:wohc_western|0}} |
− | |{{#ifexpr: {{#var:all_asia}}|All | + | | 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}}| (w/o Mugen)|}}<br/>| | ||
+ | }} | ||
+ | {{#ifexpr: {{#var:all_western}}|All Western Shards{{#ifexpr:{{#var:wohc_western}}| (w/o SP)|}}<br/>|}} | ||
}}<!-- | }}<!-- | ||
-->{{#loop: i | 0 | {{#arraysize: shards}} | | -->{{#loop: i | 0 | {{#arraysize: shards}} | | ||
Line 56: | 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}} |
− | |||
− | |||
}}<!-- | }}<!-- | ||
-->{{#if: {{{year_end|}}} | –}} | -->{{#if: {{{year_end|}}} | –}} | ||
Line 64: | 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|}}}| {{{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|}}}| {{{day}}}|}} | ||
{{!!}}<!-- | {{!!}}<!-- | ||
− | --> {{#if: {{{quantity|}}} | {{#replace: {{{quantity}}}|*|∗}}| | + | --> {{#if: {{{quantity|}}} | {{#replace: {{{quantity}}}|*|∗}}|?}} |
}} | }} |