Template:Store At A Glance: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(adding in arraymap handling for shop restrictions) |
||
Line 25: | Line 25: | ||
| valign="top"| Store Type || align="center" |{{#If:{{{Store Type|}}}|{{#arraymaptemplate:{{{Store Type}}}|Template:StoreType|,|, }} | ''Unknown''}} |
| valign="top"| Store Type || align="center" |{{#If:{{{Store Type|}}}|{{#arraymaptemplate:{{{Store Type}}}|Template:StoreType|,|, }} | ''Unknown''}} |
||
|- bgcolor="#FFFFFF" |
|- bgcolor="#FFFFFF" |
||
{{#If:{{{restrict |
{{#If:{{{restrict|}}}{{{levelres|}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{restrict|}}}|{{#arraymap:{{{restrict}}}|,|x|[[x]]|, }}}}{{#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}}}}}} |
||
|-valign="center" |
|-valign="center" |
||
|align="center" colspan="2"|<div style="font-size:16pt">This store only accepts {{#If:{{{Coin|}}}|{{#switch:{{lc:{{{Coin}}}}}|k|kronar|kronars = Kronars|l|lirum|lirums = Lirums|d|dokora|dokoras=Dokoras|Coin type error!}}|'''{{#switch:{{{Province}}} |
|align="center" colspan="2"|<div style="font-size:16pt">This store only accepts {{#If:{{{Coin|}}}|{{#switch:{{lc:{{{Coin}}}}}|k|kronar|kronars = Kronars|l|lirum|lirums = Lirums|d|dokora|dokoras=Dokoras|Coin type error!}}|'''{{#switch:{{{Province}}} |
||
Line 36: | Line 36: | ||
}}}}'''</div> |
}}}}'''</div> |
||
|}<!--Adds to categories--> |
|}<!--Adds to categories--> |
||
<includeonly>[[Category:Shops]][[page type is::store| ]]{{#If:{{{restrict|}}}|[[Category:Restricted Shops]]}}{{#If:{{{levelres|}}}|[[Category:Level-Restricted Shops]]}}{{#if:{{{Province|}}}|[[Category:{{{Province}}} Shops]]}}{{# |
<includeonly>[[Category:Shops]][[page type is::store| ]]{{#If:{{{restrict|}}}|[[Category:Restricted Shops]]}}{{#If:{{{levelres|}}}|[[Category:Level-Restricted Shops]]}}{{#if:{{{Province|}}}|[[Category:{{{Province}}} Shops]]}}{{#ifeq:{{lc:{{{Town}}}}}|n||{{#if:{{{Town|}}}|[[Category:{{{Town}}} Shops]]}}}}{{#If:{{{Fest|}}}|[[Category:Merchants]]}}</includeonly><noinclude> |
||
==Usage Documentaton== |
==Usage Documentaton== |
||
{| border=1 cellpadding=3 |
{| border=1 cellpadding=3 |
||
Line 55: | Line 55: | ||
|levelres||#||If there's a level restriction, list it. If multiple types, list each with a single comma between each, without any spaces. |
|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/ > |
|||
|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. |
|||
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". If multiple festivals, 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. |
||
Line 72: | Line 77: | ||
|MapNumber = |
|MapNumber = |
||
|Owner = |
|Owner = |
||
|Owner2 = |
|||
|NumRooms = |
|NumRooms = |
||
|restrict = |
|restrict = |
||
Line 82: | Line 86: | ||
</pre> |
</pre> |
||
[[Category:Shop Templates]] |
[[Category:Shop Templates|{{PAGENAME}}]] |
||
[[Category:Templates|{{PAGENAME}}]] |
[[Category:Templates|{{PAGENAME}}]] |
||
</noinclude> |
</noinclude> |
Revision as of 17:02, 21 August 2008
Store At A Glance | |
---|---|
Province | Unknown |
Town | Unknown |
Map | Unknown |
Owner | |
# 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/ | |
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 = |NumRooms = |restrict = |levelres = |Store Type = |Fest = |Coin = }}