Template:Inn/doc

From Dragon Quest Wiki
< Template:Inn
Revision as of 14:55, 18 February 2010 by FlyingRagnar (talk | contribs) (Created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Inn template is used to display the price of inn lodging at various locations in Dragon Quest games.

Usage

In almost all cases, using this template should be preceded by an Inn heading on the article it is being transcluded onto. This is because there is no main heading for overall table containing inn data. This is consistent with other location templates.

Header

A header call to this template should be the first usage of this template on any page.

{{Inn|header|float=right}}
  • header: A required parameter which marks this as the start of an inn table.
  • float: The float parameter is optional. It represents the CSS float style and should be 'left', 'right', or 'center'. The default is left.

Entries

Each entry in the Inn table is represented by a single template call.

{{Inn|entry|price=4g per person|game|[[Dragon Warrior]]|console|NES}}
  • entry: A required parameter which marks this as a single inn table entry.
  • price: The price of a stay at a single inn. Should be detailed in terms of money units and price by person or group.
  • game: The game this inn represents. Should be an interwiki link.
  • console: The console version of the game.

Footer

The footer call marks the end of the Inn table.

{{Inn|footer}}
  • footer: A required parameter marking the template as the footer.

Example

Sample

{{{game}}} ({{{console}}})
Price
{{{price}}}


Dragon Warrior II (NES)
Price
4g per person


Dragon Warrior III (GBC)
Price
10g


{{{game}}} ({{{console}}})
Price
{{{price}}}

Code

{{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}}