Template:Shop: Difference between revisions

From Dragon Quest Wiki
m (HTML tidying)
(Revised template)
Line 1: Line 1:
{| cellpadding="0" cellspacing="0" class="locationTemplateTable" style="{{#if: {{{Float|}}} | float:{{{Float}}}; clear:{{{Float}}}; | float:right; clear:right; }}"
|-
! class="locationTemplateHeader" colspan="2" | {{{Type}}} Shop ({{{Console}}})
|-
! colspan="1" style="width:50%;text-align:center;font-size:90%;font-style:italic;vertical-align:top;" | Item
! colspan="1" style="width:50%;text-align:center;font-size:90%;font-style:italic;vertical-align:top;" | Price
|-
{{#if: {{{item1|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item1}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost1}}} }}
|-
{{#if: {{{item2|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item2}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost2}}} }}
|-
{{#if: {{{item3|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item3}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost3}}} }}
|-
{{#if: {{{item4|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item4}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost4}}} }}
|-
{{#if: {{{item5|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item5}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost5}}} }}
|-
{{#if: {{{item6|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item6}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost6}}} }}
|-
{{#if: {{{item7|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item7}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost7}}} }}
|-
{{#if: {{{item8|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item8}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost8}}} }}
|-
{{#if: {{{item9|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item9}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost9}}} }}
|-
{{#if: {{{item10|}}}|
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{item10}}}
{{!}} colspan="1" style="width:50%;text-align:center;font-size:90%;vertical-align:top;" {{!}} {{{cost10}}} }}
|}
<noinclude>
<noinclude>
 
See [[Template:Shop/doc]] for documentation on this template.<br/>
== Usage ==
[[Category:Location templates|Shop]]
{| style="float: left; background: transparent;"
</noinclude>
|  
<onlyinclude><includeonly>
<pre>{{Shop
{{ #switch: {{{1}}}
| Type =
| header = {{{!}} cellpadding="5" cellspacing="0" class="locationTemplateTable" {{#if: {{{float|}}} | float:{{{float}}}; clear:{{{float}}}; | float:left; clear:left; }}"  
| Console =
{{!}}-
| Float = 
| subtable =
| item1 = | cost1 =
{{!}}
| item2 = | cost2 =
{{{!}} cellpadding="5" cellspacing="0"
| item3 = | cost3 =
{{!}}-
| item4 = | cost4 =
{{!}} class="locationTemplateHeader" {{!}} {{{game}}} ({{{console}}})
| item5 = | cost5 =
{{!}}-
| item6 = | cost6 =
{{!}} ''Item''
| item7 = | cost7 =
{{!}} ''Price''
| item8 = | cost8 =
{{!}}-
| item9 = | cost9 =
| entry = {{!}}- style="text-align: center;"
| item10 = | cost10 =
{{!}} class="locationTemplateCell" {{!}} {{{item}}}
}}</pre>
{{!}} class="locationTemplateCell" {{!}} {{{price}}}
|}
{{!}}-
[[Category:Location templates|Shop]]</noinclude>
| subtablefooter =
{{!}}}
| footer = {{!}}} }}
</includeonly></onlyinclude>

Revision as of 15:24, 18 February 2010

See Template:Shop/doc for documentation on this template.