Difference between revisions of "Template:InfoBox UORareItem"

m
m
Line 35: Line 35:
 
{{!}} Season  {{!!}} {{#if:{{{season|}}}| {{#var:seasonText}}|[[Category:UO:Rares with unknown season]][[UO:Rares with unknown season|unknown]]}} }} }} }}
 
{{!}} Season  {{!!}} {{#if:{{{season|}}}| {{#var:seasonText}}|[[Category:UO:Rares with unknown season]][[UO:Rares with unknown season|unknown]]}} }} }} }}
 
|-
 
|-
| Date{{#if: {{{year_end|}}} |s}} || {{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }}
+
| Date{{#if: {{{year_end|}}} |s}} || {{#vardefine: month|{{#switch: {{lc:{{padleft:|3|{{{month|}}}~ }} }}
| 111 = {{#ifeq: {{{month|}}}|1|January}}{{#ifeq: {{{month|}}}|11|November}}
+
| 1~1 = 1
  | jan = January
+
  | jan = 1
  | 222
+
  | 2~2 = 2
  | feb = February
+
  | feb = 2
  | 333
+
  | 3~3 = 3
  | mar = March
+
  | mar = 3
  | 444
+
  | 4~4 = 4
  | apr = April
+
  | apr = 4
  | 555
+
  | 5~5 = 5
  | may = May
+
  | may = 5
  | 666
+
  | 6~6 = 6
  | jun = June
+
  | jun = 6
  | 777
+
  | 7~7 = 7
  | jul = July
+
  | jul = 7
  | 888
+
  | 8~8 = 8
  | aug = August
+
  | aug = 8
  | 999
+
  | 9~9 = 9
  | sep  
+
  | sep = 9
  | sept = September
+
  | sept = 9
  | 101
+
  | 10~ = 10
  | oct = October
+
  | oct = 10
  | nov = November
+
| 11~ = 11
  | 121
+
  | nov = 11
  | dec = December
+
  | 12~ = 12
  | #default = {{{month|}}}
+
  | dec = 12
}}}}{{#var: month}}{{#if: {{{day|}}} | {{{day}}}, |}} {{#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|}}} | – {{#switch: {{lc:{{padleft:|3|{{{month_end|}}} }} }}
+
  | #default = 0
| 111 = January
+
}}}}{{#var: month}}{{#if: {{{day|}}} | {{{day}}}, |}} {{#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|}}} | – {{#switch: {{lc:{{padleft:|3|{{{month_end|}}}~ }} }}
  | jan = January
+
| 1~1 = 1
  | 222 = February
+
  | jan = 1
  | feb = February
+
  | 2~2 = 2
  | 333 = March
+
  | feb = 2
  | mar = March
+
  | 3~3 = 3
  | 444 = April
+
  | mar = 3
  | apr = April
+
  | 4~4 = 4
  | 555 = May
+
  | apr = 4
  | may = May
+
  | 5~5 = 5
  | 666 = June
+
  | may = 5
  | jun = June
+
  | 6~6 = 6
  | 777 = July
+
  | jun = 6
  | jul = July
+
  | 7~7 = 7
  | 888 = August
+
  | jul = 7
  | aug = August
+
  | 8~8 = 8
  | 999 = September
+
  | aug = 8
  | sep = September
+
  | 9~9 = 9
  | sept = September
+
  | sep = 9
  | 101 = October
+
  | sept = 9
  | oct = October
+
  | 10~ = 10
  | 111 = November
+
  | oct = 10
  | nov = November
+
  | 11~ = 11
  | 121 = December
+
  | nov = 11
  | dec = December
+
  | 12~ = 12
  | #default = {{{month_end|}}}
+
  | dec = 12
 +
  | #default = 0
 
}}{{#if: {{{day_end|}}} | {{{day_end}}}, |}} {{#if:{{{year_end|}}}| {{{year_end}}} }}
 
}}{{#if: {{{day_end|}}} | {{{day_end}}}, |}} {{#if:{{{year_end|}}}| {{{year_end}}} }}
 
}}
 
}}

Revision as of 21:48, 19 November 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
  |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.