Template:Store At A Glance: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(additional tests for #arraymap)
(adding festival and owner #arraymap functions, plus added disabling value for Town)
Line 4: Line 4:
! colspan="2" | '''{{#If:{{{Store Name|}}}|{{{Store Name}}}|{{PAGENAME}}}}'''
! colspan="2" | '''{{#If:{{{Store Name|}}}|{{{Store Name}}}|{{PAGENAME}}}}'''
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#if:{{{Fest|}}}|{{!}} valign="center" {{!}}Festival{{!}}{{!}}align="center" {{!}}{{#switch:{{lc:{{{Fest}}}}}|y=''Unknown''|w=Rarely available|[[{{{Fest}}}]]{{#If:{{{Fest2|}}}|<br>[[{{{Fest2}}}]]}}{{#If:{{{Fest3|}}}|<br>[[{{{Fest3}}}]]}}{{#If:{{{Fest4|}}}|<br>[[{{{Fest4}}}]]}}}}}}
{{#if:{{{Fest|}}}|{{!}} valign="center" {{!}}Festival{{!}}{{!}}align="center" {{!}}{{#switch:{{lc:{{{Fest}}}}}|y=''Unknown''|w=Rarely available|
{{#arraymaptemplate:{{{Fest}}}|Template:StoreFest|,|,&ensp;}}}}}}
{{!}}- bgcolor="#FFFFFF"
{{!}}- bgcolor="#FFFFFF"
{{#Ifeq:{{#If:{{{Province|}}}|1|0}}{{#if:{{{Fest|}}}|1|0}}|01||
{{#Ifeq:{{#If:{{{Province|}}}|1|0}}{{#if:{{{Fest|}}}|1|0}}|01||
Line 10: Line 11:
}}
}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#Ifeq:{{#If:{{{Town|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{#ifeq:{{lc:{{{Town}}}}}|n||{{#Ifeq:{{#If:{{{Town|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}}valign="top"{{!}}Town {{!}}{{!}} align="center" {{!}} {{#if: {{{Town|}}} |[[{{{Town}}}]] | ''Unknown''}}
{{!}}valign="top"{{!}}Town {{!}}{{!}} align="center" {{!}} {{#if: {{{Town|}}} |[[{{{Town}}}]] | ''Unknown''}}}}
}}
}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
Line 18: Line 19:
}}
}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#ifeq:{{lc:{{{Owner}}}}}|n||{{!}} valign="top"{{!}} Owner {{!}}{{!}} align="center" {{!}} {{#if: {{{Owner|}}} | {{#ifeq: {{lc:{{{Owner}}}}}|n| ''None'' |[[{{{Owner}}}]]}} | ''Unknown''}}{{#if: {{{Owner2|}}} | {{#if:{{{Owner3|}}}| &nbsp;, |&nbsp;and}} [[{{{Owner2}}}]] | }}{{#if: {{{Owner3|}}} | &nbsp;and [[{{{Owner3}}}]] | }}}}
{{#ifeq:{{lc:{{{Owner}}}}}|n||{{!}} valign="top"{{!}} Owner {{!}}{{!}} align="center" {{!}} {{#if: {{{Owner|}}} | {{#arraymap:{{{Owner}}}|,|x|[[x]]|,&ensp;}}}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| # of Rooms || align="center" | {{#if: {{{NumRooms|}}} | {{{NumRooms}}} | ''Unknown''}}
| valign="top"| # of Rooms || align="center" | {{#if: {{{NumRooms|}}} | {{{NumRooms}}} | ''Unknown''}}
Line 42: Line 43:
|Province|||Zoluren/Therengia/Ilithi/Qi'Reshalia/Forfedhdar||Province of the shop, unless it's a festival shop then leave it blank
|Province|||Zoluren/Therengia/Ilithi/Qi'Reshalia/Forfedhdar||Province of the shop, unless it's a festival shop then leave it blank
|-
|-
|Town|| ||The town which the shop is in, or leave blank if festival
|Town||(town)/n||The town which the shop is in, put "n" to disable, or leave blank if festival
|-
|-
|MapNumber|| ||Which of Ranik's maps the shop is on, or blank if festival
|MapNumber|| ||Which of Ranik's maps the shop is on, or blank if festival
|-
|-
|Owner#||n/(owner)||List the NPC owner, or put "n" if none.
|Owner||n/(owner)||List the NPC owners, with a single comma and no spaces between multiple ones, or put "n" if none.
|-
|-
|NumRooms||#||The number of rooms in the shop
|NumRooms||#||The number of rooms in the shop
|-
|-
|restrict#||(guild)/(race)/(sect)/level||Is at least part of the store restricted by race, guild, sect, or level? List it, or leave blank and fill in the next variable for level restricted
|restrict||(guild)/(race)/(sect)/level||Is at least part of the store restricted by race, guild, sect, or level? List it, or leave blank and fill in the next variable for level restricted
|-
|-
|levelres||#||If there's a level restriction, list it
|levelres||#||If there's a level restriction, list it. If multiple types, list each with a single comma between each, without any spaces.
|-
|-
|Store Type#||Alchemy/Armor/Barber/Casino/Clothing/Cosmetics/Drink/Dye/Embroidery/<br>Engraving/Face Painting/Festival/Fishing Supply/Fletching/Florist/<br>Food/Forging Supply/Gem/General/(guild)/Heraldry/Herb/Horse/Housing/<br>Jewelry/Locksmithing/MAMAS/Magical Items/Map/Miscellaneous/Music/<br>Origami/Perfume/Pet/Repair/Shield/Tack/Tanning/Tattoo/Tobacco/<br>Trinket/Weapon||List the types of items sold, for category inclusion
|Store Type||Alchemy/Armor/Barber/Casino/Clothing/Cosmetics/Drink/Dye/Embroidery/<br>Engraving/Face Painting/Festival/Fishing Supply/Fletching/Florist/<br>Food/Forging Supply/Gem/General/(guild)/Heraldry/Herb/Horse/Housing/<br>Jewelry/Locksmithing/MAMAS/Magical Items/Map/Miscellaneous/Music/<br>Origami/Perfume/Pet/Repair/Shield/Tack/Tanning/Tattoo/Tobacco/<br>Trinket/Weapon||List the types of items sold, for category inclusion. If multiple types, list each with a single comma between each, without any spaces.
|-
|-
|Fest#||y/w/(festival)||If this is a festival shop or a merchant that is not always available, put the festival name, or if it is unknown, put "y". If this incarnation is neither associated with a store nor a specific festival, put "w".
|Fest||y/w/(festival)||If this is a festival shop or a merchant that is not always available, put the festival name, or if it is unknown, put "y". If this incarnation is neither associated with a store nor a specific festival, put "w". If multiple festivals, list each with a single comma between each, without any spaces.
|-
|-
|Coin||Kronars/Lirums/Dokoras||For festival or rare merchants, what currency they accept
|Coin||Kronars/Lirums/Dokoras||For festival or rare merchants, what currency they accept.
|}
|}


Line 74: Line 75:
|NumRooms =
|NumRooms =
|restrict =
|restrict =
|restrict2 =
|restrict3 =
|restrict4 =
|levelres =
|levelres =
|Store Type =
|Store Type =
|Store Type2 =
.....
|Store Type15 =
|Fest =
|Fest =
|Fest2 =
|Fest3 =
|Fest4 =
|Coin =
|Coin =
}}
}}

