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 | {{Inn|entry|price=4g per person|game=[[Dragon Warrior II]]|console=NES}} | ||
{{Inn|entry | {{Inn|entry|price=10g|game=[[Dragon Warrior III]]|console=GBC}} | ||
{{Inn|footer | {{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: {{{ | {{ #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: {{{ | {{ #ifeq: {{{1}}} | footer | | ||
{{!}}} | {{!}}} | ||
| }} | | }} | ||
</includeonly></onlyinclude> | </includeonly></onlyinclude> | ||