Template:LockedDoor/doc: Difference between revisions
mNo edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The LockedDoor template is used to display locked doors at various locations in Dragon Quest games. | The LockedDoor template is used to display locked doors 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>{{LockedDoor|header| | <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. | ||
* | *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=== | ===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. | ||
<pre>{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 left corner|game= | <pre>{{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 left corner|game={{Dragon Warrior}}|console={{NES}}}}</pre> | ||
*entry: A required parameter which marks this as a single locked door table entry. | *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. | *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. | ||
===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 | {{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner}} | ||
{{LockedDoor|entry|keytype=[[ | {{LockedDoor|entry|keytype=[[Ultimate 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 | {{LockedDoor|entry|keytype=[[Silver Key]]|info=B2 bottom right corner}} | ||
{{LockedDoor|entry|keytype=[[ | {{LockedDoor|entry|keytype=[[Ultimate Key]]|info=In throne room}} | ||
{{LockedDoor|footer}} | {{LockedDoor|footer}} | ||
</pre> | </pre> | ||