Difference between revisions of "Template:InfoBox UORareItem"

m
m
 
(283 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOEDITSECTION__
+
<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]] }} | }}
<div style="float:left; width:68%;">
+
{{#loop: i
={{{name}}}=
+
  | 0
{{#ifeq: {{Boolean|{{{crafted}}} }} | 1 |==&nbsp;&nbsp;&nbsp;&nbsp;''{{{craftText}}} by {{{crafter}}}''== }}
+
  | {{#arraysize: graphicLists}}
</div>{{#vardefine: imagename|File:UO-Item-{{{graphic}}}-{{{hue}}}.png}}
+
  | {{#vardefine: list | {{#arrayindex:graphicLists | {{#var:i}} }} }}
 +
{{#arraydefine:graphic_is_{{#var:list}}|{{UOGraphicList_{{#var:list}}}}}}
 +
{{#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=imagecell colspan="2" style="background:{{#ifeq:  {{Boolean|{{{forceBlack|}}} }} | 1 | black | {{#ifeq:  {{Boolean|{{{forceWhite|}}} }} | 1 | | {{#ifexist:{{#var: imagename}} | {{#switch: {{{hue|}}}
+
|class=titlecell colspan="2"| Rare Item
| 746 = black
 
| 906 = black
 
| 911 = black
 
| 916 = black
 
| 1000 = black
 
| 1001 = black
 
| 1100 = black
 
| 1101 = black
 
| 1102 = black
 
| 1151 = black
 
| 1152 = black
 
| 1153 = black
 
| 1154 = black
 
| 1169 = black
 
| 1175 = black
 
| 1259 = black
 
| 1260 = black
 
| 1261 = black
 
| 1281 = black
 
| 1283 = black
 
| 1284 = black
 
| 1288 = black
 
| 1289 = black
 
| 1290 = black
 
| 1359 = black
 
| 1360 = black
 
| 1361 = black
 
| 1675 = black
 
| 1676 = black
 
| 1679 = black
 
| 2029 = black
 
| 2030 = black
 
| 2031 = black
 
| 2032 = black
 
| 2033 = black
 
| 2034 = black
 
| 2035 = black
 
| 2036 = black
 
| 2037 = black
 
| 2038 = black
 
| 2039 = black
 
| 2040 = black
 
| 2041 = black
 
| 2042 = black
 
| 2043 = black
 
| 2044 = black
 
| 2045 = black
 
| 2046 = black
 
| 2047 = black
 
| 2048 = black
 
| 2049 = black
 
| 2050 = black
 
| 2059 = black
 
| 2060 = black
 
| 2061 = black
 
| 2062 = black
 
| 2063 = black
 
| 2064 = black
 
| 2065 = black
 
| 2067 = black
 
| 2499 = black
 
| 2500 = black
 
| 2721 = black
 
| 2722 = black
 
| 2728 = black
 
| 2729 = black
 
| 2730 = black
 
| 2953 = black
 
| 2954 = black
 
| 2956 = black
 
| 2959 = black
 
| 2962 = black
 
| 2963 = black
 
| #default =
 
}} |}} }} }}" | {{#ifexist:{{#var: imagename}}|[[{{#var: imagename}}{{!}}Image of {{{name}}}]]|&nbsp;This image is not yet available.&nbsp;{{#if:{{{graphic|}}}|{{#if:{{{hue|}}}|<br/><br/>[http://services.servuo.com/uoapi/item/{{{graphic}}}/{{{hue}}} You can try this image.]<br/><br/>If it is the correct image, with the correct hue,<br/>you can save it, then [http://stratics.com/w/index.php?title=Special:Upload&wpDestFile={{#var: imagename}} upload it] to Stratics!
 
<small> (Image API is provided by ServUO,<br/>and is used with permission.)</small>}} |}} |}}
 
<!--  The ServUO API is used with the written permission of dmurphy at servuo.com. -->
 
 
|-
 
