Template:Inn: Difference between revisions

mNo edit summary
No edit summary
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
See [[Template:Inn/doc]] for documentation on this template.<br/>
{{{{PAGENAME}}/doc}}
Below is a sample of this template:
[[Category:Location templates|{{PAGENAME}}]]
{{Inn|header}}
{{Inn|entry|price=4g per person|game=[[Dragon Warrior II]]|console=NES}}
{{Inn|entry|price=10g|game=[[Dragon Warrior III]]|console=GBC}}
{{Inn|footer}}
[[Category:Location templates|Inn]]
</noinclude>
</noinclude>
<onlyinclude><includeonly>
<onlyinclude><includeonly>
<!-- if header variable is passed, print the table header -->
{| cellpadding="5" cellspacing="0" class="locationTemplateTable"  
{{ #ifeq: {{{1}}} | header | 
! class="locationTemplateHeader" | {{{game}}} ({{{console}}})
{{{!}} cellpadding="0" cellspacing="0" class="locationTemplateTable" style="{{#if: {{{float{{!}}}}} {{!}} float:{{{float}}}; clear:{{{float}}}; {{!}} float:left; clear:left; }};"
|-
{{!}}-  
| class="locationTemplateSubheader" | '''Price'''
! class="locationTemplateHeader" {{!}} Price  
|-
! class="locationTemplateHeader" {{!}} Game
| class="locationTemplateCell" | {{{price}}}
! class="locationTemplateHeader" {{!}} Console}} <!-- if entry variable is passed, print entry row -->
|-  
{{ #ifeq: {{{1}}} | entry |
{{#if: {{{text|}}} | {{!}} class="locationTemplateCell" {{!}} '''Note:'''&nbsp;{{{text}}} }}
{{!}}- style="text-align: center;"
|}
{{!}} {{{price}}}
{{!}} {{{game}}}
{{!}} {{{console}}} }}
<!-- if footer variable is passed, print footer -->
{{ #ifeq: {{{1}}} | footer | 
{{!}}}
| }}
</includeonly></onlyinclude>
</includeonly></onlyinclude>