Template:Inn: Difference between revisions

No edit summary
No edit summary
Line 3: Line 3:
Below is a sample of this template:
Below is a sample of this template:
{{Inn|header}}
{{Inn|header}}
{{Inn|entry=true|price=4g per person|game=[[Dragon Warrior II]]|console=NES}}
{{Inn|entry|price=4g per person|game=[[Dragon Warrior II]]|console=NES}}
{{Inn|entry=true|price=10g|game=[[Dragon Warrior III]]|console=GBC}}
{{Inn|entry|price=10g|game=[[Dragon Warrior III]]|console=GBC}}
{{Inn|footer=true}}
{{Inn|footer}}
[[Category:Location templates|Inn]]
[[Category:Location templates|Inn]]
</noinclude>
</noinclude>
Line 18: Line 18:
| }}
| }}
<!-- if entry variable is passed, print entry row -->
<!-- if entry variable is passed, print entry row -->
{{ #ifeq: {{{entry|+}}} | {{{entry|-}}} |
{{ #ifeq: {{{1}}} | entry |
{{!}}- style="text-align: center;"
{{!}}- style="text-align: center;"
{{!}} {{{price}}}  
{{!}} {{{price}}}  
Line 25: Line 25:
| }}
| }}
<!-- if footer variable is passed, print footer -->
<!-- if footer variable is passed, print footer -->
{{ #ifeq: {{{footer|+}}} | {{{footer|-}}} |   
{{ #ifeq: {{{1}}} | footer |   
{{!}}}
{{!}}}
| }}
| }}
</includeonly></onlyinclude>
</includeonly></onlyinclude>