Template:Teleportal/doc: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
*info: General info about the location of the teleportal.
*info: General info about the location of the teleportal.
*destination: Location the teleportal connects to.  Should be an interwiki link if applicable.
*destination: Location the teleportal connects to.  Should be an interwiki link if applicable.
*game: The game this inn represents.  Should be an interwiki link. This parameter can contain multiple games if applicable.
*game: The game this teleportal is in.  Should be an interwiki link. This parameter can contain multiple games if applicable.
*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!
*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!
===Footer===
===Footer===

Revision as of 11:51, 19 February 2010

The Teleportal template is used to display teleportals at various locations in Dragon Quest games.

Usage

In almost all cases, using this template should be preceded by a Teleportals heading on the article it is being transcluded onto. This is because there is no label marking the table as teleportal 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.

{{Teleportal|header|float=right}}
  • header: A required parameter which marks this as the start of an teleportal 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 Teleportal table is represented by a single template call.

{{Teleportal|entry|info=B2 left corner|destination=[[Rimuldar]]|game=[[Dragon Warrior]]|console=NES}}
  • entry: A required parameter which marks this as a single teleportal table entry.
  • info: General info about the location of the teleportal.
  • destination: Location the teleportal connects to. Should be an interwiki link if applicable.
  • game: The game this teleportal is in. Should be an interwiki link. This parameter can contain multiple games if applicable.
  • 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!

Footer

The footer call marks the end of the Teleportal table.

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

Example

Sample

{{{title}}}
Info Destination
B2 bottom right corner Mercado
Behind Final Key door Shrine East of Isis

Code

{{Teleportal|header}}
{{Teleportal|entry|info=B2 bottom right corner|destination=[[Mercado]]|game=[[Dragon Warrior II]]|console=NES}}
{{Teleportal|entry|info=Behind [[Final Key]] door|destination=Shrine East of Isis|game=[[Dragon Warrior III]]|console=GBC}}
{{Teleportal|footer}}