Template:Town shops2: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 2: Line 2:


</noinclude><includeonly>{{TOCright|limit=2}}</includeonly>
</noinclude><includeonly>{{TOCright|limit=2}}</includeonly>
{{#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&nbsp; }}{{#switch: {{{realm|}}} | Flotilla = the&nbsp; |}}[[realm::{{{realm}}}]]{{#if: {{{location|}}} | , }} that {{#switch: {{{specialtyshop|}}} | yes = specializes in | {{#switch: {{{type|}}} | gemshop = purchases gems and jewelry, resells pawned jewelry items, and sells | pawnshop = purchases and resells | sells}}}} {{#switch: {{{type|}}} | pawnshop = armor, weapons, magic items, and miscellaneous goods | {{#switch: {{{wares|}}} | brewing supplies = coffee and/or tea brewing supplies | fletching materials = archery supplies and/or fletching materials | forging materials = forging glyphs and materials | 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|}}} | &nbsp;and {{#switch: {{{addwares|}}} | alchemy reagents = consigns alchemical reagents | brewing supplies = coffee and/or tea brewing supplies | fletching materials = archery supplies and/or fletching materials | forging materials = forging glyphs and materials | 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|}}} | , 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&nbsp; }}{{#switch: {{{realm|}}} | Flotilla = the&nbsp; |}}[[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 = &nbsp;armor, weapons, magic items, and miscellaneous goods | gemshop = {{#switch: {{{wares|}}} | jewelry = , resells pawned jewelry items, and sells jewelry | &nbsp;and resells pawned jewelry items}} | {{{type|}}} = {{#switch: {{{wares|}}} | brewing supplies = &nbsp;coffee and/or tea brewing supplies | fletching materials = &nbsp;archery supplies and/or fletching materials | forging materials = &nbsp;forging glyphs and materials | groceries = &nbsp;groceries and/or cooking supplies | herbs = &nbsp;healing herbs | magic supplies = &nbsp;magical supplies, components, and/or alchemy tools | ships = &nbsp;ships, ship supplies, and/or upgrades for [[Open Sea Adventures]] | {{{wares|}}} = &nbsp;{{{wares|}}} |}} |}}{{#if: {{{addwares|}}} | &nbsp;and {{#switch: {{{addwares|}}} | alchemy reagents = consigns alchemical reagents | brewing supplies = coffee and/or tea brewing supplies | fletching materials = archery supplies and/or fletching materials | forging materials = forging glyphs and materials | 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|}}} | , and specializes in {{{specialty}}} }} |}}. {{{addinfo|}}}


<div style="vertical-align: top">{{#if: {{{proprietor|}}} | The proprietor is {{#if: {{{article2|}}} | {{{article2}}}&nbsp; |}}{{#switch: {{{npc|}}} | yes = [[{{{proprietor}}}]] | no = {{{proprietor}}} |}}{{#if: {{{designnpc|}}} | , who offers specialty designs on {{#arraymap:{{{materialtype|}}}|,|x|x}}. | . |}} {{#if: {{{propinfo|}}} | {{{propinfo}}}. |}} |}}</div>
<div style="vertical-align: top">{{#if: {{{proprietor|}}} | The proprietor is {{#if: {{{article2|}}} | {{{article2}}}&nbsp; |}}{{#if: {{{npc|}}} | [[{{{proprietor}}}]] | {{{proprietor}}} |}}{{#if: {{{propdesignnpc|}}} | , who offers specialty designs. | . |}} {{#if: {{{propinfo|}}} | {{{propinfo}}}. |}} |}} {{#if: {{{designnpc|}}} | Specialty designs are available from {{#if: {{{article2|}}} | {{{article2}}}&nbsp; |}}[[{{{designnpc}}}]]. |}} </div>
{{#if: {{{multiroom|}}} | {{#switch: {{{multiroom|}}} | yes = <h2>{{{roomname|}}}</h2> |}} |}}
{{#if: {{{multiroom|}}} | {{#switch: {{{multiroom|}}} | yes = <h2>{{{roomname|}}}</h2> |}} |}}
{{RoomDescription
{{RoomDescription
Line 17: Line 17:
{{{inventory|}}}</div>
{{{inventory|}}}</div>
<div style="vertical-align: top">{{#if: {{{backroom|}}} | {{#if: {{{multiroom|}}} | <h4>{{#switch: {{{type|}}} | inn = Backroom Menu | eatery = Backroom menu | Backroom Inventory}}</h4> | <h3>{{#switch: {{{type|}}} | inn = Backroom Menu | eatery = Backroom Menu | Backroom Inventory}}</h3>}} |}}
<div style="vertical-align: top">{{#if: {{{backroom|}}} | {{#if: {{{multiroom|}}} | <h4>{{#switch: {{{type|}}} | inn = Backroom Menu | eatery = Backroom menu | Backroom Inventory}}</h4> | <h3>{{#switch: {{{type|}}} | inn = Backroom Menu | eatery = Backroom Menu | Backroom Inventory}}</h3>}} |}}
{{{backroom|}}}</div><noinclude>
{{{backroom|}}}</div>
<div style="vertical-align: top">{{#if: {{{designnpc|}}} | [[Specialty design NPC]] |}}</div></noinclude>
<div style="vertical-align: top">{{#if: {{{propdesignnpc|}}} | {{#if: {{{proprietor|}}} | {{#if: {{{multiroom|}}} | <h3>[[Specialty design NPC]]</h3> | <h2>[[Specialty design NPC]]</h2> |}}
<pre{{log2}}>{{:{{{proprietor}}}}}</pre> |}} |}}</div>
<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>


<includeonly>[[townshop-template-is::True| ]] [[shop type::{{{type|}}}|]] {{#switch: {{{type|}}} | pawnshop = [[shop wares::pawned armor, weapons, magic items, and miscellaneous goods| ]] | gemshop = [[shop wares::pawned jewelry items| ]] |}} [[shop wares::{{{wares|}}}|]] [[shop wares::{{{addwares|}}}|]] {{#switch: {{{specialtyshop|}}} | yes = [[shop wares::specialty| ]] |}} {{#if: {{{backroom|}}} | [[has backroom::true| ]] |}} [[shop specialty::{{{specialty|}}} |]] {{#if: {{{location|}}} | [[shop location::{{{location|}}} |]] | [[shop location::{{{realm|}}} |]]}} [[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]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | 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]] | 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]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | 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]] | ships = [[Category:Ship shops]] | weapons = [[Category:Weapon shops]] | {{{addwares|}}} = [[Category:{{{addwares}}} shops]] |}} |}}</includeonly><noinclude>
</noinclude><includeonly>[[townshop-template-is::True| ]] [[shop type::{{{type|}}}|]] {{#switch: {{{type|}}} | pawnshop = [[shop wares::pawned armor, weapons, magic items, and miscellaneous goods| ]] | gemshop = [[shop wares::pawned jewelry items| ]] |}} [[shop wares::{{{wares|}}}|]] [[shop wares::{{{addwares|}}}|]] {{#switch: {{{specialtyshop|}}} | yes = [[shop wares::specialty| ]] |}} {{#if: {{{backroom|}}} | [[has backroom::true| ]] |}} [[shop specialty::{{{specialty|}}} |]] {{#if: {{{location|}}} | [[shop location::{{{location|}}} |]] | [[shop location::{{{realm|}}} |]]}} {{#if: {{{propdesignnpc|}}} | [[shop design npc::true| ]] |}} {{#if: {{{designnpc|}}} | [[shop design npc::true| ]] |}} [[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]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | 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]] | 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]] | forging materials = [[Category:Forging shops]] | general goods = [[Category:General stores]] | 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]] | ships = [[Category:Ship shops]] | weapons = [[Category:Weapon shops]] | {{{addwares|}}} = [[Category:{{{addwares}}} shops]] |}} |}}</includeonly><noinclude>


<pre><nowiki>{{Town shops
<pre><nowiki>{{Town shops
Line 31: Line 34:
|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. -->
|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. -->
|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. -->
|article2 =
|proprietor =
|proprietor =
|npc =
|npc =
|designnpc =
|propinfo =
|propinfo =
|addinfo = <!-- Optional. Any additional information for the shop. -->
|addinfo = <!-- Optional. Any additional information for the shop. -->

Latest revision as of 19:25, 4 November 2024

DO NOT USE THIS TEMPLATE. This is set up primarily for update testing purposes to not create issues on the pages that already exist using the original town shops template.


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

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


{{Town shops
|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, 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. -->
|article2 = 
|proprietor =
|npc =
|designnpc = 
|propinfo =
|addinfo =                 <!-- Optional. Any additional information for the shop. -->

|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.
|rnum =                    <!-- Optional. Lich room ID.
|realrnum =                <!-- Optional. Real room ID.  Will only populate if rnum is present. -->
|exits =                   <!-- Optional. Inside rooms only. -->
|paths =                   <!-- Optional. Outside rooms only. -->

|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.-->
}}

/Testing