Difference between revisions of "Template:InfoBox UORareItem"

m
m
 
(179 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#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, Test, Wakoku,Yamato,Abyss,Baekdu,Farmageddon,Retribution,SantaSlay,ShardOfScreams,ShardOfTheDead,ShardOfTheDead2,Winterland}}{{#vardefine: yearExists | {{#if: {{{year|}}} | {{Isnumeric|{{{year|}}} |boolean=true}} | 0 }} }}{{#vardefine: yearHasSeason | {{#if: {{Isnumeric|{{{year|}}} }} | {{#expr: {{{year|2002}}} > 2001 }} | 0}} }}{{#arraydefine: graphicLists |animated,container,runebook,spellbook,translucent,wieldable,wearable}}
+
<includeonly>{{#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, Test, Wakoku,Yamato,Abyss,Baekdu,Farmageddon,Retribution,SantaSlay,ShardOfScreams,ShardOfTheDead,ShardOfTheDead2,Winterland}}{{#vardefine: yearExists | {{#if: {{{year|}}} | {{Isnumeric|{{{year|}}} |boolean=true}} | 0 }} }}{{#vardefine: yearHasSeason | {{#if: {{Isnumeric|{{{year|}}} }} | {{#expr: {{{year|2002}}} > 2001 }} | 0}} }}{{#arraydefine: graphicLists |animated,container,height,runebook,spellbook,stackable,translucent,wearable,wieldable}}{{#ifeq:{{{quantity|}}}|?|[[Category:Pages with faulty unknown parameters]]}}{{#ifeq:{{{shard|}}}|?|[[Category:Pages with faulty unknown parameters]]}}{{#ifeq:{{{year|}}}|?|[[Category:Pages with faulty unknown parameters]]}}{{#ifeq:{{{season|}}}|?|[[Category:Pages with faulty unknown parameters]]}}{{#if: {{{season|}}} | {{#if: {{{year|}}} |  | [[Category:Pages with season but not year]] }} | }}
{{
+
{{#loop: i
  #loop: i
 
 
   | 0
 
   | 0
 
   | {{#arraysize: graphicLists}}
 
   | {{#arraysize: graphicLists}}
   | <nowiki/>
+
   | {{#vardefine: list | {{#arrayindex:graphicLists | {{#var:i}} }} }}
{{#vardefine: list | {{#arrayindex:graphicLists | {{#var:i}} }} }}
 
 
{{#arraydefine:graphic_is_{{#var:list}}|{{UOGraphicList_{{#var:list}}}}}}
 
{{#arraydefine:graphic_is_{{#var:list}}|{{UOGraphicList_{{#var:list}}}}}}
{{#vardefine: {{#var:list}} | {{#if: {{{ {{#var:list}} |}}} | {{{ {{#var:list}} }}} | {{#if: {{{graphic|}}} | {{#arraysearch:graphic_is_{{#var:list}}|{{{graphic}}}|0|yes|no}} }} }} }}
+
{{#vardefine: {{#var:list}} | {{#if: {{{ {{#var:list}} |}}} | {{{ {{#var:list}} }}} | {{#if: {{{graphic|}}} | {{#ifeq:{{#explode:{{#arrayindex:graphic_is_{{#var:list}}|{{#arraysearch:graphic_is_{{#var:list}}|/{{{graphic}}};\w?/|0}}|-1}}|;|0}}|{{{graphic}}}|yes|no}} }} }} }}
}}
+
}}{{#arraydefine:seasons|{{{season|}}}|,}}{{#vardefine:firstseason|{{#arrayindex:seasons|0}} }}{{#vardefine:seasonText|{{#loop: i
 +
  | 0
 +
  | {{#arraysize:seasons}}
 +
  | {{#ifexpr: {{#var:i}} > 0|, }}{{#vardefine: season|{{#arrayindex:seasons|{{#var:i}} }} }}[[Category:UO:Season {{#var:season}} Rares]][[UO:Season {{#var:season}} Rares|{{#var:season}}]]
 +
}} }}
 
{| class=infobox  
 
{| class=infobox  
 
|class=titlecell colspan="2"| Rare Item
 
|class=titlecell colspan="2"| Rare Item
 
|-
 
|-
| Type   || {{#if:{{{type|}}}|{{#arraydefine:types|{{{type}}} }}{{#arraysort:types|asc}}{{#arrayprint:types |,&nbsp; |@@@@  | {{#vardefine: itemtype |@@@@{{#ifeq: {{Boolean|{{{crafted}}} }} | true |-crafted|}} Item}}[[Category:{{#var:itemtype}}s]][[:Category:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[Category:Items of unknown origin]][[:Category:Items of unknown origin|unknown]]}}
+
| Type || {{#if:{{{type|}}}|<noinclude>
{{#ifeq: {{Boolean|{{{crafted}}} }} | true |{{!}}-
+
    </noinclude>{{#ifeq:{{{type|}}}|unknown|<noinclude>
{{!}} Crafter Name {{!!}} {{{crafter}}}|}}{{#ifexpr: {{#expr: {{#var: yearExists}} and {{#var: yearHasSeason}} }} or  {{#expr: {{#var: yearExists}} = 0}} |
+
        </noinclude>[[Category:UO:Items of unknown origin]][[:Category:UO:Items of unknown origin|unknown]]|<noinclude>
 +
        </noinclude>{{#arraydefine:types|{{{type}}} }}<noinclude>
 +
        </noinclude>{{#arraysort:types|asc}}<noinclude>
 +
        </noinclude>{{#arrayprint:types |,&nbsp; |@@@@  | <noinclude>
 +
            </noinclude>{{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}}}<noinclude>
 +
            </noinclude>[[Category:UO:{{#var:itemtype}} Items]]<noinclude>
 +
            </noinclude>[[Category:UO:{{#var:itemtype}}{{#if: {{{crafter|}}}|-crafted}} Items]]<noinclude>
 +
            </noinclude>[[:Category:UO:{{#var:itemtype}} Items|{{#var:itemtype}}{{#if: {{{crafter|}}}|-crafted}} Item]]<noinclude>
 +
            </noinclude>{{#ifeq: {{#var:itemtype}}|EM|{{#vardefine:notspawning|true}} }}<noinclude>
 +
            </noinclude>{{#if: {{#pos:{{#var:itemtype}}|Birth}}|{{#vardefine:noseason|true}}|{{#if: {{#pos:{{#var:itemtype}}|Advanced Character Program}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Beta}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Bug}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Christmas}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Cleanup Britannia}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Cornucopia}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Daily}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Exploit}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Faction}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Gift}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Halloween}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Hourly}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Khaldun}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Khaldun Birth}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Loot}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Magic Moments}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Monthly}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|New Player}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|NPC Vendor}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Original Necromancy}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Plague Of Despair}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Prepatch}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Quest}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|SA Birth}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Seer}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Server Birth}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Sigil}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Stacking Bug}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Store}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Stratics}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|T2A Birth}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Trammel Birth}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Trick Or Treat}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Trinsic Invasion}}|{{#vardefine:noseason|true}} }}{{#if: {{#pos:{{#var:itemtype}}|Weekly}}|{{#vardefine:noseason|true}} }}<noinclude>
 +
        </noinclude>}}<noinclude>
 +
    </noinclude>}}<noinclude>
 +
</noinclude>}}
 +
{{#if: {{{crafter}}}|  
 
{{!}}-
 
{{!}}-
{{!}} Season  {{!!}} {{#if:{{{season|}}}| [[Category:UO:Season {{{season}}} Rares]][[:Category:UO:Season {{{season}}} Rares|{{{season}}}]]|unknown[[Category:UO:Rares with unknown season]]}} |}}  
+
{{!}} Crafter Name {{!!}} {{{crafter|}}}
 +
|}}
 
|-
 
|-
| Date{{#if: {{{year_end|}}} |s}} || {{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }}
+
| Date{{#if: {{{year_end|}}} |s}} || {{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }}
| 111 = January
+
| 1~1
 
  | jan = January
 
  | jan = January
  | 222 = February
+
  | 2~2
 
  | feb = February
 
  | feb = February
  | 333 = March
+
  | 3~3
 
  | mar = March
 
  | mar = March
  | 444 = April
+
  | 4~4
 
  | apr = April
 
  | apr = April
  | 555 = May
+
  | 5~5
 
  | may = May
 
  | may = May
  | 666 = June
+
  | 6~6
 
  | jun = June
 
  | jun = June
  | 777 = July
+
  | 7~7
 
  | jul = July
 
  | jul = July
  | 888 = August
+
  | 8~8
 
  | aug = August
 
  | aug = August
  | 999 = September
+
  | 9~9
  | sep = September
+
  | sep  
 
  | sept = September
 
  | sept = September
  | 101 = October
+
  | 10~
 
  | oct = October
 
  | oct = October
  | 111 = November
+
  | 11~
 
  | nov = November
 
  | nov = November
  | 121 = December
+
  | 12~
 
  | dec = December
 
  | dec = December
  | #default = {{{month|}}}
+
  | #default =  
}}{{#if: {{{day|}}} |&nbsp;{{{day}}}, |}} {{#if:{{{season|}}}|20{{padleft:{{#expr: 2+{{{season}}} }}|2}}|{{#if:{{{year|}}}|{{{year}}}|unknown}} }} {{#if: {{{year_end|}}} | &#8211; {{#switch: {{lc:{{padleft:|3|{{{month_end|}}} }} }}
+
}}}}{{#var: month}}&nbsp;{{#if: {{{day|}}} |{{{day}}},&nbsp; |}} {{#if:{{{season|}}}|{{#vardefine: year |20{{padleft:{{#expr: 2+{{#var:firstseason}} }}|2}} }} [[Category:UO:Rares From {{#var: year}}]][[UO:Rares From {{#var: year}}|{{#var: year}}]]|{{#if:{{{year|}}}| [[Category:UO:Rares From {{{year}}}]][[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|}}}~ }} }}
| 111 = January
+
| 1~1
 
  | jan = January
 
  | jan = January
  | 222 = February
+
  | 2~2
 
  | feb = February
 
  | feb = February
  | 333 = March
+
  | 3~3
 
  | mar = March
 
  | mar = March
  | 444 = April
+
  | 4~4
 
  | apr = April
 
  | apr = April
  | 555 = May
+
  | 5~5
 
  | may = May
 
  | may = May
  | 666 = June
+
  | 6~6
 
  | jun = June
 
  | jun = June
  | 777 = July
+
  | 7~7
 
  | jul = July
 
  | jul = July
  | 888 = August
+
  | 8~8
 
  | aug = August
 
  | aug = August
  | 999 = September
+
  | 9~9
  | sep = September
+
  | sep  
 
  | sept = September
 
  | sept = September
  | 101 = October
+
  | 10~
 
  | oct = October
 
  | oct = October
  | 111 = November
+
  | 11~
 
  | nov = November
 
  | nov = November
  | 121 = December
+
  | 12~
 
  | dec = December
 
  | dec = December
  | #default = {{{month_end|}}}
+
  | #default =  
}}{{#if: {{{day_end|}}} |&nbsp;{{{day_end}}}, |}} {{#if:{{{year_end|}}}|{{{year_end}}} }}
+
}}{{#if: {{{day_end|}}} |&nbsp;{{{day_end}}}, |}} {{#if:{{{year_end|}}}|&nbsp;{{{year_end}}} }}
 
}}
 
}}
 +
{{#ifexpr: {{#expr: {{#var: yearExists}} and {{#var: yearHasSeason}} }} or  {{#expr: {{#var: yearExists}} = 0}} |{{#ifeq: {{Boolean|{{{noseason|}}} }}|0|{{#ifeq: {{#var:noseason}}|true||
 +
{{!}}-
 +
{{!}} Season  {{!!}} {{#if:{{{season|}}}| {{#var:seasonText}}|[[Category:UO:Rares with unknown season]][[UO:Rares with unknown season|unknown]]}} }} }} }}
 
|-
 
|-
 
| Shard{{#vardefine: shardcount | 0}}{{
 
| Shard{{#vardefine: shardcount | 0}}{{
Line 97: Line 116:
 
  |ShardOfTheDead2 = Shard Of The Dead II
 
  |ShardOfTheDead2 = Shard Of The Dead II
 
  | #default = {{#var:shard}}
 
  | #default = {{#var:shard}}
}} }} {{#ifeq:  {{Boolean|{{{ {{#var:shard}}|}}} }} | 1 | {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[Category:UO:{{#var:shardname}} Rares]][[:Category:UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}} }}{{#ifeq:{{#var:n}}|0|unknown[[Category:UO:Rares from unknown shards]]|}}
+
}} }} {{#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]]|}}
 
|-
 
|-
| Quantity || {{#if:{{{quantity|}}}|{{{quantity}}}|unknown[[Category:UO:Rares of unknown quantity]]}}
+
| Quantity || {{#if:{{{quantity|}}}|{{#replace: {{{quantity}}}|*|&lowast;}}|unknown[[Category:UO:Rares of unknown quantity]]}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Currently Spawning
 
| field = Currently Spawning
| param = {{{spawning|}}}
+
| category = Spawning Rares
 +
| param = {{{spawning|{{#var: notspawning}}}}}
 
| unknownCat = Rares with unknown spawning status
 
| unknownCat = Rares with unknown spawning status
 
}}
 
}}
Line 114: Line 134:
 
| Graphic  || {{#if:{{{graphic|}}}|[[Category:UO:Items using graphic {{{graphic}}}]][[:Category:UO:Items using graphic {{{graphic}}}|{{{graphic}}}]]|[[Category:UO:Rares with unknown graphic]][[:Category:UO:Rares with unknown graphic|unknown]]}}
 
| Graphic  || {{#if:{{{graphic|}}}|[[Category:UO:Items using graphic {{{graphic}}}]][[:Category:UO:Items using graphic {{{graphic}}}|{{{graphic}}}]]|[[Category:UO:Rares with unknown graphic]][[:Category:UO:Rares with unknown graphic|unknown]]}}
 
|-
 
|-
| Hue  || {{#if:{{{hue|}}}|[[Category:UO:Items using hue {{{hue}}}]][[:Category:UO:Items using hue {{{hue}}}|{{{hue}}}]]|[[Category:UO:Rares with unknown hue]][[:Category:UO:Rares with unknown hue|unknown]]}}
+
| Hue  || {{#if:{{{hue|}}}|[[Category:UO:Items using hue {{{hue}}}]][[UO:Hue_{{{hue}}}|{{{hue}}}]]|[[Category:UO:Rares with unknown hue]][[:Category:UO:Rares with unknown hue|unknown]]}}
 +
|-
 +
| Height  || {{#if:{{{graphic|}}}|{{#ifeq: {{#var: height}} |no| 0 | {{#arraydefine: heightInfo | {{#arrayindex: graphic_is_height | {{#arraysearch: graphic_is_height |/{{{graphic}}};\d+/|0}} }} |;}}{{#arrayindex: heightInfo | 1 }} }}|unknown}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Dyable
 
| field = Dyable
 +
| category = Dyable Rares
 
| param = {{{dyable|}}}
 
| param = {{{dyable|}}}
 
| unknownCat = Rares with unknown dye capability
 
| unknownCat = Rares with unknown dye capability
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
| field = Eatable
+
| field = Edible
 +
| category = Edible Rares
 
| param = {{{eatable|}}}
 
| param = {{{eatable|}}}
| unknownCat = Rares with unknown eatable capability
+
| unknownCat = Rares with unknown edibleness
 +
}}
 +
{{BoolInfoLine
 +
| field = Stackable
 +
| category = Stackable Rares
 +
| param = {{#var: stackable}}
 +
| unknownCat = Rares with unknown stacking capability
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Turnable
 
| field = Turnable
 +
| category = Turnable Rares
 
| param = {{{turnable|}}}
 
| param = {{{turnable|}}}
 
| unknownCat = Rares with unknown turning capability
 
| unknownCat = Rares with unknown turning capability
 
}}
 
}}
 
{{#var: wearable}}
 
 
[[{{#arraydefine: gearInfo | {{#arrayindex: wearable | {{#arraysearch: wearable |/{{{graphic}}};\w/|0}} }} |;}}{{#arrayindex: gearInfo | 1 }} slot]]
 
 
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Wearable
 
| field = Wearable
 +
| category = Wearable Rares
 
| param = {{#var: wearable}}
 
| param = {{#var: wearable}}
| displayText = [[{{#arraydefine: gearInfo | {{#arrayindex: wearable | {{#arraysearch: wearable |/{{{graphic}}};\w/|0}} }} |;}}{{#arrayindex: gearInfo | 1 }} slot]]
+
| displayText = [[{{ucfirst: {{#arraydefine: gearInfo | {{#arrayindex: graphic_is_wearable | {{#arraysearch: graphic_is_wearable |/{{{graphic}}};\w/|0}} }} |;}}{{#arrayindex: gearInfo | 1 }} }} slot]]
 
| unknownCat = Rares with unknown wearable capability
 
| unknownCat = Rares with unknown wearable capability
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Wieldable
 
| field = Wieldable
 +
| category = Wieldable Rares
 
| param = {{#var: wieldable}}
 
| param = {{#var: wieldable}}
| displayText = [[{{#arraydefine: gearInfo | {{#arrayindex: wieldable | {{#arraysearch: wieldable |/{{{graphic}}};\w/|0}} }} |;}}{{#arrayindex: gearInfo | 1 }}-handed weapon]]
+
| displayText = [[{{ucfirst: {{#arraydefine: gearInfo | {{#arrayindex: graphic_is_wieldable | {{#arraysearch: graphic_is_wieldable |/{{{graphic}}};\w/|0}} }} |;}}{{#arrayindex: gearInfo | 1 }} }}-handed weapon]]
 
| unknownCat = Rares with unknown wieldable capability
 
| unknownCat = Rares with unknown wieldable capability
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Works as a container
 
| field = Works as a container
 +
| category = Rares That Work As Containers
 
| param = {{#var: container}}
 
| param = {{#var: container}}
 
| unknownCat = Rares with unknown container capability
 
| unknownCat = Rares with unknown container capability
Line 154: Line 183:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Works as a runebook
 
| field = Works as a runebook
 +
| category = Rares That Work As Runebooks
 
| param = {{#var: runebook}}
 
| param = {{#var: runebook}}
 
| unknownCat = Rares with unknown container capability
 
| unknownCat = Rares with unknown container capability
Line 159: Line 189:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Works as a spellbook
 
| field = Works as a spellbook
 +
| category = Rares That Work As Spellbooks
 
| param = {{#var: spellbook}}
 
| param = {{#var: spellbook}}
 
| unknownCat = Rares with unknown container capability
 
| unknownCat = Rares with unknown container capability
Line 168: Line 199:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Animated
 
| field = Animated
 +
| category = Animated Rares
 
| param = {{#var: animated}}
 
| param = {{#var: animated}}
 
| unknownCat = Rares with unknown animation info
 
| unknownCat = Rares with unknown animation info
Line 173: Line 205:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Double-click Effect
 
| field = Double-click Effect
 +
| category = Rares With Double-Click Effects
 
| param = {{{doubleclick|}}}
 
| param = {{{doubleclick|}}}
 
| unknownCat = Rares with unknown double-click info
 
| unknownCat = Rares with unknown double-click info
Line 178: Line 211:
 
|-
 
|-
 
|Ethereal || {{#if:{{{hue|}}}|{{#ifeq:{{{hue}}} | 16385 | Yes | No}}|unknown}}
 
|Ethereal || {{#if:{{{hue|}}}|{{#ifeq:{{{hue}}} | 16385 | Yes | No}}|unknown}}
{{BoolInfoLine
+
{{SoundInfoLine
 
| field = Sound
 
| field = Sound
 +
| category = Rares With Sound Effects
 
| param = {{{sound|}}}
 
| param = {{{sound|}}}
 +
| soundId = {{{soundId|}}}
 
| unknownCat = Rares with unknown sound info
 
| unknownCat = Rares with unknown sound info
}}
 
{{BoolInfoLine
 
| field = Stackable
 
| param = {{{stackable|}}}
 
| unknownCat = Rares with unknown stacking capability
 
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Translucent
 
| field = Translucent
 +
| category = Translucent Rares
 
| param = {{#var: translucent}}
 
| param = {{#var: translucent}}
 
| unknownCat = Rares with unknown translucency
 
| unknownCat = Rares with unknown translucency
Line 195: Line 226:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Walk-over Effect
 
| field = Walk-over Effect
 +
| category = Rares With Walk-Over Effects
 
| param = {{{walkover|}}}
 
| param = {{{walkover|}}}
 
| unknownCat = Rares with unknown walk-over info
 
| unknownCat = Rares with unknown walk-over info
Line 204: Line 236:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Newbiefied
 
| field = Newbiefied
 +
| category = Newbiefied Items
 
| param = {{#if: {{{newbie|}}} | {{{newbie}}} | {{#ifeq: {{#arraysearch:types|EM|0|yes|no}} | yes | no }} }}
 
| param = {{#if: {{{newbie|}}} | {{{newbie}}} | {{#ifeq: {{#arraysearch:types|EM|0|yes|no}} | yes | no }} }}
 
| unknownCat = Rares with unknown newbie status
 
| unknownCat = Rares with unknown newbie status
Line 212: Line 245:
 
| unknownCat = Rares of unknown legality
 
| unknownCat = Rares of unknown legality
 
}}
 
}}
|}{{#if:{{{season|}}}|[[Category:UO:Season {{{season}}} Rares]]}}{{#if:{{{year|}}}|[[Category:UO:{{{year}}} Rares]]}}{{#if:{{{wearable|}}}|{{#ifeq:{{{wearable|}}}|false||[[Category:UO:Wearable Rares]]}}}}{{#if:{{{wieldable|}}}|[[Category:UO:Wieldable Rares]]}}<noinclude>
+
|}{{#switch: {{{graphic|}}}
 +
|5441
 +
|5442
 +
|18091
 +
|18090
 +
|18101
 +
|18100 = {{#if: {{#pos:{{{name|}}}|Greeting}} |[[Category:UO:Rares Collection:EM Greetings Sashes]] }}
 +
|6479 = [[Category:UO:Rares Collection:Easter Baskets]]
 +
|8406 = [[Category:UO:Rares Collection:Dragons]]
 +
|3191
 +
|3192 = [[Category:UO:Rares Collection:Carrots]][[Category:UO:Rares Collection:Foods]]
 +
|2485
 +
|5928
 +
|19719
 +
|19720
 +
|19721 = [[Category:UO:Rares Collection:Eggs]][[Category:UO:Rares Collection:Foods]]
 +
|4161
 +
|4162
 +
|19458
 +
|19459
 +
|19460
 +
|19461
 +
|19468
 +
|19469 = [[Category:UO:Rares Collection:Pies]][[Category:UO:Rares Collection:Foods]]
 +
|3094
 +
|3643
 +
|3834
 +
|4029
 +
|4030
 +
|4031
 +
|4032
 +
|4079
 +
|4080
 +
|4081
 +
|4082
 +
|4083
 +
|4084
 +
|7187
 +
|7712
 +
|7713
 +
|7714
 +
|7715
 +
|7716
 +
|7717
 +
|8786
 +
|8787
 +
|8788
 +
|8793
 +
|8794
 +
|8795
 +
|8901
 +
|9100
 +
|9120
 +
|11595
 +
|11596
 +
|11597
 +
|11598
 +
|11600
 +
|11677
 +
|11741
 +
|11742
 +
|17079
 +
|17080
 +
|17087
 +
|22398
 +
|22399
 +
|39297
 +
|39298
 +
|39573
 +
|39591 = [[Category:UO:Rares Collection:Books]]
 +
|203
 +
|2445
 +
|2446
 +
|2459
 +
|2460
 +
|2461
 +
|2462
 +
|2463
 +
|2464
 +
|2465
 +
|2466
 +
|2471
 +
|2471
 +
|2477
 +
|2500
 +
|2501
 +
|2502
 +
|2504
 +
|2518
 +
|4086
 +
|4087
 +
|4088
 +
|4089
 +
|4091
 +
|4092
 +
|4093
 +
|4094
 +
|4095
 +
|4096
 +
|4097
 +
|4098
 +
|6465
 +
|6466
 +
|6467
 +
|6468
 +
|8061
 +
|8062
 +
|8063
 +
|8064
 +
|8065
 +
|8066
 +
|8067
 +
|8068
 +
|8069
 +
|8070
 +
|8071
 +
|8072
 +
|8073
 +
|8074
 +
|8075
 +
|8076
 +
|8077
 +
|8078
 +
|8079
 +
|8080
 +
|8081
 +
|8082
 +
|8083
 +
|8084
 +
|8085
 +
|8086
 +
|8087
 +
|8088
 +
|8089
 +
|8090
 +
|8091
 +
|8092
 +
|8093
 +
|8094
 +
|17076
 +
|18782
 +
|18783 = [[Category:UO:Rares Collection:Alcohol and Drinks]][[Category:UO:Rares Collection:Foods]]
 +
|2581
 +
|2582
 +
|2583
 +
|2584
 +
|2586
 +
|2587
 +
|2588
 +
|2589
 +
|2594
 +
|2595
 +
|2596
 +
|2597 = [[Category:UO:Rares Collection:Lanterns]]
 +
|3629
 +
|3630
 +
|3631
 +
|3632
 +
|7715
 +
|7716
 +
|7717 = [[Category:UO:Rares Collection:Globes]]
 +
|2425
 +
|2426
 +
|2427
 +
|2428
 +
|2430
 +
|2453
 +
|2454
 +
|2459
 +
|2463
 +
|2485
 +
|2486
 +
|2487
 +
|2488
 +
|2490
 +
|2491
 +
|2496
 +
|2503
 +
|2504
 +
|2512
 +
|2513
 +
|2514
 +
|2515
 +
|2537
 +
|2538
 +
|2539
 +
|2540
 +
|2544
 +
|2545
 +
|2546
 +
|3164
 +
|3165
 +
|3173
 +
|3174
 +
|3178
 +
|3181
 +
|3182
 +
|3184
 +
|3185
 +
|3187
 +
|3188
 +
|3191
 +
|3192
 +
|3195
 +
|3196
 +
|3199
 +
|3201
 +
|3352
 +
|3386
 +
|3625
 +
|3856
 +
|3857
 +
|3864
 +
|3964
 +
|3978
 +
|4086
 +
|4153
 +
|4155
 +
|4156
 +
|4157
 +
|4159
 +
|4160
 +
|4161
 +
|4162
 +
|4165
 +
|4190
 +
|4227
 +
|5625
 +
|5626
 +
|5627
 +
|5628
 +
|5629
 +
|5631
 +
|5632
 +
|5633
 +
|5634
 +
|5636
 +
|5638
 +
|5639
 +
|5640
 +
|5641
 +
|5642
 +
|5643
 +
|5919
 +
|5921
 +
|5922
 +
|5923
 +
|5924
 +
|5925
 +
|5926
 +
|5927
 +
|5928
 +
|5929
 +
|5930
 +
|5931
 +
|5932
 +
|5933
 +
|7121
 +
|7192
 +
|7869
 +
|8085
 +
|8087
 +
|8089
 +
|8091
 +
|8093
 +
|9451
 +
|10248
 +
|10302
 +
|10304
 +
|10315
 +
|10316
 +
|10317
 +
|10318
 +
|10319
 +
|10320
 +
|11233
 +
|11235
 +
|11599
 +
|11705
 +
|11706
 +
|12246
 +
|12247
 +
|12248
 +
|16954
 +
|18060
 +
|18061
 +
|18063
 +
|18064
 +
|18077
 +
|18078
 +
|19363
 +
|39460
 +
|39461
 +
|39952
 +
|40582 = [[Category:UO:Rares Collection:Foods]]
 +
|#default =
 +
}}{{#if: {{#pos:{{{crafter|}}}|Drunk}} |[[Category:UO:Rares Collection:Alcohol and Drinks]] }}{{#if: {{#pos:{{{name|}}}|Dragon}} |[[Category:UO:Rares Collection:Dragons]] }}{{#if: {{#pos:{{{crafter|}}}|Pirate}} |[[Category:UO:Rares Collection:Pirates]] }}{{#if: {{#pos:{{{name|}}}|Pirate}} |[[Category:UO:Rares Collection:Pirates]] }}{{#if: {{#pos:{{{crafter|}}}|Pirate}} |[[Category:UO:Rares Collection:Pirates]] }}{{#if: {{#pos:{{{name|}}}|Spider}} |[[Category:UO:Rares Collection:Spiders]] }}{{#if: {{#pos:{{{name|}}}|Rubble}} |[[Category:UO:Rares Collection:Rubble]] }}{{#if: {{#pos:{{{name|}}}|Kitten}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Cats }} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Cat }} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Tiger }} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Kitty}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Couger}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Jaguar}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Lion}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Leopard}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Lynx}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Panther}} |[[Category:UO:Rares Collection:Cats]] }}{{#if: {{#pos:{{{name|}}}|Tabby}} |[[Category:UO:Rares Collection:Cats]] }}</includeonly><noinclude>
 
  <nowiki>{{InfoBox UORareItem
 
  <nowiki>{{InfoBox UORareItem
 
   |name = Some Item
 
   |name = Some Item
Line 226: Line 555:
 
   |crafter = EM So and so
 
   |crafter = EM So and so
 
   |quantity = 15
 
   |quantity = 15
 +
  |noseason = true
 
   |season  = 1  
 
   |season  = 1  
 
   |day = 1
 
   |day = 1
Line 283: Line 613:
 
   | Winterland = true
 
   | Winterland = true
 
}}
 
}}
 +
 +
To suppress the season where it's not applicable - for daily rares, for example - set the value of the noseason parameter to true.
  
 
Use:
 
Use:

Latest revision as of 18:28, 10 August 2020

{{InfoBox UORareItem
  |name = Some Item
  |japanesename = 船
  |aka = Rift Pillar
  |engraving = To Catskills Love Mesanna
  |extraprop = It's full.
  |container = no
  |runebook = no
  |spellbook = no
  |crafted       = no
  |craftText = made
  |crafter = EM So and so
  |quantity = 15
  |noseason = true
  |season   = 1 
  |day = 1
  |month = June
  |year     = 1998
  |day_end = 27
  |month_end = 4
  |year_end = 1999
  |weight = 3
  |legal       = true 
  |sound         = None
  |doubleclick   = None
  |wearable      = true
  |wieldable     = true
  |walkover = true
  |eatable = true
  |animated = true
  |turnable  = true
  |Arirang     = true
  |Asuka       = true
  |Atlantic    = true
  |Baja        = true
  |Balhae      = true
  |Catskills   = true
  |Chesapeake  = true
  |Drachenfels = true
  |Europa      = true
  |Formosa     = true
  |GL          = true
  |Hokuto      = true
  |Izumo       = true
  |LA          = true
  |LS          = true
  |Legends     = true
  |Mizuho      = true
  |Mugen       = true
  |Napa        = true
  |Oceania     = true
  |Origin      = true
  |Pacific     = true
  |Sakura      = true
  |SP          = true
  |Sonoma      = true
  |Test = true
  |Wakoku      = true
  |Yamato      = true
  |type          = EM
  |spawning = no
  | Abyss = true
  | Baekdu = true
  | Farmageddon = true
  | Retribution = true
  | SantaSlay = true
  | ShardOfScreams  = true
  | ShardOfTheDead = true
  | ShardOfTheDead2 = true
  | Winterland = true
}}

To suppress the season where it's not applicable - for daily rares, for example - set the value of the noseason parameter to true.

Use:
 |forceBlack = true
or
 |forceWhite = true
to override the default image background color, if it will make the image show better.

If the item name contains a |, you must instead type {{!}} or things will break.