Difference between revisions of "Template:Shop"

From Fallen Sword Wiki
Jump to: navigation, search
Line 3: Line 3:
 
{| cellspacing="10" border="0" align="center"
 
{| cellspacing="10" border="0" align="center"
 
|- valign="bottom" align="center"
 
|- valign="bottom" align="center"
{{#if: {{{item-name-1|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-1}}}|image={{{item-image-1}}}|price={{formatnum:{{{item-price-1}}}}}}}|}}
+
{{#if: {{{item-name-1|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-1}}}|image={{{item-image-1}}}|price={{formatnum:{{{item-price-1}}}}}}}|
{{#if: {{{item-name-2|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-2}}}|image={{{item-image-2}}}|price={{formatnum:{{{item-price-2}}}}}}}| {{#if: {{{item-name-1|}}} |{{!end}} | }} }}
+
}}{{#if: {{{item-name-2|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-2}}}|image={{{item-image-2}}}|price={{formatnum:{{{item-price-2}}}}}}}| {{#if: {{{item-name-1|}}} |{{!end}} | }} }}
 
{{#if: {{{item-name-3|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-3}}}|image={{{item-image-3}}}|price={{formatnum:{{{item-price-3}}}}}}}| {{#if: {{{item-name-2|}}} |{{!end}} | }} }}
 
{{#if: {{{item-name-3|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-3}}}|image={{{item-image-3}}}|price={{formatnum:{{{item-price-3}}}}}}}| {{#if: {{{item-name-2|}}} |{{!end}} | }} }}
 
{{#if: {{{item-name-4|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-4}}}|image={{{item-image-4}}}|price={{formatnum:{{{item-price-4}}}}}}}| {{#if: {{{item-name-3|}}} |{{!end}} | }} }}
 
{{#if: {{{item-name-4|}}}|{{!}}{{NL}}{{ShopItem|name={{{item-name-4}}}|image={{{item-image-4}}}|price={{formatnum:{{{item-price-4}}}}}}}| {{#if: {{{item-name-3|}}} |{{!end}} | }} }}

Revision as of 13:03, 14 December 2021

Ambox_content.png Editing this template may cause all pages using it to stop working.
This is a template that is being used by many pages on the wiki. Changes made to this page is instantly applied to all these pages, and any editing mistake can break them. Do not edit the template unless you know what you are doing.
If you would like to make a customized version of this template for your own use, copy it to a new template and edit from there.

This is the template for shop pages. Use it when creating new pages for shops throughout the realms of Fallen Sword.

Currently, the template only accepts prices in gold, but if there are shops out there with prices in anything else (e.g. FSPs) then contact me and I'll fix it.

{{Shop
|banner=http://url-of-image/banner.gif
|area=Area Where Shop Is Located
|area-coordinates=(0,0)
|item-name-1=Item Name
|item-image-1=http://url-of-image/image1.gif
|item-price-1=Price (in gold) of first item
<!-- repeat for additional items, (item-name-2=Name Of Second Item) etc. -->
}}

Template contains parameters for item-name-1 through item-name-9 with corresponding item-image-N and item-price-N.