Difference between revisions of "Template:InfoBox UORareItem"

m
m
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:graphic_is_animated|{{UOGraphicList_Animated}}}}{{#vardefine: animated | {{#if: {{{animated|}}} | {{{animated}}} | {{#if: {{{graphic|}}} | {{#if: {{#arraysearch:graphic_is_animated|{{{graphic}}}|0}} | yes | no }} }} }} }}
+
{{#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}}
 +
{{
 +
  #loop: i
 +
  | 0
 +
  | {{#arraysize: graphicLists}}
 +
  | <nowiki/>
 +
{{#vardefine: list | {{#arrayindex:graphicLists | {{#var:i}} }} }}
 +
{{#arraydefine:graphic_is_{{#var:list}}|{{UOGraphicList_{{#var:list}}}}}}
 +
{{#vardefine: {{#var:list}} | {{#if: {{{ {{#var:list}} |}}} | {{{ {{#var:list}} }}} | {{#if: {{{graphic|}}} | {{#if: {{#arraysearch:graphic_is_{{#var:list}}|{{{graphic}}}|0}} | yes | no }} }} }} }}
 +
}}
 
{| class=infobox  
 
{| class=infobox  
 
|class=titlecell colspan="2"| Rare Item
 
|class=titlecell colspan="2"| Rare Item
Line 133: Line 142:
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Works as a container
 
| field = Works as a container
| param = {{{container|}}}
+
| param = {{#var: container}}
 
| unknownCat = Rares with unknown container capability
 
| unknownCat = Rares with unknown container capability
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Works as a runebook
 
| field = Works as a runebook
| param = {{{runebook|}}}
+
| param = {{#var: runebook}}
 
| unknownCat = Rares with unknown container capability
 
| unknownCat = Rares with unknown container capability
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
 
| field = Works as a spellbook
 
| field = Works as a spellbook
| param = {{{spellbook|}}}
+
| param = {{#var: spellbook}}
 
| unknownCat = Rares with unknown container capability
 
| unknownCat = Rares with unknown container capability
 
}}
 
}}
Line 168: Line 177:
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine
| field = Transparent
+
| field = Stackable
| param = {{{transparent|}}}
+
| param = {{{stackable|}}}
| unknownCat = Rares with unknown transparentcy
+
| unknownCat = Rares with unknown stacking capability
 +
}}
 +
{{BoolInfoLine
 +
| field = Translucent
 +
| param = {{#var: translucent}}
 +
| unknownCat = Rares with unknown translucency
 
}}
 
}}
 
{{BoolInfoLine
 
{{BoolInfoLine

Revision as of 11:41, 8 August 2016

Rare Item
Type unknown
Season unknown
Date unknown
Shard

unknown

Quantity unknown
Currently Spawning unknown
Japanese localized name unknown
 
Extended Information
Graphic unknown
Hue unknown
Dyable unknown
Eatable unknown
Turnable unknown
Wearable unknown
Wieldable unknown
Works as a container unknown
Works as a runebook unknown
Works as a spellbook unknown
 
Effects
Animated unknown
Double-click Effect unknown
Ethereal unknown
Sound unknown
Stackable unknown
Translucent unknown
Walk-over Effect unknown
 
Special Item Flags
Newbiefied unknown
Legal to Own unknown
{{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
  |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
}}

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.