Template:Teleportal/doc: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
mNo edit summary
updated to match template
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>{{Teleportal|header|float=right}}</pre>
<pre>{{Teleportal|header|title=[[Dragon Quest IV]]|subtitle=NES}}</pre>
*header: A required parameter which marks this as the start of an teleportal table.
*header: A required parameter which marks this as the start of an teleportal table.
*float: The float parameter is optionalIt represents the CSS float style and should be 'left', 'right', or 'center'. The default is ''left''.
*title: The title of the teleportal table.  Should be a link to a game if there is more than one teleportal tableOtherwise, it should be "Teleportals".
*subtitle: Should be the console version when title is a game name.
===Entries===
===Entries===
Each entry in the Teleportal table is represented by a single template call.
Each entry in the Teleportal table is represented by a single template call.
Line 14: Line 15:
*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 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===
===Footer===
The footer call marks the end of the Teleportal table.
The footer call marks the end of the Teleportal table.
Line 22: Line 21:
==Example==
==Example==
===Sample===
===Sample===
{{Teleportal|header}}
{{Teleportal|header|title=[[Dragon Quest]]|subtitle=NES}}
{{Teleportal|entry|info=B2 bottom right corner|destination=[[Mercado]]|game=[[Dragon Warrior II]]|console=NES}}
{{Teleportal|entry|info=B2 bottom right corner|destination=[[Mercado]]}}
{{Teleportal|entry|info=Behind [[Final Key]] door|destination=Shrine East of Isis|game=[[Dragon Warrior III]]|console=GBC}}
{{Teleportal|entry|info=Behind [[Final Key]] door|destination=Shrine East of Isis}}
{{Teleportal|footer}}
{{Teleportal|footer}}
===Code===
===Code===
<pre>
<pre>
{{Teleportal|header}}
{{Teleportal|header|title=[[Dragon Quest]]|subtitle=NES}}
{{Teleportal|entry|info=B2 bottom right corner|destination=[[Mercado]]|game=[[Dragon Warrior II]]|console=NES}}
{{Teleportal|entry|info=B2 bottom right corner|destination=[[Mercado]]}}
{{Teleportal|entry|info=Behind [[Final Key]] door|destination=Shrine East of Isis|game=[[Dragon Warrior III]]|console=GBC}}
{{Teleportal|entry|info=Behind [[Final Key]] door|destination=Shrine East of Isis}}
{{Teleportal|footer}}
{{Teleportal|footer}}
</pre>
</pre>

Revision as of 13:07, 27 July 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|title=[[Dragon Quest IV]]|subtitle=NES}}
  • header: A required parameter which marks this as the start of an teleportal table.
  • title: The title of the teleportal table. Should be a link to a game if there is more than one teleportal table. Otherwise, it should be "Teleportals".
  • subtitle: Should be the console version when title is a game name.

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.

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

Dragon Quest (NES)
Info Destination
B2 bottom right corner Mercado
Behind Final Key door Shrine East of Isis

Code

{{Teleportal|header|title=[[Dragon Quest]]|subtitle=NES}}
{{Teleportal|entry|info=B2 bottom right corner|destination=[[Mercado]]}}
{{Teleportal|entry|info=Behind [[Final Key]] door|destination=Shrine East of Isis}}
{{Teleportal|footer}}