Template:LocationItem/doc: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
The LocationItem template is used to display items acquired at various locations in Dragon Quest games.  It applies to items found in treasure chests, in various furniture, or from non-player characters.
The LocationItem template is used to display items acquired at various locations in Dragon Quest games.  It applies to items found in treasure chests, in various furniture, or from non-player characters.  Each set of LocationItem calls is made to represent a '''single game''' in cases where there is more than 1 game/version.


==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>{{LocationItem|header|float=right}}</pre>
<pre>{{LocationItem|header|title={{Dragon Quest III}}|subtitle={{NES}}}}</pre>
*header: A required parameter which marks this as the start of an items table.
*header: A required parameter which marks this as the start of an items table.
*title: A required parameter specifying the title of the item table.  This should be a link to the game name in cases where there is more than 1, otherwise it should simply be "Items".
*subtitle: An optional parameter to enhance the title.  Used only in cases where title is the game name, subtitle will then be the console version (i.e NES).
===Entries===
===Entries===
Each entry in the items table is represented by a single template call.
Each entry in the items table is represented by a single template call.
<pre>{{LocationItems|entry|item=[[Boxer Shorts]]|location=B2 left corner|game=[[Dragon Warrior]]|console=NES}}</pre>
<pre>{{LocationItem|entry|item=[[Boxer shorts]]|location=In a drawer in the [[inn]]}}</pre>
*entry: A required parameter which marks this as a single item table entry.
*entry: A required parameter which marks this as a single item table entry.
*item: The item name.  Should be a link to an interwiki article.
*item: The item name.  Should be a link to an interwiki article.
*location: Location of the item.  Should be descriptive enough that it is easy to locate.
*location: Location of the item.  Should be descriptive enough that it is easy to locate.
*game: The game this item 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, item, and location parameters are the same!
===Footer===
===Footer===
The footer call marks the end of the item table.
The footer call marks the end of the item table.
Line 21: Line 22:
==Example==
==Example==
===Sample===
===Sample===
{{LocationItem|header}}
{{LocationItem|header|title={{Dragon Quest III}}|subtitle={{NES}}}}
{{LocationItem|entry|item=[[Antidote Herb]]|location=Barrel in southwest house|game=[[Dragon Warrior II]]|console=NES}}
{{LocationItem|entry|item=[[Antidotal herb]]|location=Barrel in southwest house}}
{{LocationItem|entry|item=[[Leather Shield]]|location=Behind [[Final Key]] door|game=[[Dragon Warrior III]]|console=GBC}}
{{LocationItem|entry|item=[[Leather shield]]|location=Behind [[Ultimate Key]] door}}
{{LocationItem|footer}}
{{LocationItem|footer}}
===Code===
===Code===
<pre>
<pre>
{{LocationItem|header}}
{{LocationItem|header|title={{Dragon Quest III}}|subtitle={{NES}}}}
{{LocationItem|entry|item=[[Antidote Herb]]|location=Barrel in southwest house|game=[[Dragon Warrior II]]|console=NES}}
{{LocationItem|entry|item=[[Antidotal herb]]|location=Barrel in southwest house}}
{{LocationItem|entry|item=[[Leather Shield]]|location=Treasure chest behind [[Final Key]] door|game=[[Dragon Warrior III]]|console=GBC}}
{{LocationItem|entry|item=[[Leather shield]]|location=Behind [[Ultimate Key]] door}}
{{LocationItem|footer}}}
{{LocationItem|footer}}
</pre>
</pre>

Latest revision as of 19:54, 29 February 2020

The LocationItem template is used to display items acquired at various locations in Dragon Quest games. It applies to items found in treasure chests, in various furniture, or from non-player characters. Each set of LocationItem calls is made to represent a single game in cases where there is more than 1 game/version.

Usage[edit source]

In almost all cases, using this template should be preceded by an Items heading on the article it is being transcluded onto. This is because there is no label marking the table as items data within this template. This is consistent with other location templates.

Header[edit source]

A header call to this template should be the first usage of this template on any page.

{{LocationItem|header|title={{Dragon Quest III}}|subtitle={{NES}}}}
  • header: A required parameter which marks this as the start of an items table.
  • title: A required parameter specifying the title of the item table. This should be a link to the game name in cases where there is more than 1, otherwise it should simply be "Items".
  • subtitle: An optional parameter to enhance the title. Used only in cases where title is the game name, subtitle will then be the console version (i.e NES).

Entries[edit source]

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

{{LocationItem|entry|item=[[Boxer shorts]]|location=In a drawer in the [[inn]]}}
  • entry: A required parameter which marks this as a single item table entry.
  • item: The item name. Should be a link to an interwiki article.
  • location: Location of the item. Should be descriptive enough that it is easy to locate.

Footer[edit source]

The footer call marks the end of the item table.

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

Example[edit source]

Sample[edit source]

Dragon Quest III (NES)
Item Location
Antidotal herb Barrel in southwest house
Leather shield Behind Ultimate Key door

Code[edit source]

{{LocationItem|header|title={{Dragon Quest III}}|subtitle={{NES}}}}
{{LocationItem|entry|item=[[Antidotal herb]]|location=Barrel in southwest house}}
{{LocationItem|entry|item=[[Leather shield]]|location=Behind [[Ultimate Key]] door}}
{{LocationItem|footer}}