Template:Store At A Glance: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (fixing type errors)
 
(115 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly><!-- Adds Incomplete template if non-optional information is missing-->{{#If:{{IfAND|{{IfOR|{{{Province|}}}|{{{Fest|}}}}}|{{IfOR|{{{Town|}}}|{{{Fest|}}}}}|{{IfOR|{{{MapNumber|}}}|{{{Fest|}}}}}|{{{Owner|}}}|{{{NumRooms|}}}|{{{Store Type|}}}}}||{{Incomplete|There is information missing from Store At A Glance}}{{NeedShopInfo}}}}</includeonly>
<includeonly><!-- Adds Incomplete template if non-optional information is missing-->{{#if:{{#show:{{FULLPAGENAME}}|?missing}}|{{incomplete}}|}}</includeonly>
{| cellpadding="2" style="float:right; width:300px; background:#BAD0EF; margin-left:1em; border-spacing:1px;"
{| cellpadding="2" style="float:right; width:300px; background:#BAD0EF; margin-left:1em; border-spacing:1px;"
|-
|-
! colspan="2" | {{#if:{{{image|}}}|[[{{{image}}}|280px]]<br />}}'''{{#If:{{{Store Name|}}}|{{{Store Name}}}|{{PAGENAME}}}}'''<includeonly>{{#if:{{{rev|}}}|[[review::{{{rev}}}| ]]|[[review::0| ]]}}</includeonly>
! colspan="2" | '''{{{Store Name}}}'''
|- 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" {{!}}Event{{!}}{{!}}align="center" {{!}}{{#switch:{{lc:{{{Fest}}}}}|y=[[Missing::Infobox entry on festival attendance|''Unknown'']][[festival shop::true| ]]|w=Rarely available[[festival shop::true| ]]|
{{#arraymaptemplate:{{{Fest}}}|Template:StoreFest}}[[festival shop::true| ]]}}|[[festival shop::false| ]]}}
{{#If:{{{Fest|}}}|{{!}}- bgcolor="#FFFFFF"}}
{{!}}- bgcolor="#FFFFFF"
{{#Ifeq:{{#If:{{{Province|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}}valign="top"{{!}}Province {{!}}{{!}}align="center" {{#If:{{{Fest|}}}||style="padding-top: 0.5em"}} {{!}} {{#if: {{{Province|}}} |[[{{{Province}}}]] | ''Unknown'' }}
{{#switch:{{lc:{{{Province}}}}} | n | -= | {{#if:{{{Fest|}}} | | {{!}} valign="top" {{!}} Province {{!}}{{!}} align="center" {{!}} {{#if: {{{Province|}}} | [[found in province::{{{Province}}}]] | {{#if: {{{MapNumber|}}} | [[found in province::{{FoundIn|RanikMap{{{MapNumber}}}|p}}]] | ''Unknown''}}}}}}}}
}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#switch:{{lc:{{{Justice}}}}} | n | -= | {{#If:{{{Fest|}}} | | {{!}} valign="top" {{!}} Justice {{!}}{{!}} align="center" {{!}} {{#if: {{{Justice|}}} | [[Justice|{{{Justice}}}]][[justice present::{{{Justice}}}|]] | <includeonly>[[missing::Infobox entry on justice|''Unknown'']]</includeonly>}}}}}}
{{#Ifeq:{{#If:{{{Town|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}}valign="top"{{!}}Town {{!}}{{!}} align="center" {{!}} {{#if: {{{Town|}}} |[[{{{Town}}}]] | ''Unknown''}}
}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#switch:{{lc:{{{Town}}}}} | n | -= | {{#If:{{{Fest|}}} | | {{!}} valign="top" {{!}} Town {{!}}{{!}} align="center" {{!}} {{#if: {{{Town|}}} | [[found in city::{{{Town}}}]] | <includeonly>[[missing::Infobox entry on town location|''Unknown'']]</includeonly>}}}}}}
{{#Ifeq:{{#If:{{{MapNumber|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}}valign="top"{{!}}Map {{!}}{{!}} align="center" {{!}} {{#if: {{{MapNumber|}}} | [[RanikMap{{{MapNumber}}} | Ranik's Map {{{MapNumber}}}]] | ''Unknown''}}
}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#switch:{{lc:{{{MapNumber}}}}} | n | -= | {{#If:{{{Fest|}}}| | {{!}}valign="top"{{!}} Map {{!}}{{!}} align="center" {{!}} {{#if: {{{MapNumber|}}} | {{rmap|{{{MapNumber}}}| Ranik's Map {{{MapNumber}}}}} | <includeonly>[[missing::Infobox entry on map location|''Unknown'']]</includeonly>}}}}}}
| valign="top"| Owner || align="center" | {{#if: {{{Owner|}}} | {{#ifeq: {{lc:{{{Owner}}}}}|n| ''None'' |[[{{{Owner}}}]]}} | ''Unknown''}}{{#if: {{{Owner2|}}} | &nbsp;and [[{{{Owner2}}}]] | }}
|- bgcolor="#FFFFFF"
{{#if:{{#switch:{{lc:{{{Owner}}}}}|n|-=1|}}||{{!}} valign="top"{{!}} Owner {{!}}{{!}} align="center" {{!}} {{#if: {{{Owner|}}} | {{#arraymap:{{{Owner}}}|,|x|[[storeowner is::x| ]][[x]]|,&ensp;}}| ''Unknown''}}}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
| 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|,|,&ensp;}} | ''Unknown''<includeonly>[[missing::Infobox entry on store type| ]]</includeonly>}}
| valign="top"| Store Type || align="center" |{{#If:{{{Store Type|}}}|[[:Category:{{{Store Type}}} Shops|{{{Store Type}}}]]|''Unknown''}}{{#if:{{{Store Type2|}}}|, [[:Category:{{{Store Type2}}} Shops|{{{Store Type2}}}]]}}{{#if:{{{Store Type3|}}}|, [[:Category:{{{Store Type3}}} Shops|{{{Store Type3}}}]]}}{{#if:{{{Store Type4|}}}|, [[:Category:{{{Store Type4}}} Shops|{{{Store Type4}}}]]}}{{#if:{{{Store Type5|}}}|, [[:Category:{{{Store Type5}}} Shops|{{{Store Type5}}}]]}}{{#if:{{{Store Type6|}}}|, [[:Category:{{{Store Type6}}} Shops|{{{Store Type6}}}]]}}{{#if:{{{Store Type7|}}}|, [[:Category:{{{Store Type7}}} Shops|{{{Store Type7}}}]]}}{{#if:{{{Store Type8|}}}|, [[:Category:{{{Store Type8}}} Shops|{{{Store Type8}}}]]}}{{#if:{{{Store Type9|}}}|, [[:Category:{{{Store Type9}}} Shops|{{{Store Type9}}}]]}}{{#if:{{{Store Type10|}}}|, [[:Category:{{{Store Type10}}} Shops|{{{Store Type10}}}]]}}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#If:{{IfOR|{{{restrict|}}}|{{{restrict2|}}}|{{{restrict3|}}}|{{{restrict4|}}}{{{levelres|}}}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{restrict|}}}|[[{{{restrict}}}]]}}{{#If:{{{restrict2|}}}|,&nbsp;[[{{{restrict2}}}]]}}{{#If:{{{restrict3|}}}|,&nbsp;[[{{{restrict3}}}]]}}{{#If:{{{restrict4|}}}|,&nbsp;[[{{{restrict4}}}]]}}{{#If:{{{levelres|}}}|{{#If:{{{restrict|}}}|,&nbsp;}}}}{{#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|}}}{{{levelres|}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{restrict|}}}|{{#arraymap:{{{restrict}}}|,|x|[[x]]|,&ensp;}}}}{{#If:{{{levelres|}}}|{{#If:{{{restrict|}}}|,&ensp;}}}}{{#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"
{{#ifeq:{{{Coin}}}|-|
|align="center" colspan="2"|<div style="font-size:16pt">This store only accepts {{#If:{{{Coin|}}}|{{#switch:{{lc:{{{Coin}}}}}|kronar|kronars = Kronars|lirum|lirums = Lirums|dokora|dokoras=Dokoras|Coin type error!}}|'''{{#switch:{{{Province}}}
{{!}}&nbsp;
|
{{!}}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|ltb|ltb point|ltb points=[[Estate Holder#Long Term Benefits|LTB point]]s|token|tokens=Tokens|ticket=tickets|scrip=[[Tickets command#Scrip|Grey Raven scrip]]|ring|rings|r=Amusement Pier rings|bloodscrip=[[Bloodscrip|Duskruin Bloodscrip]]|merit=Revenant Fang merits|seastars=[[Item:Taisidon seastar|Taisidon seastars]]|credit=[[Tickets command|Ulf'Hara credit]]|points=[[Tickets command|Mystery Cruise points]]|indicia=[[Tickets command|Droughtman's indicia]]|chronocoin=[[Tickets_command#Chronocoin|chronocoins]]|SimuCoin|SimuCoins|simucoin|simucoins=[[SimuCoins]]|Coin type error!<includeonly>[[missing::Infobox entry on currency used| ]]</includeonly>}}|'''{{#switch:{{#if: {{{Province|}}} | {{{Province}}} | {{FoundIn|RanikMap{{{MapNumber}}}|p}}}}
| Zoluren = Kronars
| Therengia = Lirums
| Therengia = Lirums
| Ilithi = Dokoras
| Ilithi = Dokoras
| Qi'Reshalia = Lirums
| Qi'Reshalia = Lirums
| Zoluren = Kronars
| Forfedhdar = Dokoras
| Forfedhdar = Dokoras
| ERROR!!!!<includeonly>[[missing::Infobox entry on coin type used| ]]</includeonly>
| <nowiki>ERROR!!!!</nowiki>
}}}}'''</div>
}}}}'''</div>}}
|}<!--Adds to categories-->
|}<!--Adds to categories-->
<includeonly>[[Category:Shops]]{{#If:{{{restrict|}}}|[[Category:Restricted Shops]]}}{{#If:{{{levelres|}}}|[[Category:Level-Restricted Shops]]}}{{#if:{{{Province|}}}|[[Category:{{{Province}}} Shops]]}}{{#if:{{{Town|}}}|[[Category:{{{Town}}} Shops]]}}{{#if:{{{Store Type|}}}|[[Category:{{{Store Type}}} Shops]]}}{{#if:{{{Store Type2|}}}|[[Category:{{{Store Type2}}} Shops]]}}{{#if:{{{Store Type3|}}}|[[Category:{{{Store Type3}}} Shops]]}}{{#if:{{{Store Type4|}}}|[[Category:{{{Store Type4}}} Shops]]}}{{#if:{{{Store Type5|}}}|[[Category:{{{Store Type5}}} Shops]]}}{{#if:{{{Store Type6|}}}|[[Category:{{{Store Type6}}} Shops]]}}{{#if:{{{Store Type7|}}}|[[Category:{{{Store Type7}}} Shops]]}}{{#if:{{{Store Type8|}}}|[[Category:{{{Store Type8}}} Shops]]}}{{#if:{{{Store Type9|}}}|[[Category:{{{Store Type9}}} Shops]]}}{{#if:{{{Store Type10|}}}|[[Category:{{{Store Type10}}} Shops]]}}{{#If:{{{Fest|}}}|[[Category:Merchants]]{{#If:{{IfOR|{{#Ifeq:{{lc:{{{Fest}}}}}|y|1}}|{{#Ifeq:{{lc:{{{Fest}}}}}|w|1}}}}||[[Category:{{{Fest}}} Shop]]}}}}</includeonly><noinclude>
<includeonly>[[Category:Shops]][[page type is::store| ]]{{#If:{{{restrict|}}}|[[Category:Restricted shops]]}}{{#If:{{{levelres|}}}|[[Category:Level-restricted shops]]}}{{#if:{{{Province|}}}|[[Category:{{{Province}}} shops]]|{{#if: {{{MapNumber|}}}|[[Category:{{FoundIn|RanikMap{{{MapNumber}}}|p}} shops]]}}}}{{#if:{{#ifeq:{{lc:{{{Town}}}}}|n|1|}}{{#ifeq:{{lc:{{{Town}}}}}|-|1|}}||{{#if:{{{Town|}}}|[[Category:{{{Town}}} shops]]}}}}{{#If:{{{Fest|}}}|[[Category:Merchants]]}}</includeonly><noinclude>{{-}}
==Usage Documentaton==
==Usage Documentaton==
{| class="wikitable" border=1 cellpadding=3
!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. Will populate on it's own if a map number is provided.
|-
|Town||-/(town)||The town which the shop is in, put "n" to disable, or leave blank if festival
|-
|Justice||none, city, clan, other||
|-
|MapNumber|| ||Which of Ranik's maps the shop is on, or blank if festival
|-
|Owner||-/(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||
[Guild] / [Race] / Alchemy / Armor / Barber / Boat / Cambrinth / Casino / Clothing / Container / Cosmetics / Crafting / Drink / Dye / Embroidery / Engraving / Estate Holder / Face Painting / Festival / Fishing Supply / Fletching / Florist / Food / Forging Supply / Furrier / Game / Gem / General / Heraldry / Herb / Hider / Horse / Housing / Jewelry / Juggling / Locksmithing / Magic / MAMAS / Map / Miscellaneous / Music / Origami / Pawn / Perfume / Pet / Rare Materials / Repair / Shield / Spellbook / Tack / Tanning / Tattoo / Tobacco / Toy / Trinket / Vault Furniture / Weapon / Wedding
|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 / [[Estate Holder#Long Term Benefits|ltb]] / Bloodscrip / / credit / merit / rings / scrip / seastars / ticket / tokens / points / SimuCoins||For shops with a different currency than the province, festival or rare merchants, what currency they accept. (optional)
|}

Please leave fields '''BLANK''' if they are unknown.

Copy and paste the following to your page:
Copy and paste the following to your page:
<pre>
<pre>
{{Store At A Glance
{{Store At A Glance
|Store Name =
|Store Name =
|Province =
|Province =
|Town =
|Town =
|MapNumber =
|Justice =
|Owner = (if none, put n)
|MapNumber =
|Owner2 = *
|Owner =
|NumRooms =
|NumRooms =
|restrict =
|restrict = * (is at least part of it restricted by race, guild or level? if so, list it, or put level for level restricted)
|restrict2 = *
|levelres =
|Store Type =
|levelres = * (is at least part of it restricted to a minimum level, either of a specific guild or just in general? if so list it as a number)
|Store Type =
|Fest =
|Store Type2 = *
|Coin =
.....
|Store Type10 = *
|Fest = * (If this is a festival shop or a merchant that is not always available, put the festival name, or if it
|Fest2 = * is unknown, put "y". If they are a wandering merchant, put W.
|Fest3 = * The additional slots are for use when the same merchant shows up with the *same wares* at multiple festivals)
|Fest4 = *
|Coin = (For festival or rare merchants, what currency they accept)
}}
}}
</pre>
</pre>


[[Category:Shop templates|{{PAGENAME}}]]
Please delete those fields marked with &#42; if they are not valid.<br>
Please leave other fields '''BLANK''' if they are unknown.

[[Category:Shop Templates]]
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 16:24, 2 November 2022

Store At A Glance
Province Unknown
Justice
Town
Map
Owner 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. Will populate on it's own if a map number is provided.
Town -/(town) The town which the shop is in, put "n" to disable, or leave blank if festival
Justice none, city, clan, other
MapNumber Which of Ranik's maps the shop is on, or blank if festival
Owner -/(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

[Guild] / [Race] / Alchemy / Armor / Barber / Boat / Cambrinth / Casino / Clothing / Container / Cosmetics / Crafting / Drink / Dye / Embroidery / Engraving / Estate Holder / Face Painting / Festival / Fishing Supply / Fletching / Florist / Food / Forging Supply / Furrier / Game / Gem / General / Heraldry / Herb / Hider / Horse / Housing / Jewelry / Juggling / Locksmithing / Magic / MAMAS / Map / Miscellaneous / Music / Origami / Pawn / Perfume / Pet / Rare Materials / Repair / Shield / Spellbook / Tack / Tanning / Tattoo / Tobacco / Toy / Trinket / Vault Furniture / Weapon / Wedding

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 / ltb / Bloodscrip / / credit / merit / rings / scrip / seastars / ticket / tokens / points / SimuCoins For shops with a different currency than the province, festival or rare merchants, what currency they accept. (optional)

Please leave fields BLANK if they are unknown.

Copy and paste the following to your page:

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