Difference between revisions of "Template:Shop"

From Fallen Sword Wiki
Jump to: navigation, search
Line 6: Line 6:
 
{{#if: {{{item-name-2|}}}|{{!}}|}}
 
{{#if: {{{item-name-2|}}}|{{!}}|}}
 
{{#if: {{{item-name-2|}}}|{{ShopItem|name={{{item-name-2|}}}|image={{{item-image-2|}}}|price={{{item-price-2|?}}} }}|}}
 
{{#if: {{{item-name-2|}}}|{{ShopItem|name={{{item-name-2|}}}|image={{{item-image-2|}}}|price={{{item-price-2|?}}} }}|}}
 +
{{#if: {{{item-name-3|}}}|{{!}}|}}
 +
{{#if: {{{item-name-3|}}}|{{ShopItem|name={{{item-name-3|}}}|image={{{item-image-3|}}}|price={{{item-price-3|?}}} }}|}}
 +
{{#if: {{{item-name-4|}}}|{{!}}|}}
 +
{{#if: {{{item-name-4|}}}|{{ShopItem|name={{{item-name-4|}}}|image={{{item-image-4|}}}|price={{{item-price-4|?}}} }}|}}
 +
{{#if: {{{item-name-5|}}}|{{!}}|}}
 +
{{#if: {{{item-name-5|}}}|{{ShopItem|name={{{item-name-5|}}}|image={{{item-image-5|}}}|price={{{item-price-5|?}}} }}|}}
 +
{{#if: {{{item-name-6|}}}|{{!}}|}}
 +
{{#if: {{{item-name-6|}}}|{{ShopItem|name={{{item-name-6|}}}|image={{{item-image-6|}}}|price={{{item-price-6|?}}} }}|}}
 +
{{#if: {{{item-name-7|}}}|{{!}}|}}
 +
{{#if: {{{item-name-7|}}}|{{ShopItem|name={{{item-name-7|}}}|image={{{item-image-7|}}}|price={{{item-price-7|?}}} }}|}}
 +
{{#if: {{{item-name-8|}}}|{{!}}|}}
 +
{{#if: {{{item-name-8|}}}|{{ShopItem|name={{{item-name-8|}}}|image={{{item-image-8|}}}|price={{{item-price-8|?}}} }}|}}
 +
{{#if: {{{item-name-9|}}}|{{!}}|}}
 +
{{#if: {{{item-name-9|}}}|{{ShopItem|name={{{item-name-9|}}}|image={{{item-image-9|}}}|price={{{item-price-9|?}}} }}|}}
 +
 
|}
 
|}
 
=== Location ===
 
=== Location ===
Line 12: Line 27:
 
[[Category:Shops]]
 
[[Category:Shops]]
 
</includeonly>
 
</includeonly>
<noinclude>This is the template for shops</noinclude>
+
<noinclude>
 +
This is the template for [[:Category:Shops|shop pages]]
 +
 
 +
<pre>
 +
{{Shop
 +
|item-name-1=Name Of First Item
 +
|item-image-1=URL of first item image
 +
|item-price-1=Price (in gold) of first item
 +
<!-- repeat for additional items, (item-name-2=Name Of Second Item) etc. -->
 +
}}
 +
</pre>
 +
Template contains parameters for item-name-1 through item-name-9 with corresponding item-image-N and item-price-N.
 +
[[Category:Templates|{{PAGENAME}}]]
 +
</noinclude>

Revision as of 15:46, 22 June 2009


This is the template for shop pages

{{Shop
|item-name-1=Name Of First Item
|item-image-1=URL of first item image
|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.