Difference between revisions of "Template:RareItem.dpl2detailed"

 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:
+
{{#if: {{{name|}}}|{{#vardefine: craftinfo|{{CrafterInfo|{{{crafter|}}}|{{{craftText|}}} }} }}
    {{{name|}}}|{{#vardefine: craftinfo|{{CrafterInfo|{{{crafter|}}}|{{{craftText|}}} }} }}
+
{{UOImage|{{{graphic|}}}|{{{hue|}}}|{{{image|}}}|{{{%PAGE%}}} }}
    {{UOImage|{{{graphic|}}}|{{{hue|}}}|{{{image|}}}|{{{%PAGE%}}} }}
+
{{!!}}[[{{{%PAGE%}}}|{{{name}}} {{#var: craftinfo}}{{{engraving|}}}]]
    {{!!}}[[{{{%PAGE%}}}|{{{name}}} {{#var: craftinfo}}{{{engraving|}}}]]
+
{{!!}}{{#if: {{{graphic|}}} |[[:Category:UO:Items_using_graphic_{{{graphic}}}|{{{graphic}}}]]|unknown}}
    {{!!}}{{#if: {{{graphic|}}} |[[:Category:UO:Items_using_graphic_{{{graphic}}}|{{{graphic}}}]]|unknown}}
+
{{!!}}{{#if: {{{hue|}}} |[[:Category:UO:Items_using_hue_{{{hue}}}|{{{hue}}}]]|unknown}}
    {{!!}}{{#if: {{{hue|}}} |[[:Category:UO:Items_using_hue_{{{hue}}}|{{{hue}}}]]|unknown}}
+
{{!!}}<!--
    {{!!}}{{#if: {{{type|}}} |{{#arraydefine:types|{{{type}}} }}{{#arraysort:types|asc}}{{#arrayprint:types |,&nbsp; |@@@@ | {{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}{{#if: {{{crafter|}}}|-crafted|}} Item}}[[:Category:UO:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[:Category:Items of unknown origin|unknown]]}}
+
--> {{#if: {{{type|}}} | {{#arraydefine: types | {{{type}}} }}{{#arraysort: types|asc}}{{#arrayprint:types |,&nbsp; |@@@@ | {{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}{{#if: {{{crafter|}}}|-crafted|}} Item}}[[:Category:UO:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[UO:Items of unknown origin|unknown]]}}
    {{!!}}test
+
{{!!}}<!--
    {{!!}}{{#if: {{{year_end|}}} |s}} || {{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }}
+
--> {{#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}}<!--
| 1~1
+
--> {{#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,,,,,,,,,,,}}<!--
| jan = January
+
--> {{#vardefine: n|0}}{{#vardefine: all_western|1}}{{#vardefine: all_japan|1}}{{#vardefine: all_asia|1}}{{#vardefine: wohc_western|0}}{{#vardefine: wohc_japan|0}}<!--
| 2~2
+
-->{{#loop: i | 0 | {{#arraysize: shards}} |
| feb = February
+
{{#vardefine: exist|{{Boolean|{{{ {{#arrayindex:shards|{{#var:i}}}}|}}} }} }}
| 3~3
+
{{#ifexpr: {{#var:exist}}| |
| mar = March
+
{{#switch: {{#arrayindex: shardTypes|{{#var:i}}}}
| 4~4
+
|j = {{#vardefine: all_japan|0}}{{#vardefine: all_asia|0}}
| apr = April
+
|jh= {{#vardefine: wohc_japan|1}}
| 5~5
+
|w = {{#vardefine: all_western|0}}
| may = May
+
|wh= {{#vardefine: wohc_western|1}}
| 6~6
+
|a = {{#vardefine: all_asia|0}}
| jun = June
+
}}
| 7~7
+
}}
| jul = July
+
}}<!--
| 8~8
+
-->{{#ifexpr: {{#var:all_asia}} and {{#var:all_western}}
| aug = August
+
| {{#switch: {{#var:wohc_japan|0}}{{#var:wohc_western|0}}
| 9~9
+
| 11 = All Non-Hardcore Shards
| sep
+
| 10 = All Shards (w/o Mugen)
| sept = September
+
| 01 = All Shards (w/o SP)
| 10~
+
| #default = All Shards
| oct = October
+
}}<br/>
| 11~
+
|{{#ifexpr: {{#var:all_asia}} or {{#var:all_japan}}
| nov = November
+
|All {{#ifexpr: {{#var:all_asia}}|Asia|Japanese}} Shards{{#ifexpr:{{#var:wohc_japan}}|&nbsp;(w/o Mugen)|}}<br/>|
| 12~
+
}}
| dec = December
+
{{#ifexpr: {{#var:all_western}}|All Western Shards{{#ifexpr:{{#var:wohc_western}}|&nbsp;(w/o SP)|}}<br/>|}}
| #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: {{{year_end|}}} | &#8211; {{#switch: {{lc:{{padleft:|3|{{{month_end|}}}~ }} }}
+
-->{{#loop: i | 0 | {{#arraysize: shards}} |
| 1~1
+
{{#vardefine: shard|{{#arrayindex: shards|{{#var:i}}}} }}<!--
| jan = January
+
--> {{#vardefine: exist|{{Boolean|{{{ {{#var:shard}}|}}} }} }}<!--
| 2~2  
+
--> {{#switch: {{#arrayindex: shardTypes|{{#var:i}}}}
| feb = February
+
|j|jh = {{#ifexpr: {{#var:all_japan}} or {{#var:all_asia}}| {{#vardefine: exist|0}}| }}
| 3~3  
+
|w|wh = {{#ifexpr: {{#var:all_western}}| {{#vardefine: exist|0}}| }}
| mar = March
+
|a = {{#ifexpr: {{#var:all_asia}}| {{#vardefine: exist|0}}| }}
| 4~4  
+
}}<!--
| apr = April
+
--> {{#vardefine: shardname |
| 5~5  
+
{{#switch: {{#var:shard}}
| may = May
+
| GL = Great Lakes
| 6~6  
+
| LA = Lake Austin
| jun = June
+
| LS = Lake Superior
| 7~7  
+
| Napa = Napa Valley
| jul = July
+
| SP = Siege Perilous
| 8~8  
+
| NL = New Legacy
| aug = August
+
| Test = Test Center
| 9~9  
+
| SantaSlay = Santa's Slay
| sep  
+
| ShardOfScreams = Shard Of Screams
| sept = September
+
| ShardOfTheDead = Shard Of The Dead
| 10~  
+
| ShardOfTheDead2 = Shard Of The Dead II
| oct = October
+
| #default = {{#var:shard}}
| 11~  
+
}}
| nov = November
+
}}<!--
| 12~  
+
-->{{#ifexpr: {{#var:exist}}| {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}{{#var:shardname}}<br/>|}}
| dec = December
+
}}<!--
| #default =  
+
-->{{#ifexpr: {{#var:n}} = 0 and {{#var:all_western}} = 0 and {{#var:all_asia}} = 0 and {{#var:all_japan}} = 0|unknown|}}
}}{{#if: {{{day_end|}}} |&nbsp;{{{day_end}}}, |}} {{#if:{{{year_end|}}}|&nbsp;{{{year_end}}} }}
+
{{!!}}<!--
}}
+
-->{{#arraydefine: seasons | {{{season|}}}|,}}{{#vardefine: firstseason | {{#arrayindex:seasons|0}} }}<!--
    {{!!}}{{#if: {{{quantity|}}} |{{#replace: {{{quantity}}}|*|&lowast;}}|unknown[[Category:UO:Rares of unknown quantity]]}}
+
-->{{#if: {{{year|}}} | {{{year}}}
 +
| {{#if: {{{season|}}}
 +
| {{#vardefine: year|20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }}{{#var:year}} |unknown}}
 +
}}<!--
 +
-->{{#if: {{{year_end|}}} | &#8211;}}
 +
{{!!}}<!--
 +
--> {{#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;}}|?}}
 
}}
 
}}

Latest revision as of 21:43, 10 January 2022