Difference between revisions of "Template:InfoBox UORareItem"

m
m
Line 10: Line 10:
 
| Year    || {{#if:{{{season|}}}|20{{padleft:{{#expr: 2+{{{season}}}}}|2}}|}}{{#if:{{{year|}}}|{{{year}}}|}}
 
| Year    || {{#if:{{{season|}}}|20{{padleft:{{#expr: 2+{{{season}}}}}|2}}|}}{{#if:{{{year|}}}|{{{year}}}|}}
 
|-
 
|-
| Shard(s) || {{Template:ItemInfoBox/Shard|{{{s_Arirang}}}|Arirang}}{{Template:ItemInfoBox/Shard|{{{s_Asuka}}}|Asuka}}{{Template:ItemInfoBox/Shard|{{{s_Atlantic}}}|Atlantic}}{{Template:ItemInfoBox/Shard|{{{s_Baja}}}|Baja}}{{Template:ItemInfoBox/Shard|{{{s_Balhae}}}|Balhae}}{{Template:ItemInfoBox/Shard|{{{s_Catskills}}}|Catskills}}{{Template:ItemInfoBox/Shard|{{{s_Chesapeake}}}|Chesapeake}}{{Template:ItemInfoBox/Shard|{{{s_Drachenfels}}}|Drachenfels}}{{Template:ItemInfoBox/Shard|{{{s_Europa}}}|Europa}}{{Template:ItemInfoBox/Shard|{{{s_Formosa}}}|Formosa}}{{Template:ItemInfoBox/Shard|{{{s_GL}}}|Great Lakes}}{{Template:ItemInfoBox/Shard|{{{s_Hokuto}}}|Hokuto}}{{Template:ItemInfoBox/Shard|{{{s_Izumo}}}|Izumo}}{{Template:ItemInfoBox/Shard|{{{s_LA}}}|Lake Austin}}{{Template:ItemInfoBox/Shard|{{{s_LS}}}|Lake Superior}}{{Template:ItemInfoBox/Shard|{{{s_Legends}}}|Legends}}{{Template:ItemInfoBox/Shard|{{{s_Mizuho}}}|Mizuho}}{{Template:ItemInfoBox/Shard|{{{s_Mugen}}}|Mugen}}{{Template:ItemInfoBox/Shard|{{{s_Napa}}}|Napa Valley}}{{Template:ItemInfoBox/Shard|{{{s_Oceania}}}|Oceania}}{{Template:ItemInfoBox/Shard|{{{s_Origin}}}|Origin}}{{Template:ItemInfoBox/Shard|{{{s_Pacific}}}|Pacific}}{{Template:ItemInfoBox/Shard|{{{s_Sakura}}}|Sakura}}{{Template:ItemInfoBox/Shard|{{{s_SP}}}|Siege Perilous}}{{Template:ItemInfoBox/Shard|{{{s_Sonoma}}}|Sonoma}}{{Template:ItemInfoBox/Shard|{{{s_Wakoku}}}|Wakoku}}{{Template:ItemInfoBox/Shard|{{{s_Yamato}}}|Yamato}}{{#ifeq:{{{s_Unknown}}}|true|unknown[[Category:UO:Rares from unknown shards]]|}}
+
| 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}}
 +
{{
 +
  #loop: i
 +
  | 0
 +
  | {{#arraysize: shards}}
 +
  | {{#vardefine: shard | {{#arrayindex: shards | {{#var:i}} }} }} {{#vardefine: shardname|{{#switch: {{#var:shard}}
 +
| GL = Great Lakes
 +
| LA = Lake Austin
 +
| LS = Lake Superior
 +
| Napa = Napa Valley
 +
| SP = Siege Perilous
 +
| #default = {{#var:shard}}
 +
}} }} {{#ifeq: {{Boolean|{{{s_{{#var:shard}}|}}} }} | true | [[:Category:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}} }}{{#ifeq:{{{s_Unknown}}}|true|unknown[[Category:UO:Rares from unknown shards]]|}}
 
|-
 
|-
 
| Quantity || {{#if:{{{quantity|}}}|{{{quantity}}}|unknown[[Category:UO:Rares of unknown quantity]]}}
 
| Quantity || {{#if:{{{quantity|}}}|{{{quantity}}}|unknown[[Category:UO:Rares of unknown quantity]]}}
Line 103: Line 115:
  
 
</nowiki></noinclude>
 
</nowiki></noinclude>
{{#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}}
 
{{
 
  #loop: i
 
  | 0
 
  | {{#arraysize: shards}}
 
  | {{#vardefine: shard | {{#arrayindex: shards | {{#var:i}} }} }} {{#vardefine: shardname|{{#switch: {{#var:shard}}
 
| GL = Great Lakes
 
| LA = Lake Austin
 
| LS = Lake Superior
 
| Napa = Napa Valley
 
| SP = Siege Perilous
 
| #default = {{#var:shard}}
 
}} }} {{#ifeq:  {{Boolean|{{{s_{{#var:shard}}|}}} }} | true | <br/>[[:Category:{{#var:shardname}} Rares|{{#var:shardname}}]] |}} }}
 

Revision as of 16:32, 7 June 2016

This image is not yet available at Stratics.

You can try this image.

If it is the correct image, with the correct hue, you can save it, then upload it to Stratics!

(Image API is provided by ServUO,
and is used with permission.)

Type unknown
Season unknown
Year
Shard(s)
Quantity unknown

Graphic unknown
Hue unknown
Weight unknown

Dyable unknown
Turnable unknown
Wearable unknown
Wieldable unknown

Animated unknown
Sound unknown
Double-Click Effect unknown

Legal to Own Yes
{{Template:ItemInfoBox
  |graphic  = 1234
  |hue      = 1050
  |quantity = 15
  |season   = 1  /* if present, don't also define year. */
  |year     = 1998 /* Only for items without a season. */
  |weight = 3
  |illegal       = true /* Defaults to false. */
  |sound         = None
  |doubleclick   = None
  |wearable      = true
  |wieldable     = true
  |animated = true
  |turnable  = true
  |s_Arirang     = true
  |s_Asuka       = true
  |s_Atlantic    = true
  |s_Baja        = true
  |s_Balhae      = true
  |s_Catskills   = true
  |s_Chesapeake  = true
  |s_Drachenfels = true
  |s_Europa      = true
  |s_Formosa     = true
  |s_GL          = true
  |s_Hokuto      = true
  |s_Izumo       = true
  |s_LA          = true
  |s_LS          = true
  |s_Legends     = true
  |s_Mizuho      = true
  |s_Mugen       = true
  |s_Napa        = true
  |s_Oceania     = true
  |s_Origin      = true
  |s_Pacific     = true
  |s_Sakura      = true
  |s_SP          = true
  |s_Sonoma      = true
  |s_Wakoku      = true
  |s_Yamato      = true
  |s_Unknown     = true
  |type          = EM
  |crafted       = no
}}

Minimum knowledge case:

{{Template:ItemInfoBox
  |s_Unknown = true
}}