Template:ItemLocation/doc: Difference between revisions

From Dragon Quest Wiki
(Created page)
 
mNo edit summary
Line 11: Line 11:
<pre>{{ItemLocation|entry|location=[[Tantegel Castle]]|info=Treasure chest on B2 left corner|console=NES,GBC}}</pre>
<pre>{{ItemLocation|entry|location=[[Tantegel Castle]]|info=Treasure chest on B2 left corner|console=NES,GBC}}</pre>
*entry: A required parameter which marks this as a single location table entry.
*entry: A required parameter which marks this as a single location table entry.
*location: Location of the item.  Should be an interwiki link to a specific place.
*location: Location of the item.  Should be an interwiki link to a specific place if applicable.  Otherwise, should be an appropriate description (i.e. Overworld near Rimuldar).
*info: Additional information text.  Can be a description of where the item is located within the location or other additional info.
*info: Additional information text.  Can be a description of where the item is located within the location or other additional info.
*console: The console version of the game. '''Note:''' This parameter should contain multiple console values separated by commas if the location and notes parameters are the same.
*console: The console version of the game. '''Note:''' This parameter should contain multiple console values separated by commas if the location and notes parameters are the same.
Line 21: Line 21:
===Sample===
===Sample===
{{ItemLocation|header}}
{{ItemLocation|header}}
{{ItemLocation|entry|location=Overworld near Mercado|info=Werewolf item drop|console=GBC}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn|console=NES,GBC}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn|console=NES,GBC}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson|console=SNES}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson|console=SNES}}
Line 27: Line 28:
<pre>
<pre>
{{ItemLocation|header}}
{{ItemLocation|header}}
{{ItemLocation|entry|location=Overworld near Mercado|info=Werewolf item drop|console=GBC}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn|console=NES,GBC}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn|console=NES,GBC}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson|console=SNES}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson|console=SNES}}
{{ItemLocation|footer}}
{{ItemLocation|footer}}
</pre>
</pre>

Revision as of 18:23, 20 February 2010

The ItemLocation template is used to display the location of items in Dragon Quest games. It is specifically used to display the locations of a single item in a single game.

Usage

In almost all cases, using this template should be preceded by a heading for the game name and a 'locations' heading.

Header

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

{{ItemLocation|header}}
  • header: A required parameter which marks this as the start of an item location table.

Entries

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

{{ItemLocation|entry|location=[[Tantegel Castle]]|info=Treasure chest on B2 left corner|console=NES,GBC}}
  • entry: A required parameter which marks this as a single location table entry.
  • location: Location of the item. Should be an interwiki link to a specific place if applicable. Otherwise, should be an appropriate description (i.e. Overworld near Rimuldar).
  • info: Additional information text. Can be a description of where the item is located within the location or other additional info.
  • console: The console version of the game. Note: This parameter should contain multiple console values separated by commas if the location and notes parameters are the same.

Footer

The footer call marks the end of the location table.

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

Example

Sample

{{{name}}}
Location Info
Overworld near Mercado Werewolf item drop
Garinham Treasure chest on 2F of inn
Kol Given by townsperson

Code

{{ItemLocation|header}}
{{ItemLocation|entry|location=Overworld near Mercado|info=Werewolf item drop|console=GBC}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn|console=NES,GBC}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson|console=SNES}}
{{ItemLocation|footer}}