Template:Town shops: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(117 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>DO NOT USE THIS TEMPLATE! THIS TEMPLATE IS FOR TESTING PURPOSES ONLY AND WILL BE DELETED AFTER TESTING IS COMPLETED AND MAIN TEMPLATE IS UPDATED!
<noinclude>DO NOT USE THIS TEMPLATE! THIS TEMPLATE IS FOR TESTING PURPOSES ONLY AND WILL BE DELETED AFTER TESTING IS COMPLETED AND MAIN TEMPLATE IS UPDATED!


</noinclude><includeonly>__NOEDITSECTION__
</noinclude><includeonly>{{TOCright|limit=2}}</includeonly>
'''{{PAGENAME}}''' is {{#switch: {{{type|}}} | inn = an [[inn]] | eatery = an eatery | a shop}} in {{#if: {{{location|}}} | {{#if: {{{article|}}} | the }} [[shop location::{{{location}}}]], around&nbsp; }}{{#switch: {{{realm|}}} | Flotilla = the&nbsp; |}}[[realm::{{{realm}}}]]{{#if: {{{location|}}} | , }} that {{#if: {{{specialtyshop|}}} | specializes in | sells}} {{#switch: {{{wares|}}} | 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|}}} | 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|}}}
</includeonly>'''{{PAGENAME}}''' is {{{[[Article selection::{{{the|}}}]]|the}}} {{#if: {{{hideitemtype|}}} | |{{{itemtype}}}}} {{{shop|shop |}}} in {{#ifeq: {{{town}}} | Ravelin |the |}} [[{{{town}}}]]. {{{1}}}
{{#if: {{{multiroom|}}} | {{#switch: {{{multiroom|}}} | yes = =={{{roomname|}}}== |}} |}}

{{RoomDescription
{{RoomDescription
|roomname={{{roomname}}}
|roomname = {{{roomname}}}
|desc={{{desc}}}
|desc = {{{desc}}}
|rnum={{{rnum|}}}
|rnum = {{{rnum|}}}
|realrnum = {{{realrnum|}}}
|exits = {{{exits|}}}
|paths = {{{paths|}}}
}}
}}
{{#if: {{{multiroom|}}} | ==={{#switch: {{{type|}}} | inn = Menu | eatery = Menu | Inventory}}=== | =={{#switch: {{{type|}}} | inn = Menu | eatery = Menu | Inventory}}==}}
{{{inventory|}}}
<div style="vertical-align: top">{{#if: {{{backroom|}}} | {{#switch: {{{multiroom|}}} | yes = <h4>Backroom Inventory</h4> | <h3>Backroom Inventory</h3>}} |}}
{{{backroom|}}}</div><noinclude>


</noinclude><includeonly>[[shop type::{{{type|}}}|]] [[shop wares::{{{wares|}}}|]] [[shop wares::{{{addwares|}}}|]] [[shop specialty::{{{specialty|}}}|]] {{#if: {{{location|}}} | [[shop location::{{{location|}}}]] | [[shop location::{{{realm|}}} |]]}} [[Category:Town shops]] [[Category:{{{realm}}} shops]] {{#if: {{{location|}}} | [[Category:{{{location|}}} shops]]|}} {{#switch: {{{type|}}} | inn = [[Category:Inns]] | eatery = [[Category:Eateries]] |}} {{#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|}}} | 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]] | [[Category:{{{addwares}}} shops]] |}} |}}</includeonly><noinclude>
=={{{header|Inventory}}}==
{{{2|<pre{{log2}}>}}}
{{{inventory}}}
{{{3|</pre>}}}

<includeonly>
[[Category:NPC Shops]]
[[Category:{{{town}}} Shops]]
{{#switch: {{{4}}}|yes=[[Category:{{{itemtype}}}s]]|[[Category:{{{itemtype}}} {{{Shops|Shops}}}]]}}
</includeonly><noinclude>

This template should be used to add NPC shops that are permanent in towns using the [[ORDER]] system. It also integrates the [[:template:RoomDescription|RoomDescription]] template. '''When working on existing pages using this template, edit the page by clicking on the Edit tab at the top of that page.'''

<big>'''Copy/paste Code'''</big>
<pre>
<nowiki>{{NPC Shops</nowiki>
<nowiki>|the = [[Article selection::{{{the|}}}]]</nowiki>
<nowiki>|itemtype = </nowiki>
<nowiki>|town = </nowiki>
<nowiki>|1 = </nowiki>
<nowiki>|roomname = </nowiki>
<nowiki>|desc = </nowiki>
<nowiki>|rnum = </nowiki>
<nowiki>|inventory = </nowiki>
<nowiki>}}</nowiki>
</pre>
*For '''general stores''', add two lines: "|shop=store" and "|Shops=Stores". Stores must be with a capital S.
*For '''post offices''' and '''florists''', add three lines: "|shop=", "|Shops=", and "|4=yes"
*The |1 = line is used to add any extra commentary on the shop beyond its type and location.
*To get rid of the inventory pre field, leave the inventory blank, and add "|2 = " and "|3 = ".
*If there are multiple shops of the same type in a town, insert "|the = a".
*To change the Inventory header, insert "|header = {new header}".
*To omit the item type in the lead section (for example, "a tavern" instead of "a food shop"), add "|hideitemtype=true" and set "|shop=" to be the appropriate noun. The "itemtype" field should still be set to one of the legal fields (see section below).

===List of Itemtypes===
Please use one of the following for the "itemtype" field. Using a different itemtype than the listed ones will create a new category and not properly categorize the shop.
*alchemist
*armor
*boutique
*cleric
*cobbling
*fishing
*fletcher
*florist
*food (use |the=a)
*general (see above for special instructions)
*herb
*instrument
*jewelry
*locksmith
*magic (those dinky amulet/imbed shops)
*post office
*specialty (when the shop is unique in its purpose)
*tobacco
*weapon

==Original Code==
If you are template-averse, you can enter the old code and someone will go in and fix the page for you.

<pre>
'''Shopname''' is (the item-type) shop in <nowiki>[[Town]]</nowiki>.

<nowiki>{{RoomDescription</nowiki>
<nowiki>|roomname=Name</nowiki>
<nowiki>|desc=Description</nowiki>
<nowiki>}}</nowiki>

<nowiki>== Inventory ==</nowiki>
<nowiki><pre{{log2}}></nowiki>


<nowiki><</nowiki><nowiki>/pre></nowiki>
<pre><nowiki>{{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. -->
|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.-->
<nowiki>{{stub}}</nowiki>
|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.
<nowiki>[[Category:NPC Shops]]</nowiki>
<nowiki>[[Category:Area Shops]]</nowiki>
}}</nowiki></pre></noinclude>
<nowiki>[[Category:Itemtype Shops]]</nowiki>
</pre>
[[Category:Shop table templates]]
</noinclude>

Latest revision as of 23:51, 25 April 2024

DO NOT USE THIS TEMPLATE! THIS TEMPLATE IS FOR TESTING PURPOSES ONLY AND WILL BE DELETED AFTER TESTING IS COMPLETED AND MAIN TEMPLATE IS UPDATED!


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

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

Inventory


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