Template:Shop: Difference between revisions

From Dragon Quest Wiki
(added units)
 
m (fixed if statement)
(10 intermediate revisions by the same user not shown)
Line 7: Line 7:
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| header = {{{!}} class="collapsible {{#if: {{{collapsed|}}} | collapsed }} locationTemplateTable" cellpadding="5" cellspacing="0" style="margin: 5px 5px 5px 5px; height:100%; border-collapse: collapse;"
| header = {{{!}} class="collapsible {{#if: {{{collapsed|}}} | collapsed }} locationTemplateTable" cellpadding="5" cellspacing="0" style="margin: 5px 5px 5px 5px; height:100%; border-collapse: collapse;"
! class="locationTemplateHeader" colspan="4" {{!}} {{{title}}} {{#if: {{{subtitle|}}} | ({{{subtitle}}}) }}   
! class="locationTemplateHeader" colspan={{#if: {{{includeClasses|}}} | "4" | "3" }} {{!}} {{{title}}} {{#if: {{{subtitle|}}} | ({{{subtitle}}}) }}   
{{!}}-  
{{!}}-  
{{!}} style="border:1px solid black; text-align:center;" {{!}} '''Item'''
{{!}} style="border:1px solid black; text-align:center;" {{!}} '''Item'''
Line 19: Line 19:
| entry = {{!}}-  
| entry = {{!}}-  
{{!}} class="locationTemplateCell" style="text-align:left;" {{!}} {{{item}}}  
{{!}} class="locationTemplateCell" style="text-align:left;" {{!}} {{{item}}}  
{{!}} class="locationTemplateCell" style="text-align:right;" {{!}} {{{price}}}{{#if: {{{units|}}} | {{{units}}} | G}}
{{!}} class="locationTemplateCell" style="text-align:right;" {{!}} {{{price}}}{{#if: {{{units|}}} | {{{units}}} |  G}}
{{!}} class="locationTemplateCell" style="text-align:left;" {{!}} {{{attributes}}}
{{!}} class="locationTemplateCell" style="text-align:left;" {{!}} {{{attributes}}}
{{#if: {{{classes|}}} |  
{{#if: {{{classes|}}} |  

Revision as of 09:26, 26 July 2010

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