Template:Inn/doc: Difference between revisions
mNo edit summary |
No edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The Inn template is used to display the price of inn lodging at various locations in Dragon Quest games. | The Inn template is used to display the price of inn lodging at various locations in ''[[Dragon Quest (series)|Dragon Quest]]'' games. | ||
==Usage== | ==Usage== | ||
| Line 5: | Line 5: | ||
===Header=== | ===Header=== | ||
A header call to this template should be the first usage of this template on any page. | A header call to this template should be the first usage of this template on any page. | ||
<pre>{{Inn|header | <pre>{{Inn|header}}</pre> | ||
*header: A required parameter which marks this as the start of an inn table. | *header: A required parameter which marks this as the start of an inn table. | ||
===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= | <pre>{{Inn|entry|price=4g per person|game={{Dragon Quest}}|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. | ||
*game: The game this inn represents. Should be an interwiki link. | *game: The game this inn represents. Should be an interwiki link. | ||
*console: The console version of the game. | *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 | |||
<pre>{{Inn|note|text=This inn is behind a [[Magic Key]] door.}}</pre> | |||
*note: A required parameter which marks this as a note | |||
*text: Text to be displayed within the note. | |||
===Footer=== | ===Footer=== | ||
The footer call marks the end of the Inn table. | The footer call marks the end of the Inn table. | ||
| Line 22: | Line 26: | ||
===Sample=== | ===Sample=== | ||
{{Inn|header}} | {{Inn|header}} | ||
{{Inn|entry|price=4g per person|game= | {{Inn|entry|price=4g per person|game={{Dragon Quest II}}|console={{NES}}}} | ||
{{Inn|entry|price=10g|game= | {{Inn|entry|price=10g|game={{Dragon Quest III}}|console={{GBC}}}} | ||
{{Inn|note|text=Sleeping at this inn triggers a dream cut-scene.}} | |||
{{Inn|footer}} | {{Inn|footer}} | ||
===Code=== | ===Code=== | ||
<pre> | <pre> | ||
{{Inn|header}} | {{Inn|header}} | ||
{{Inn|entry|price=4g per person|game= | {{Inn|entry|price=4g per person|game={{Dragon Quest II}}|console={{NES}}}} | ||
{{Inn|entry|price=10g|game= | {{Inn|entry|price=10g|game={{Dragon Quest III}}|console={{GBC}}}} | ||
{{Inn|note|text=Sleeping at this inn triggers a dream cut-scene.}} | |||
{{Inn|footer}} | {{Inn|footer}} | ||
</pre> | </pre> | ||