Template:Store At A Glance: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(added semantic wiki support)
(test for addition of #arraymaptemplate function)
Line 22: Line 22:
| valign="top"| # of Rooms || align="center" | {{#if: {{{NumRooms|}}} | {{{NumRooms}}} | ''Unknown''}}
| valign="top"| # of Rooms || align="center" | {{#if: {{{NumRooms|}}} | {{{NumRooms}}} | ''Unknown''}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| valign="top"| Store Type || align="center" |{{#If:{{{Store Type|}}}|{{#arraymaptemplate:{{{Store Type}}}|Template:StoreType|,|, }}
| valign="top"| Store Type || align="center" |{{#If:{{{Store Type|}}}|[[shop type is::Category:{{{Store Type}}} Shops|{{{Store Type}}}]]|''Unknown''}}{{#if:{{{Store Type2|}}}|, [[shop type is::Category:{{{Store Type2}}} Shops|{{{Store Type2}}}]]}}{{#if:{{{Store Type3|}}}|, [[shop type is::Category:{{{Store Type3}}} Shops|{{{Store Type3}}}]]}}{{#if:{{{Store Type4|}}}|, [[shop type is::Category:{{{Store Type4}}} Shops|{{{Store Type4}}}]]}}{{#if:{{{Store Type5|}}}|, [[shop type is::Category:{{{Store Type5}}} Shops|{{{Store Type5}}}]]}}{{#if:{{{Store Type6|}}}|, [[shop type is::Category:{{{Store Type6}}} Shops|{{{Store Type6}}}]]}}{{#if:{{{Store Type7|}}}|, [[shop type is::Category:{{{Store Type7}}} Shops|{{{Store Type7}}}]]}}{{#if:{{{Store Type8|}}}|, [[shop type is::Category:{{{Store Type8}}} Shops|{{{Store Type8}}}]]}}{{#if:{{{Store Type9|}}}|, [[shop type is::Category:{{{Store Type9}}} Shops|{{{Store Type9}}}]]}}{{#if:{{{Store Type10|}}}|, [[shop type is::Category:{{{Store Type10}}} Shops|{{{Store Type10}}}]]}}{{#if:{{{Store Type11|}}}|, [[shop type is::Category:{{{Store Type11}}} Shops|{{{Store Type11}}}]]}}{{#if:{{{Store Type12|}}}|, [[shop type is::Category:{{{Store Type12}}} Shops|{{{Store Type12}}}]]}}{{#if:{{{Store Type13|}}}|, [[shop type is::Category:{{{Store Type13}}} Shops|{{{Store Type13}}}]]}}{{#if:{{{Store Type14|}}}|, [[shop type is::Category:{{{Store Type14}}} Shops|{{{Store Type14}}}]]}}{{#if:{{{Store Type15|}}}|, [[shop type is::Category:{{{Store Type15}}} Shops|{{{Store Type15}}}]]}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#If:{{{restrict|}}}{{{restrict2|}}}{{{restrict3|}}}{{{restrict4|}}}{{{levelres|}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{restrict|}}}|[[{{{restrict}}}]]}}{{#If:{{{restrict2|}}}|, [[{{{restrict2}}}]]}}{{#If:{{{restrict3|}}}|, [[{{{restrict3}}}]]}}{{#If:{{{restrict4|}}}|, [[{{{restrict4}}}]]}}{{#If:{{{levelres|}}}|{{#If:{{{restrict|}}}|, }}}}{{#If:{{{levelres|}}}|{{#switch:{{{levelres}}}|1|21|31|41|51|61|71|81|91|101|121|131|141={{{levelres}}}st circle|2|22|32|42|52|62|72|82|92|102|122|132|142={{{levelres}}}nd circle|1|23|33|43|53|63|73|83|93|103|123|133|143={{{levelres}}}rd circle|{{{levelres}}}th circle}}}}}}
{{#If:{{{restrict|}}}{{{restrict2|}}}{{{restrict3|}}}{{{restrict4|}}}{{{levelres|}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{restrict|}}}|[[{{{restrict}}}]]}}{{#If:{{{restrict2|}}}|, [[{{{restrict2}}}]]}}{{#If:{{{restrict3|}}}|, [[{{{restrict3}}}]]}}{{#If:{{{restrict4|}}}|, [[{{{restrict4}}}]]}}{{#If:{{{levelres|}}}|{{#If:{{{restrict|}}}|, }}}}{{#If:{{{levelres|}}}|{{#switch:{{{levelres}}}|1|21|31|41|51|61|71|81|91|101|121|131|141={{{levelres}}}st circle|2|22|32|42|52|62|72|82|92|102|122|132|142={{{levelres}}}nd circle|1|23|33|43|53|63|73|83|93|103|123|133|143={{{levelres}}}rd circle|{{{levelres}}}th circle}}}}}}

Revision as of 16:05, 21 August 2008

Store At A Glance
Province Unknown
Town Unknown
Map Unknown
Owner Unknown
# of Rooms Unknown
Store Type {{#If:|[[Category:{{{Store Type}}} shops]][[:Category:{{{Store Type}}} shops|{{{Store Type}}} shops]]
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 The town which the shop is in, 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 owner, 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
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
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".
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         =
|restrict2        =
|restrict3        =
|restrict4        =
|levelres         =
|Store Type       =
|Store Type2      =
.....
|Store Type15     =
|Fest             =
|Fest2            =
|Fest3            =
|Fest4            =
|Coin             =
}}