|-
| Type   || {{#if:{{{type|}}}|{{#vardefine: itemtype | {{{type}}}{{#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}}}|}}
+
        </noinclude>[[Category:UO:Items of unknown origin]][[:Category:UO:Items of unknown origin|unknown]]|<noinclude>
{{#expr: {{#if: {{{year|}}} | 0 | 1 }} or {{#expr: {{{year}}} > 2002 }} |{{!}}-
+
        </noinclude>{{#arraydefine:types|{{{type}}} }}<noinclude>
| Season  || {{#if:{{{season|}}}| [[Category:UO:Season {{{season}}} Rares]][[:Category:UO:Season {{{season}}} Rares|{{{season}}}]]|unknown[[Category:UO:Rares with unknown season]]}} |}}  
+
        </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}}}|
 +
{{!}}-
 +
{{!}} Crafter Name {{!!}} {{{crafter|}}}
 +
|}}
 
|-
 
|-
| Date     || {{#switch: {{{month|}}}
+
| Date{{#if: {{{year_end|}}} |s}} || {{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }}
  | 1 = January
+
| 1~1
 +
  | jan = January
 +
| 2~2
 +
| feb = February
 +
| 3~3
 +
| mar = March
 +
| 4~4
 +
| apr = April
 +
| 5~5
 +
| may = May
 +
| 6~6
 +
| jun = June
 +
| 7~7
 +
| jul = July
 +
| 8~8
 +
| aug = August
 +
| 9~9
 +
| sep
 +
| sept = September
 +
| 10~
 +
| oct = October
 +
| 11~
 +
| nov = November
 +
| 12~
 +
| dec = December
 +
| #default =
 +
}}}}{{#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|}}}~ }} }}
 +
| 1~1
 
  | jan = January
 
  | jan = January
  | 2 = February
+
  | 2~2
 
  | feb = February
 
  | feb = February
  | 3 = March
+
  | 3~3
 
  | mar = March
 
  | mar = March
  | 4 = April
+
  | 4~4
 
  | apr = April
 
  | apr = April
  | 5 = May
+
  | 5~5
 
  | may = May
 
  | may = May
  | 6 = June
+
  | 6~6
 
  | jun = June
 
  | jun = June
  | 7 = July
+
  | 7~7
 
  | jul = July
 
  | jul = July
  | 8 = August
+
  | 8~8
 
  | aug = August
 
  | aug = August
  | 9 = September
+
  | 9~9
  | sep = September
+
  | sep  
 
  | sept = September
 
  | sept = September
  | 10 = October
+
  | 10~
 
  | oct = October
 
  | oct = October
  | 11 = November
+
  | 11~
 
  | nov = November
 
  | nov = November
  | 12 = December
+
  | 12~
 
  | dec = December
 
  | dec = December
  | #default = {{{month|}}}
+
  | #default =  
}}{{#if: {{{day|}}} | {{{day}}}, |}} {{#if:{{{season|}}}|20{{padleft:{{#expr: 2+{{{season}}} }}|2}}|{{#if:{{{year|}}}|{{{year}}}|unknown}} }}
+
}}{{#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(s) || {{#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}}{{#vardefine:n|0}}
+
| Shard{{#vardefine: shardcount | 0}}{{
 +
  #loop: i
 +
  | 0
 +
  | 27
 +
  | {{#if: {{{ {{#arrayindex: shards | {{#var:i}} }} | }}} | {{#vardefine: shardcount | {{#expr: {{#var: shardcount}} + 1}} }} }}
 +
}}{{#ifexpr: {{#var: shardcount}} > 1 | s }} || {{#vardefine:n|0}}
 
{{
 
{{
 
   #loop: i
 
   #loop: i
Line 130: Line 110:
 
  | Napa = Napa Valley
 
  | Napa = Napa Valley
 
  | SP = Siege Perilous
 
  | SP = Siege Perilous
 +
| Test = Test Center
 +
|SantaSlay = Santa's Slay
 +
|ShardOfScreams = Shard Of Screams
 +
|ShardOfTheDead = Shard Of The Dead
 +
|ShardOfTheDead2 = Shard Of The Dead II
 
  | #default = {{#var:shard}}
 
  | #default = {{#var:shard}}
}} }} {{#ifeq:  {{Boolean|{{{s_{{#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|}}}|{{#replace: {{{quantity}}}|*|&lowast;}}|unknown[[Category:UO:Rares of unknown quantity]]}}
 +
{{BoolInfoLine
 +
| field = Currently Spawning
 +
| category = Spawning Rares
 +
| param = {{{spawning|{{#var: notspawning}}}}}
 +
| unknownCat = Rares with unknown spawning status
 +
}}
 
|-
 
|-
| Quantity || {{#if:{{{quantity|}}}|{{{quantity}}}|unknown[[Category:UO:Rares of unknown quantity]]}}
+
| Japanese localized name || {{#if:{{{japanesename|}}}|{{{japanesename}}}|unknown[[Category:UO:Rares with unknown Japanese localization]]}}
 
|-
 
|-
|colspan="2"|
+
| &nbsp;
-----
 
 
|-
 
|-
| Graphic  || {{#if:{{{graphic|}}}|[[Category:UO:Items with graphic 0x{{{graphic}}}]][[:Category:UO:Items with graphic 0x{{{graphic}}}|0x{{{graphic}}}]]|[[Category:UO:Rares with unknown graphic]][[:Category:UO:Rares with unknown graphic|unknown]]}}
+
|class=titlecell colspan="2" | Extended Information
 
|-
 
|-
| Hue      || {{#if:{{{hue|}}}|[[Category:UO:Items with hue {{{hue}}}]][[:Category:UO:Items with hue {{{hue}}}|{{{hue}}}]]|[[Category:UO:Rares with unknown hue]][[:Category:UO:Rares with unknown hue|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]]}}
 
|-
 
|-
| Weight || {{#if:{{{weight|}}}|{{{weight}}} stone{{#ifeq:{{{weight|}}}|1||s}}|unknown[[Category:UO:Rares with unknown weight]]}}
+
| 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]]}}
{{BoolInfoLine
 
| field = Blessed (originally)
 
| param = {{{blessed|}}}
 
| unknownCat = Rares with unknown bless status
 
}}
 
 
|-
 
|-
|colspan="2"|
+
| 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
Line 168: Line 163:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Wearable
 
| field = Wearable
| param = {{{wearable|}}}
+
| category = Wearable Rares
 +
| param = {{#var: wearable}}
 +
| 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
| param = {{{wieldable|}}}
+
| category = Wieldable Rares
 +
| param = {{#var: wieldable}}
 +
| 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
 +
| field = Works as a container
 +
| category = Rares That Work As Containers
 +
| param = {{#var: container}}
 +
| unknownCat = Rares with unknown container capability
 +
}}
 +
{{BoolInfoLine
 +
| field = Works as a runebook
 +
| category = Rares That Work As Runebooks
 +
| param = {{#var: runebook}}
 +
| unknownCat = Rares with unknown container capability
 +
}}
 +
{{BoolInfoLine
 +
| field = Works as a spellbook
 +
| category = Rares That Work As Spellbooks
 +
| param = {{#var: spellbook}}
 +
| unknownCat = Rares with unknown container capability
 +
}}
 +
|-
 +
| &nbsp;
 
|-
 
|-
|colspan="2"|
+
|class=titlecell colspan="2" | Effects
-----
 
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Animated
 
| field = Animated
| param = {{{animated|}}}
+
| category = Animated Rares
 +
| param = {{#var: animated}}
 
| unknownCat = Rares with unknown animation info
 
| unknownCat = Rares with unknown animation info
 
}}
 
}}
 
{{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 191: 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
 
{{BoolInfoLine
| field = Transparent
+
| field = Translucent
| param = {{{transparent|}}}
+
| category = Translucent Rares
| unknownCat = Rares with unknown transparentcy
+
| param = {{#var: translucent}}
 +
| unknownCat = Rares with unknown translucency
 
}}
 
}}
 
{{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
 
}}
 
}}
 
|-
 
|-
|colspan="2"|
+
| &nbsp;
-----
+
|-
 +
|class=titlecell colspan="2" | Special Item Flags
 +
{{BoolInfoLine
 +
| field = Newbiefied
 +
| category = Newbiefied Items
 +
| param = {{#if: {{{newbie|}}} | {{{newbie}}} | {{#ifeq: {{#arraysearch:types|EM|0|yes|no}} | yes | no }} }}
 +
| unknownCat = Rares with unknown newbie status
 +
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Legal to Own
 
| field = Legal to Own
Line 214: Line 245:
 
| unknownCat = Rares of unknown legality
 
| unknownCat = Rares of unknown legality
 
}}
 
}}
 
+
|}{{#switch: {{{graphic|}}}
|}
+
|5441
{{#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]]}}{{Template:Clear}}
+
|5442
<noinclude>
+
|18091
  <nowiki>{{Template:ItemInfoBox
+
|18090
   |graphic  = 1234
+
|18101
   |hue      = 1050
+
|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
 +
  |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
 
   |quantity = 15
 +
  |noseason = true
 
   |season  = 1  
 
   |season  = 1  
 
   |day = 1
 
   |day = 1
 
   |month = June
 
   |month = June
 
   |year    = 1998
 
   |year    = 1998
 +
  |day_end = 27
 +
  |month_end = 4
 +
  |year_end = 1999
 
   |weight = 3
 
   |weight = 3
 
   |legal      = true  
 
   |legal      = true  
Line 236: Line 573:
 
   |animated = true
 
   |animated = true
 
   |turnable  = true
 
   |turnable  = true
   |s_Arirang     = true
+
   |Arirang     = true
   |s_Asuka       = true
+
   |Asuka       = true
   |s_Atlantic   = true
+
   |Atlantic   = true
   |s_Baja       = true
+
   |Baja       = true
   |s_Balhae     = true
+
   |Balhae     = true
   |s_Catskills   = true
+
   |Catskills   = true
   |s_Chesapeake = true
+
   |Chesapeake = true
   |s_Drachenfels = true
+
   |Drachenfels = true
   |s_Europa     = true
+
   |Europa     = true
   |s_Formosa     = true
+
   |Formosa     = true
   |s_GL         = true
+
   |GL         = true
   |s_Hokuto     = true
+
   |Hokuto     = true
   |s_Izumo       = true
+
   |Izumo       = true
   |s_LA         = true
+
   |LA         = true
   |s_LS         = true
+
   |LS         = true
   |s_Legends     = true
+
   |Legends     = true
   |s_Mizuho     = true
+
   |Mizuho     = true
   |s_Mugen       = true
+
   |Mugen       = true
   |s_Napa       = true
+
   |Napa       = true
   |s_Oceania     = true
+
   |Oceania     = true
   |s_Origin     = true
+
   |Origin     = true
   |s_Pacific     = true
+
   |Pacific     = true
   |s_Sakura     = true
+
   |Sakura     = true
   |s_SP         = true
+
   |SP         = true
   |s_Sonoma     = true
+
   |Sonoma     = true
   |s_Wakoku     = true
+
   |Test = true
   |s_Yamato     = true
+
  |Wakoku     = true
 +
   |Yamato     = true
 
   |type          = EM
 
   |type          = EM
   |crafted      = no
+
   |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:
 
Use:
Line 273: Line 622:
 
to override the default image background color, if it will make the image show better.
 
to override the default image background color, if it will make the image show better.
  
Minimum knowledge case:
+
If the item name contains a |, you must instead type {{!}} or things will break.
 
 
{{Template:ItemInfoBox
 
  |s_Unknown = true
 
}}
 
  
 
</nowiki></noinclude>
 
</nowiki></noinclude>

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.