Difference between revisions of "Template:InfoBox UORareItem"

m
m
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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: {{{year|}}} | {{#if: {{{season|}}} | [[Category:Pages with season but not year]] }} | }}
+
<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
Line 25: Line 25:
 
             </noinclude>[[:Category:UO:{{#var:itemtype}} Items|{{#var:itemtype}}{{#if: {{{crafter|}}}|-crafted}} Item]]<noinclude>
 
             </noinclude>[[:Category:UO:{{#var:itemtype}} Items|{{#var:itemtype}}{{#if: {{{crafter|}}}|-crafted}} Item]]<noinclude>
 
             </noinclude>{{#ifeq: {{#var:itemtype}}|EM|{{#vardefine:notspawning|true}} }}<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}}|GM}}|{{#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>{{#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>}}<noinclude>
 
     </noinclude>}}<noinclude>
Line 146: Line 146:
 
| field = Edible
 
| field = Edible
 
| category = Edible Rares
 
| category = Edible Rares
| param = {{#if: {{{eatable|}}} | {{{eatable}}} | {{#if: {{#var: wieldable}} |false|{{#if: {{#var: wearable}} |false|{{#if: {{#var: container}} |false|{{#if: {{#var: spellbook}} |false|{{#if: {{#var: runebook}} |false}} }} }} }} }} }}
+
| param = {{{eatable|}}}
 
| unknownCat = Rares with unknown edibleness
 
| unknownCat = Rares with unknown edibleness
 
}}
 
}}
Line 216: Line 216:
 
| param = {{{sound|}}}
 
| param = {{{sound|}}}
 
| soundId = {{{soundId|}}}
 
| soundId = {{{soundId|}}}
| soundFile = {{{soundFile|}}}
 
 
| unknownCat = Rares with unknown sound info
 
| unknownCat = Rares with unknown sound info
 
}}
 
}}
Line 542: Line 541:
 
|40582 = [[Category:UO:Rares Collection:Foods]]
 
|40582 = [[Category:UO:Rares Collection:Foods]]
 
|#default =
 
|#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]] }}</includeonly><noinclude>
+
}}{{#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

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.