Template:ItemLocation/doc: Difference between revisions

From Dragon Quest Wiki
m (5 revisions: importing Template namespace from Wikia)
No edit summary
 
Line 1: Line 1:
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'''.
The ItemLocation template is used to display the location of items in {{Main Series}} games.  It is specifically used to display the locations of a '''single item''' in a '''single game'''.


==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>{{ItemLocation|header|name=medicinal herb|console=GBC}}</pre>
<pre>{{ItemLocation|header|name=Medicinal herb|console={{GBC}}}}</pre>
*'''header''': A required parameter which marks this as the start of an item location table.
*'''header''': A required parameter which marks this as the start of an item location table.
*'''name''': The name of the item.  Should be the localization name of the game in which it appears.
*'''name''': The name of the item.  Should be the localization name of the game in which it appears.
Line 21: Line 21:
==Example==
==Example==
===Sample===
===Sample===
{{ItemLocation|header|name=iron shield|console=GBC}}
{{ItemLocation|header|name=iron shield|console={{GBC}}}}
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop}}
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn}}
{{ItemLocation|entry|location=[[Galenholm|Garinham]]|info=Treasure chest on 2F of inn}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson}}
{{ItemLocation|entry|location=[[Mercado]]|info=Sold at weapon shop (1000g)}}
{{ItemLocation|entry|location=[[Cantlin|Mercado]]|info=Sold at weapon shop (1000g)}}
{{ItemLocation|footer}}
{{ItemLocation|footer}}
===Code===
===Code===
Line 31: Line 31:
{{ItemLocation|header|name=iron shield|console=GBC}}
{{ItemLocation|header|name=iron shield|console=GBC}}
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop}}
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop}}
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn}}
{{ItemLocation|entry|location=[[Garinham]]|info=[[Treasure chest]] on 2F of inn}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson}}
{{ItemLocation|entry|location=[[Mercado]]|info=Sold at weapon shop (1000g)}}
{{ItemLocation|entry|location=[[Cantlin|Mercado]]|info=Sold at weapon shop (1000g)}}
{{ItemLocation|footer}}
{{ItemLocation|footer}}
</pre>
</pre>

Latest revision as of 00:54, 26 January 2022

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[edit]

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

Header[edit]

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

{{ItemLocation|header|name=Medicinal herb|console={{GBC}}}}
  • header: A required parameter which marks this as the start of an item location table.
  • name: The name of the item. Should be the localization name of the game in which it appears.
  • console: An optional parameter. The console version of the game in which this item appears.

Entries[edit]

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}}
  • 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). For things like enemy item drops, this should just be something generic like 'Various Locations', however this only applies to random occurences.
  • info: This should be informative text about the item in the location parameter.

Footer[edit]

The footer call marks the end of the location table.

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

Example[edit]

Sample[edit]

iron shield (GBC)
Location Info
Various locations Werewolf item drop
Garinham Treasure chest on 2F of inn
Kol Given by townsperson
Mercado Sold at weapon shop (1000g)

Code[edit]

{{ItemLocation|header|name=iron shield|console=GBC}}
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop}}
{{ItemLocation|entry|location=[[Garinham]]|info=[[Treasure chest]] on 2F of inn}}
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson}}
{{ItemLocation|entry|location=[[Cantlin|Mercado]]|info=Sold at weapon shop (1000g)}}
{{ItemLocation|footer}}