Difference between revisions of "Template:InfoBox UORareItem"

m
m
Line 12: Line 12:
 
|class=titlecell colspan="2"| Rare Item
 
|class=titlecell colspan="2"| Rare Item
 
|-
 
|-
| Type  || {{#if:{{{type|}}}|{{#arraydefine:types|{{{type}}} }}{{#arraysort:types|asc}}{{#arrayprint:types |,  |@@@@  | {{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}{{#ifeq: {{Boolean|{{{crafted}}} }} | true |-crafted|}} Item}}[[Category:UO:{{#var:itemtype}}s]][[:Category:UO:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[Category:UO:Items of unknown origin]][[Items of unknown origin|unknown]]}}
+
| Type  || {{#if:{{{type|}}}|{{#arraydefine:types|{{{type}}} }}{{#arraysort:types|asc}}{{#arrayprint:types |,  |@@@@  | {{#vardefine: itemtype |{{#replace: {{#replace: {{#replace: @@@@|Em|EM}}|Gm|GM}}|Igm|IGM}}{{#ifeq: {{Boolean|{{{crafted}}} }} | true |-crafted|}} Item}}[[Category:UO:{{#var:itemtype}}s]][[:Category:UO:{{#var:itemtype}}s|{{#var:itemtype}}]]{{#ifeq: {{#var:itemtype}}|EM Item|{{#vardefine:notspawning|true}} }} }}|[[Category:UO:Items of unknown origin]][[Items of unknown origin|unknown]]}}
 
{{#ifeq: {{Boolean|{{{crafted}}} }} | true |{{!}}-
 
{{#ifeq: {{Boolean|{{{crafted}}} }} | true |{{!}}-
 
{{!}} Crafter Name {{!!}} {{{crafter}}}|}}{{#ifexpr: {{#expr: {{#var: yearExists}} and {{#var: yearHasSeason}} }} or  {{#expr: {{#var: yearExists}} = 0}} |
 
{{!}} Crafter Name {{!!}} {{{crafter}}}|}}{{#ifexpr: {{#expr: {{#var: yearExists}} and {{#var: yearHasSeason}} }} or  {{#expr: {{#var: yearExists}} = 0}} |
Line 103: Line 103:
 
| field = Currently Spawning
 
| field = Currently Spawning
 
| category = Spawning Rares
 
| category = Spawning Rares
| param = {{{spawning|}}}
+
| param = {{{spawning|{{#var: notspawning}}}}}
 
| unknownCat = Rares with unknown spawning status
 
| unknownCat = Rares with unknown spawning status
 
}}
 
}}

Revision as of 15:31, 18 August 2016

{{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.