Difference between revisions of "Template:InfoBox UORareItem"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) 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: 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]]}} | + | <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]]}} |
{{ | {{ | ||
#loop: i | #loop: i | ||
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:{{#var:itemtype}}s]][[:Category:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[Category:Items of unknown origin]][[ | + | | 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:{{#var:itemtype}}s]][[:Category:{{#var:itemtype}}s|{{#var:itemtype}}]] }}|[[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}} | | ||
{{!}}- | {{!}}- | ||
− | {{!}} Season {{!!}} {{#if:{{{season|}}}| [[Category:UO:Season {{{season}}} Rares]][[UO:Season {{{season}}} Rares|{{{season}}}]]| | + | {{!}} Season {{!!}} {{#if:{{{season|}}}| [[Category:UO:Season {{{season}}} Rares]][[UO:Season {{{season}}} Rares|{{{season}}}]]|[[Category:UO:Rares with unknown season]][[UO:Rares with unknown season|unknown]]}} |}} |
|- | |- | ||
| Date{{#if: {{{year_end|}}} |s}} || {{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }} | | Date{{#if: {{{year_end|}}} |s}} || {{#switch: {{lc:{{padleft:|3|{{{month|}}} }} }} | ||
Line 45: | Line 45: | ||
| dec = December | | dec = December | ||
| #default = {{{month|}}} | | #default = {{{month|}}} | ||
− | }}{{#if: {{{day|}}} | {{{day}}}, |}} {{#if:{{{season|}}}|{{#vardefine: year |20{{padleft:{{#expr: 2+{{{season}}} }}|2}} }} [[Category:UO:Rares From {{#var: year}}]][[:Category:UO:Rares From {{#var: year}}|{{#var: year}}]]|{{#if:{{{year|}}}| [[Category:UO:Rares From {{{year}}}]][[UO:Rares From {{{year}}}]]| | + | }}{{#if: {{{day|}}} | {{{day}}}, |}} {{#if:{{{season|}}}|{{#vardefine: year |20{{padleft:{{#expr: 2+{{{season}}} }}|2}} }} [[Category:UO:Rares From {{#var: year}}]][[:Category:UO:Rares From {{#var: year}}|{{#var: year}}]]|{{#if:{{{year|}}}| [[Category:UO:Rares From {{{year}}}]][[UO:Rares From {{{year}}}]]|[[Category:UO:Rares with unknown season]][[UO:Rares with unknown year|unknown]]}} }} {{#if: {{{year_end|}}} | – {{#switch: {{lc:{{padleft:|3|{{{month_end|}}} }} }} |
| 111 = January | | 111 = January | ||
| jan = January | | jan = January | ||
Line 97: | Line 97: | ||
|ShardOfTheDead2 = Shard Of The Dead II | |ShardOfTheDead2 = Shard Of The Dead II | ||
| #default = {{#var:shard}} | | #default = {{#var:shard}} | ||
− | }} }} {{#ifeq: {{Boolean|{{{ {{#var:shard}}|}}} }} | 1 | {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[Category:UO:{{#var:shardname}} Rares]][[UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}} }}{{#ifeq:{{#var:n}}|0| | + | }} }} {{#ifeq: {{Boolean|{{{ {{#var:shard}}|}}} }} | 1 | {{#vardefine:n|{{#expr:{{#var:n}}+1}}}}[[Category:UO:{{#var:shardname}} Rares]][[UO:{{#var:shardname}} Rares|{{#var:shardname}}]]<br/> |}} }}{{#ifeq:{{#var:n}}|0|[[Category:UO:Rares from unknown shards]][[UO:Rares from unknown shards|unknown]]|}} |
|- | |- | ||
| Quantity || {{#if:{{{quantity|}}}|{{#replace: {{{quantity}}}|*|∗}}|unknown[[Category:UO:Rares of unknown quantity]]}} | | Quantity || {{#if:{{{quantity|}}}|{{#replace: {{{quantity}}}|*|∗}}|unknown[[Category:UO:Rares of unknown quantity]]}} | ||
Line 209: | Line 209: | ||
| unknownCat = Rares of unknown legality | | unknownCat = Rares of unknown legality | ||
}} | }} | ||
− | |}{{#if:{{{season|}}}|[[Category:UO:Season {{{season}}} Rares]]}}{{#if:{{{year|}}}|[[Category:UO:{{{year}}} Rares]]}}<noinclude> | + | |}{{#if:{{{season|}}}|[[Category:UO:Season {{{season}}} Rares]]}}{{#if:{{{year|}}}|[[Category:UO:{{{year}}} Rares]]}}</includeonly><noinclude> |
<nowiki>{{InfoBox UORareItem | <nowiki>{{InfoBox UORareItem | ||
|name = Some Item | |name = Some Item |
Revision as of 01:02, 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.