Template:Town shops: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{#switch: {{{type|}}} | cart = The {{lowercase|'''{{PAGENAME}}'''}} | '''{{PAGENAME}}'''}} is {{#switch: {{{type|}}} | cart = a wandering cart | eatery = an eatery | gemshop = a [[gemshop]] | inn = an [[inn]] | pawnshop = a [[pawnshop]] | a shop}} in {{#if: {{{location|}}} | {{#switch: {{{article|}}} | Yes = the |}} [[shop location::{{{location}}}]], around  }}{{#switch: {{{realm|}}} | Flotilla = the  |}}[[realm::{{{realm}}}]]{{#if: {{{location|}}} | , }} that {{#switch: {{{specialtyshop|}}} | yes = specializes in | {{#switch: {{{type|}}} | gemshop = purchases gems and jewelry | pawnshop = purchases and resells | sells}}}}{{#switch: {{{type|}}} | pawnshop =  armor, weapons, magic items, and miscellaneous goods | gemshop = {{#switch: {{{wares|}}} | jewelry = , resells pawned jewelry items, and sells jewelry |  and resells pawned jewelry items}} | {{{type|}}} = {{#switch: {{{wares|}}} | brewing supplies =  coffee and/or tea brewing supplies | fletching materials =  archery supplies and/or fletching materials | forging materials =  forging glyphs and materials | gifts =  gifts, gift giving supplies, and/or souvenirs | groceries =  groceries and/or cooking supplies | herbs =  healing herbs | magic supplies =  magical supplies, components, and/or alchemy tools | ships =  ships, ship supplies, and/or upgrades for [[Open Sea Adventures]] | {{{wares|}}} =  {{{wares|}}} |}} |}}{{#if: {{{addwares|}}} |  and {{#switch: {{{addwares|}}} | alchemy reagents = purchases and resells alchemical reagents | brewing supplies = coffee and/or tea brewing supplies | fletching materials = archery supplies and/or fletching materials | forging materials = forging glyphs and materials | gifts =  gifts, gift giving supplies, and/or souvenirs | groceries = groceries and/or cooking supplies | herbs = healing herbs | magic supplies = magical supplies, components, and/or alchemy tools | ship upgrades = ship supplies and/or customizations for [[Open Sea Adventures]]| {{{addwares|}}} = {{{addwares|}}} |}} |}}{{#if: {{{specialtyshop|}}} | {{{specialty|}}} }}{{#if: {{{wares|}}} | {{#if: {{{specialty|}}} | {{#if: {{{addwares|}}} | , and |  and }} specializes in {{{specialty}}} }} |}}. {{{addinfo|}}}
{{#switch: {{{type|}}} | cart = The {{lowercase|'''{{PAGENAME}}'''}} | '''{{PAGENAME}}'''}} is {{#switch: {{{type|}}} | cart = a wandering cart | eatery = an eatery | gemshop = a [[gemshop]] | inn = an [[inn]] | pawnshop = a [[pawnshop]] | a shop}} in {{#if: {{{location|}}} | {{#switch: {{{article|}}} | Yes = the |}} [[shop location::{{{location}}}]], around  }}{{#switch: {{{realm|}}} | Flotilla = the  |}}[[realm::{{{realm}}}]]{{#if: {{{location|}}} | , }} that {{#switch: {{{specialtyshop|}}} | yes = specializes in | {{#switch: {{{type|}}} | gemshop = purchases gems and jewelry | pawnshop = purchases and resells | sells}}}}{{#switch: {{{type|}}} | pawnshop =  armor, weapons, magic items, and miscellaneous goods | gemshop = {{#switch: {{{wares|}}} | jewelry = , resells pawned jewelry items, and sells jewelry |  and resells pawned jewelry items}} | {{{type|}}} = {{#switch: {{{wares|}}} | brewing supplies =  coffee and/or tea brewing supplies | fletching materials =  archery supplies and/or fletching materials | forging materials =  forging glyphs and materials | gifts =  gifts, gift giving supplies, and/or souvenirs | groceries =  groceries and/or cooking supplies | herbs =  healing herbs | magic supplies =  magical supplies, components, and/or alchemy tools | ships =  ships, ship supplies, and/or upgrades for [[Open Sea Adventures]] | {{{wares|}}} =  {{{wares|}}} |}} |}}{{#if: {{{addwares|}}} |  and {{#switch: {{{addwares|}}} | alchemy reagents = purchases and resells alchemical reagents | brewing supplies = coffee and/or tea brewing supplies | fletching materials = archery supplies and/or fletching materials | forging materials = forging glyphs and materials | gifts =  gifts, gift giving supplies, and/or souvenirs | groceries = groceries and/or cooking supplies | herbs = healing herbs | magic supplies = magical supplies, components, and/or alchemy tools | ship upgrades = ship supplies and/or customizations for [[Open Sea Adventures]]| {{{addwares|}}} = {{{addwares|}}} |}} |}}{{#if: {{{specialtyshop|}}} | {{{specialty|}}} }}{{#if: {{{wares|}}} | {{#if: {{{specialty|}}} | {{#if: {{{addwares|}}} | , and |  and }} specializes in {{{specialty}}} }} |}}. {{{addinfo|}}}


<div style="vertical-align: top">{{#if: {{{proprietor|}}} | The proprietor is {{#if: {{{npcarticle|}}} | {{{npcarticle}}}&nbsp; |}}{{#if: {{{npc|}}} | [[{{{proprietor}}}]] | {{{proprietor}}} |}}{{#if: {{{propdesignnpc|}}} | , who offers specialty designs. | . |}} {{#if: {{{propinfo|}}} | {{{propinfo}}} |}} |}} {{#if: {{{designnpc|}}} | Specialty designs are available from {{#if: {{{designnpcart|}}} | {{{designnpcart}}}&nbsp; |}}[[{{{designnpc}}}]]. |}} </div>
<div style="vertical-align: top">{{#if: {{{proprietor|}}} | The proprietor is {{#if: {{{npcarticle|}}} | {{{npcarticle}}}&nbsp; |}}{{#if: {{{npc|}}} | [[{{{proprietor}}}]] | {{{proprietor}}} |}}{{#if: {{{propdesignnpc|}}} | , who offers specialty designs. | {{#if: {{{keepsakenpc|}}} | , who offers keepsakes crafted from an item presented to them|}}. |}} {{#if: {{{propinfo|}}} | {{{propinfo}}} |}} |}} {{#if: {{{designnpc|}}} | Specialty designs are available from {{#if: {{{designnpcart|}}} | {{{designnpcart}}}&nbsp; |}}[[{{{designnpc}}}]]. |}} </div>
{{#if: {{{multiroom|}}} | {{#switch: {{{multiroom|}}} | yes = <h2>{{{roomname|}}}</h2> |}} |}}
{{#if: {{{multiroom|}}} | {{#switch: {{{multiroom|}}} | yes = <h2>{{{roomname|}}}</h2> |}} |}}
{{RoomDescription
{{RoomDescription
Line 23: Line 23:
<pre{{log2}}>{{:{{{proprietor}}}}}</pre> |}} |}}</div>
<pre{{log2}}>{{:{{{proprietor}}}}}</pre> |}} |}}</div>
<div style="vertical-align: top">{{#if: {{{designnpc|}}} | {{#if: {{{multiroom|}}} | <h3>[[Specialty design NPC]]</h3> | <h2>[[Specialty design NPC]]</h2> |}}
<div style="vertical-align: top">{{#if: {{{designnpc|}}} | {{#if: {{{multiroom|}}} | <h3>[[Specialty design NPC]]</h3> | <h2>[[Specialty design NPC]]</h2> |}}
<pre{{log2}}>{{:{{{designnpc}}}}}</pre> |}}</div><noinclude>
<pre{{log2}}>{{:{{{designnpc}}}}}</pre> |}}</div>
<div style="vertical-align: top">{{#if: {{{keepsakenpc|}}} | {{#if: {{{multiroom|}}} | <h3>[[Keepsake NPC]]</h3> | <h2>[[Keepsake NPC]]</h2> |}}
{{:{{{keepsakenpc}}}}} |}}</div><noinclude>


</noinclude><includeonly>[[townshop-template-is::True| ]] [[shop type::{{{type|}}}|]] {{#switch: {{{type|}}} | pawnshop = [[shop wares::pawned merchandise| ]] | gemshop = [[shop wares::pawned jewelry| ]] |}} [[shop wares::{{{wares|}}}|]] [[shop wares::{{{addwares|}}}|]] {{#switch: {{{specialtyshop|}}} | yes = [[shop wares::specialty| ]] |}} {{#if: {{{backroom|}}} | [[has backroom::true| ]] |}} {{#if: {{{specialty|}}} | [[shop specialty::{{{specialty|}}} |]] |}} {{#if: {{{location|}}} | [[shop location::{{{location|}}} |]] | [[shop location::{{{realm|}}} |]]}} {{#if: {{{propdesignnpc|}}} | [[shop design npc::{{{proprietor}}}| ]] |}} {{#if: {{{designnpc|}}} | [[shop design npc::{{{designnpc|}}}| ]] |}} [[Category:Town shops]] [[Category:{{{realm}}} shops]] {{#if: {{{location|}}} | [[Category:{{{location|}}} shops]]|}} {{#switch: {{{type|}}} | cart = [[Category:Wandering carts]] | eatery = [[Category:Eateries]] | gemshop = [[Category:Gemshops]] | inn = [[Category:Inns]] | pawnshop = [[Category:Pawnshops]] |}} {{#if: {{{specialtyshop|}}} | [[Category:Specialty shops]] |}} {{#if: {{{wares|}}} | {{#switch: {{{wares|}}} | beverages = [[Category:Beverage shops]] | brewing supplies = [[Category:Brewing shops]] | clerical supplies = [[Category:Cleric shops]] | cobbling materials = [[Category:Cobbling shops]] | dyes = [[Category:Dye shops]] | fishing supplies = [[Category:Fishing shops]] | fletching materials = [[Category:Fletcher shops]] | floral items = [[Category:Florists]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | gifts = [[Category:Gift shops]] | groceries = [[Category:Grocers]] | herbs = [[Category:Herb shops]] | instruments = [[Category:Instrument shops]] | locksmith supplies = [[Category:Locksmith shops]] | magic supplies = [[Category:Magic shops]] | mailing supplies = [[Category:Post offices]] | player shop furnishings = [[Category:Player shop furnishings]] | premium home furnishings = [[Category:Premium home furnishing shops]][[Category: {{{realm}}} premium home furnishing shops]] | ships = [[Category:Ship shops]] | weapons = [[Category:Weapon shops]] | {{{wares|}}} = [[Category:{{{wares}}} shops]] |}} |}}{{#if: {{{addwares|}}} | {{#switch: {{{addwares|}}} | alchemy reagents = [[Category:Alchemy consignment shops]] | beverages = [[Category:Beverage shops]] | brewing supplies = [[Category:Brewing shops]] | clerical supplies = [[Category:Cleric shops]] | cobbling materials = [[Category:Cobbling shops]] | dyes = [[Category:Dye shops]] | fishing supplies = [[Category:Fishing shops]] | fletching materials = [[Category:Fletcher shops]] | floral items = [[Category:Florists]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | gifts = [[Category:Gift shops]] | groceries = [[Category:Grocers]] | herbs = [[Category:Herb shops]] | instruments = [[Category:Instrument shops]] | locksmith supplies = [[Category:Locksmith shops]] | magic supplies = [[Category:Magic shops]] | mailing supplies = [[Category:Post offices]] | player shop furnishings = [[Category:Player shop furnishings]] | premium home furnishings = [[Category:Premium home furnishing shops]][[Category: {{{realm}}} premium home furnishing shops]] | ships = [[Category:Ship shops]] | weapons = [[Category:Weapon shops]] | {{{addwares|}}} = [[Category:{{{addwares}}} shops]] |}} |}}{{#if: {{{propdesignnpc|}}} | [[Category:Specialty design shops]] |}} {{#if: {{{designnpc|}}} | [[Category:Specialty design shops]] |}}</includeonly><noinclude>
</noinclude><includeonly>[[townshop-template-is::True| ]] [[shop type::{{{type|}}}|]] {{#switch: {{{type|}}} | pawnshop = [[shop wares::pawned merchandise| ]] | gemshop = [[shop wares::pawned jewelry| ]] |}} [[shop wares::{{{wares|}}}|]] [[shop wares::{{{addwares|}}}|]] {{#switch: {{{specialtyshop|}}} | yes = [[shop wares::specialty| ]] |}} {{#if: {{{backroom|}}} | [[has backroom::true| ]] |}} {{#if: {{{specialty|}}} | [[shop specialty::{{{specialty|}}} |]] |}} {{#if: {{{location|}}} | [[shop location::{{{location|}}} |]] | [[shop location::{{{realm|}}} |]]}} {{#if: {{{propdesignnpc|}}} | [[shop design npc::{{{proprietor}}}| ]] |}} {{#if: {{{designnpc|}}} | [[shop design npc::{{{designnpc|}}}| ]] |}} {{#if: {{{keepsakenpc|}}} | [[keepsake npc::{{{keepsakenpc|}}}| ]] |}}[[Category:Town shops]] [[Category:{{{realm}}} shops]] {{#if: {{{location|}}} | [[Category:{{{location|}}} shops]]|}} {{#switch: {{{type|}}} | cart = [[Category:Wandering carts]] | eatery = [[Category:Eateries]] | gemshop = [[Category:Gemshops]] | inn = [[Category:Inns]] | pawnshop = [[Category:Pawnshops]] |}} {{#if: {{{specialtyshop|}}} | [[Category:Specialty shops]] |}} {{#if: {{{wares|}}} | {{#switch: {{{wares|}}} | beverages = [[Category:Beverage shops]] | brewing supplies = [[Category:Brewing shops]] | clerical supplies = [[Category:Cleric shops]] | cobbling materials = [[Category:Cobbling shops]] | dyes = [[Category:Dye shops]] | fishing supplies = [[Category:Fishing shops]] | fletching materials = [[Category:Fletcher shops]] | floral items = [[Category:Florists]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | gifts = [[Category:Gift shops]] | groceries = [[Category:Grocers]] | herbs = [[Category:Herb shops]] | instruments = [[Category:Instrument shops]] | locksmith supplies = [[Category:Locksmith shops]] | magic supplies = [[Category:Magic shops]] | mailing supplies = [[Category:Post offices]] | player shop furnishings = [[Category:Player shop furnishings]] | premium home furnishings = [[Category:Premium home furnishing shops]][[Category: {{{realm}}} premium home furnishing shops]] | ships = [[Category:Ship shops]] | weapons = [[Category:Weapon shops]] | {{{wares|}}} = [[Category:{{{wares}}} shops]] |}} |}}{{#if: {{{addwares|}}} | {{#switch: {{{addwares|}}} | alchemy reagents = [[Category:Alchemy consignment shops]] | beverages = [[Category:Beverage shops]] | brewing supplies = [[Category:Brewing shops]] | clerical supplies = [[Category:Cleric shops]] | cobbling materials = [[Category:Cobbling shops]] | dyes = [[Category:Dye shops]] | fishing supplies = [[Category:Fishing shops]] | fletching materials = [[Category:Fletcher shops]] | floral items = [[Category:Florists]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | gifts = [[Category:Gift shops]] | groceries = [[Category:Grocers]] | herbs = [[Category:Herb shops]] | instruments = [[Category:Instrument shops]] | locksmith supplies = [[Category:Locksmith shops]] | magic supplies = [[Category:Magic shops]] | mailing supplies = [[Category:Post offices]] | player shop furnishings = [[Category:Player shop furnishings]] | premium home furnishings = [[Category:Premium home furnishing shops]][[Category: {{{realm}}} premium home furnishing shops]] | ships = [[Category:Ship shops]] | weapons = [[Category:Weapon shops]] | {{{addwares|}}} = [[Category:{{{addwares}}} shops]] |}} |}}{{#if: {{{propdesignnpc|}}} | [[Category:Specialty design shops]] |}} {{#if: {{{designnpc|}}} | [[Category:Specialty design shops]] |}} {{#if: {{{keepsakenpc|}}} | [[Category:Keepsake shops]] |}}</includeonly><noinclude>


<pre><nowiki>{{Town shops
<pre><nowiki>{{Town shops
Line 59: Line 61:
}}</nowiki></pre>
}}</nowiki></pre>


[[Category: Shop templates]]</noinclude>
[[Category: Shop templates]][[Category:Town shops| ]]</noinclude>

Latest revision as of 18:55, 10 December 2024

Please see the town shops style guide for instructions on how to use this template. This template will only handle a single room. If a shop has multiple rooms, please use town shops addroom template for each additional room. A semantic form is available to use in lieu of using the template, as well: Form:Town shop.


Town shops is a shop in {{{realm}}} that sells .

[{{{roomname}}}]
{{{desc}}}


{{Town shops
|collapseall =             <!-- Required if there are collapsible tables or sections in use.  This allows for all toggles needed to uncollapse the information to be entered as: mw-customtoggle-(toggle).
|type =                    <!-- Required. Valid choices are inn or eatery.  Leave blank if just a shop. -->
|realm =                   <!-- Required. Valid choices are realm only.  For in depth location information, use "location" parameter.
|article =                 <!-- Optional. To be used with location parameter if the location has "the" in the official name, ie. the Ravelin.  Leave blank otherwise. -->
|location =                <!-- Optional. Meant to denote if a shop is found in a small town/settlement outside the "town proper," ie. Ravelin, which is outside of Ta'Vaalor. -->
|specialtyshop =           <!-- Optional. Any entry will populate "specializes in".  Leave blank for "sells" -->
|wares =                   <!-- Required in all but specialty shops. Valid choices are apparel, armor, beverage, brewing, clerical, fishing, fletching, floral goods, food, general, grocery, herb, instrument, jewelry, locksmith, magic, ship, tobacco, weapon -->
|addwares =                <!-- Optional. Should only be used if a store specializes in two main types of items, eg. brewing supplies AND tobacco.  Valid choices are same as wares. -->
|specialty =               <!-- Optional. Specialty item. To be used with specialtyshop parameter or if a shop falls within the regular wares, but has a focus, ie. a shoe store falls under apparel wares, but only sells shoes. -->
|addinfo =                 <!-- Optional. Any additional information for the shop. -->
|proprietor =              <!-- Optional. This is either the merchant that displays when you ORDER or the NPC within the room. They can either be a base description (15/15/15) or named. -->
|npcarticle =              <!-- Optional. Set an article for the proprietor if not named. -->
|npc =                     <!-- Optional. This creates a link to the NPC's page if there is on present in the shop. -->
|propdesignnpc=            <!-- Optional. This is if the proprietor NPC is also a specialty design NPC. Anything entered will automatically transclude the specialty designs from the proprietor NPC's page to the shop. -->
|designnpcart =            <!-- Optional. Set an article for the design NPC if not named. -->
|designnpc =               <!-- Optional. This is if there is a specialty design NPC in the room that is not the proprietor. This will additionally automatically transclude the specialty designs from the NPC's page to the shop. -->
|propinfo =                <!-- Optional. This is a small blurb of information about the proprietor, if known. This should not be used if the proprietor is an NPC. -->

|multiroom =               <!-- Optional. Any entry will populate the header for the first room only. Other room headers will need to be manually created, and the room description template added.-->
|roomname =                <!-- Required. Name of the room. -->
|desc =                    <!-- Required. Description of the room. -->
|realrnum =                <!-- Optional. Real room ID.  Will only populate if rnum is present. -->
|rnum =                    <!-- Optional. Lich room ID. -->
|exits =                   <!-- Optional. Inside rooms only. -->
|paths =                   <!-- Optional. Outside rooms only. -->

|sign =                    <!-- Optional.  This should be used if there is a sign in the room.
|inventory =               <!-- Required. This should be a copy and paste of the output when using ORDER, or in some cases the sign indicating a menu, as well as the customization options available.-->
|backroom =                <!-- Optional. Optional. This displays inventory that is only available for purchase after a character has built up a rapport with the shop owner and is granted access to it.-->
}}