Template:LockedDoor/doc: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
(updated to match content)
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>{{LockedDoor|header|float=right}}</pre>
<pre>{{LockedDoor|header|title=[[Dragon Quest IV]]|subtitle=NES}}</pre>
*header: A required parameter which marks this as the start of a locked door table.
*header: A required parameter which marks this as the start of a locked door table.
*float: The float parameter is optionalIt represents the CSS float style and should be 'left', 'right', or 'center'The default is ''left''.
*collapsed: An optional parameter which will cause the table to be collapsed on page load.
*title: A required parameter specifying the title of the tableFor articles with more than one table, this should be a link to the specific game it represents.  Otherwise, it should just be "Locked Doors".
*subtitle: An optional subtitleTypically will be the console version (i.e. GBC)
===Entries===
===Entries===
Each entry in the locked door table is represented by a single template call.
Each entry in the locked door table is represented by a single template call.
Line 14: Line 16:
*keytype: The type of key this door requires to be opened.  Should be an interwiki link to the key article.
*keytype: The type of key this door requires to be opened.  Should be an interwiki link to the key article.
*info: General info about the location of the door.
*info: General info about the location of the door.
*game: The game this door 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, keytype and info parameters are the same.
===Footer===
===Footer===
The footer call marks the end of the LockedDoor table.
The footer call marks the end of the LockedDoor table.
Line 22: Line 22:
==Example==
==Example==
===Sample===
===Sample===
{{LockedDoor|header}}
{{LockedDoor|header|title=[[Dragon Quest III]]|subtitle=NES}}
{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner|game=[[Dragon Warrior II]]|console=NES}}
{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner}}
{{LockedDoor|entry|keytype=[[Final Key]]|info=In throne room|game=[[Dragon Warrior III]]|console=GBC}}
{{LockedDoor|entry|keytype=[[Final Key]]|info=In throne room}}
{{LockedDoor|footer}}
{{LockedDoor|footer}}
===Code===
===Code===
<pre>
<pre>
{{LockedDoor|header}}
{{LockedDoor|header|title=[[Dragon Quest III]]|subtitle=NES}}
{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner|game=[[Dragon Warrior II]]|console=NES}}
{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner}}
{{LockedDoor|entry|keytype=[[Final Key]]|info=In throne room|game=[[Dragon Warrior III]]|console=GBC}}
{{LockedDoor|entry|keytype=[[Final Key]]|info=In throne room}}
{{LockedDoor|footer}}
{{LockedDoor|footer}}
</pre>
</pre>

Revision as of 14:56, 26 July 2010

The LockedDoor template is used to display locked doors at various locations in Dragon Quest games.

Usage

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

{{LockedDoor|header|title=[[Dragon Quest IV]]|subtitle=NES}}
  • header: A required parameter which marks this as the start of a locked door table.
  • collapsed: An optional parameter which will cause the table to be collapsed on page load.
  • title: A required parameter specifying the title of the table. For articles with more than one table, this should be a link to the specific game it represents. Otherwise, it should just be "Locked Doors".
  • subtitle: An optional subtitle. Typically will be the console version (i.e. GBC)

Entries

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

{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 left corner|game=[[Dragon Warrior]]|console=NES}}
  • entry: A required parameter which marks this as a single locked door table entry.
  • keytype: The type of key this door requires to be opened. Should be an interwiki link to the key article.
  • info: General info about the location of the door.

Footer

The footer call marks the end of the LockedDoor table.

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

Example

Sample

Dragon Quest III (NES)
Key Type Info
Silver Key B2 bottom right corner
Final Key In throne room

Code

{{LockedDoor|header|title=[[Dragon Quest III]]|subtitle=NES}}
{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner}}
{{LockedDoor|entry|keytype=[[Final Key]]|info=In throne room}}
{{LockedDoor|footer}}