Template:Inn: Difference between revisions

mNo edit summary
No edit summary
Line 9: Line 9:
</noinclude>
</noinclude>
<onlyinclude><includeonly>
<onlyinclude><includeonly>
 
{{ #switch: {{{1}}}  
<!-- if header variable is passed, print the table header -->
| header
{{ #ifeq: {{{1}}} | header
{{{!}} cellpadding="0" cellspacing="0" class="locationTemplateTable" style="{{#if: {{{float{{!}}}}} {{!}} float:{{{float}}}; clear:{{{float}}}; {{!}} float:left; clear:left; }};"
{{{!}} cellpadding="0" cellspacing="0" class="locationTemplateTable" style="{{#if: {{{float{{!}}}}} {{!}} float:{{{float}}}; clear:{{{float}}}; {{!}} float:left; clear:left; }};"
{{!}}-  
{{!}}-  
! class="locationTemplateHeader" {{!}} Price  
! class="locationTemplateHeader" {{!}} Price  
! class="locationTemplateHeader" {{!}} Game  
! class="locationTemplateHeader" {{!}} Game  
! class="locationTemplateHeader" {{!}} Console }}
! class="locationTemplateHeader" {{!}} Console
| entry =
<!-- if entry variable is passed, print entry row -->
{{ #ifeq: {{{1}}} | entry |
{{!}}- style="text-align: center;"
{{!}}- style="text-align: center;"
{{!}} {{{price}}}  
{{!}} {{{price}}}  
{{!}} {{{game}}}  
{{!}} {{{game}}}  
{{!}} {{{console}}} }}
{{!}} {{{console}}} }}
 
| footer =  
<!-- if footer variable is passed, print footer -->
{{ #ifeq: {{{1}}} | footer |  
{{!}}}
{{!}}}
| }}
}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>