Template:Inn/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 9: | Line 9: | ||
===Entries=== | ===Entries=== | ||
Each entry in the Inn table is represented by a single template call. | Each entry in the Inn table is represented by a single template call. | ||
<pre>{{Inn|entry|price=4g per person|game=[[Dragon Warrior]]|console=NES}}</pre> | <pre>{{Inn|entry|price=4g per person|game=[[Dragon Quest|Dragon Warrior]]|console=NES}}</pre> | ||
*entry: A required parameter which marks this as a single inn table entry. | *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. | *price: The price of a stay at a single inn. Should be detailed in terms of money units and price by person or group. | ||
| Line 34: | Line 34: | ||
<pre> | <pre> | ||
{{Inn|header}} | {{Inn|header}} | ||
{{Inn|entry|price=4g per person|game=[[Dragon Warrior II]]|console=NES}} | {{Inn|entry|price=4g per person|game=[[Dragon Quest II: Luminaries of the Legendary Line|Dragon Warrior II]]|console=NES}} | ||
{{Inn|entry|price=10g|game=[[Dragon Warrior III]]|console=GBC}} | {{Inn|entry|price=10g|game=[[Dragon Quest III|Dragon Warrior III]]|console=GBC}} | ||
{{Inn|note|text=Sleeping at this inn triggers a dream cut-scene.}} | {{Inn|note|text=Sleeping at this inn triggers a dream cut-scene.}} | ||
{{Inn|footer}} | {{Inn|footer}} | ||
</pre> | </pre> | ||
Revision as of 15:55, 10 March 2018
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 label marking the table as inn data within this template. 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}}
- header: A required parameter which marks this as the start of an inn table.
Entries
Each entry in the Inn table is represented by a single template call.
{{Inn|entry|price=4g per person|game=[[Dragon Quest|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. Note: This parameter should contain multiple console values separated by commas if the game and price parameters are the same!
Notes
A note(s) can be added to the inn table for additional details
{{Inn|note|text=This inn is behind a [[Magic Key]] door.}}
- note: A required parameter which marks this as a note
- text: Text to be displayed within the note.
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}}} |
| Note: Sleeping at this inn triggers a dream cut-scene. |
| {{{game}}} ({{{console}}}) |
|---|
| Price |
| {{{price}}} |
Code
{{Inn|header}}
{{Inn|entry|price=4g per person|game=[[Dragon Quest II: Luminaries of the Legendary Line|Dragon Warrior II]]|console=NES}}
{{Inn|entry|price=10g|game=[[Dragon Quest III|Dragon Warrior III]]|console=GBC}}
{{Inn|note|text=Sleeping at this inn triggers a dream cut-scene.}}
{{Inn|footer}}