Revision as of 16:44, 21 August 2008

{{#ifeq:{{{owner}}}|n||| valign="top"| Owner || align="center" |
Store At A Glance
Province Unknown
Town Unknown
Map Unknown
# of Rooms Unknown
Store Type Unknown
This store only accepts ERROR!!!!

Usage Documentaton

Variable Supported Values Usage
Province Zoluren/Therengia/Ilithi/Qi'Reshalia/Forfedhdar Province of the shop, unless it's a festival shop then leave it blank
Town (town)/n The town which the shop is in, put "n" to disable, or leave blank if festival
MapNumber Which of Ranik's maps the shop is on, or blank if festival
Owner n/(owner) List the NPC owners, with a single comma and no spaces between multiple ones, or put "n" if none.
NumRooms # The number of rooms in the shop
restrict (guild)/(race)/(sect)/level Is at least part of the store restricted by race, guild, sect, or level? List it, or leave blank and fill in the next variable for level restricted
levelres # If there's a level restriction, list it. If multiple types, list each with a single comma between each, without any spaces.
Store Type Alchemy/Armor/Barber/Casino/Clothing/Cosmetics/Drink/Dye/Embroidery/
Engraving/Face Painting/Festival/Fishing Supply/Fletching/Florist/
Food/Forging Supply/Gem/General/(guild)/Heraldry/Herb/Horse/Housing/
Jewelry/Locksmithing/MAMAS/Magical Items/Map/Miscellaneous/Music/
Origami/Perfume/Pet/Repair/Shield/Tack/Tanning/Tattoo/Tobacco/
Trinket/Weapon
List the types of items sold, for category inclusion. If multiple types, list each with a single comma between each, without any spaces.
Fest y/w/(festival) If this is a festival shop or a merchant that is not always available, put the festival name, or if it is unknown, put "y". If this incarnation is neither associated with a store nor a specific festival, put "w". If multiple festivals, list each with a single comma between each, without any spaces.
Coin Kronars/Lirums/Dokoras For festival or rare merchants, what currency they accept.

Please leave fields BLANK if they are unknown.

Copy and paste the following to your page:

{{Store At A Glance
|Store Name       =
|Province         =
|Town             =
|MapNumber        =
|Owner            =
|Owner2           =
|NumRooms         =
|restrict         =
|levelres         =
|Store Type       =
|Fest             =
|Coin             =
}}