Template:ItemLocation/doc: Difference between revisions
From Dragon Quest Wiki
FlyingRagnar (talk | contribs) mNo edit summary |
FlyingRagnar (talk | contribs) 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 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''' | *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'''. Also, if the current game has more than one console version and the item does not appear in this location in all versions, it should noted which versions it does appear in using parentheses (i.e. (NES, GBC)). | ||
*info: This should be informative text about the item in the location parameter. If the item is sold in a shop, the price should be listed here. | |||
* | |||
===Footer=== | ===Footer=== | ||
The footer call marks the end of the location table. | The footer call marks the end of the location table. | ||
Line 21: | Line 20: | ||
===Sample=== | ===Sample=== | ||
{{ItemLocation|header}} | {{ItemLocation|header}} | ||
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop | {{ItemLocation|entry|location=Various locations (GBC)|info=Werewolf item drop}} | ||
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn | {{ItemLocation|entry|location=[[Garinham]] (NES, GBC)|info=Treasure chest on 2F of inn}} | ||
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson| | {{ItemLocation|entry|location=[[Kol]] (SNES)|info=Given by townsperson}} | ||
{{ItemLocation|entry|location=[[Mercado]] (NES)|info=Sold at weapon shop (1000g)}} | |||
{{ItemLocation|footer}} | {{ItemLocation|footer}} | ||
===Code=== | ===Code=== | ||
<pre> | <pre> | ||
{{ItemLocation|header}} | {{ItemLocation|header}} | ||
{{ItemLocation|entry|location=Various locations|info=Werewolf item drop | {{ItemLocation|entry|location=Various locations (GBC)|info=Werewolf item drop}} | ||
{{ItemLocation|entry|location=[[Garinham]]|info=Treasure chest on 2F of inn | {{ItemLocation|entry|location=[[Garinham]] (NES, GBC)|info=Treasure chest on 2F of inn}} | ||
{{ItemLocation|entry|location=[[Kol]]|info=Given by townsperson| | {{ItemLocation|entry|location=[[Kol]] (SNES)|info=Given by townsperson}} | ||
{{ItemLocation|footer | {{ItemLocation|entry|location=[[Mercado]] (NES)|info=Sold at weapon shop (1000g)}} | ||
{{ItemLocation|footer} | |||
</pre> | </pre> |
Revision as of 22:30, 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). For things like enemy item drops, this should just be something generic like 'Various Locations', however this only applies to random occurences. Also, if the current game has more than one console version and the item does not appear in this location in all versions, it should noted which versions it does appear in using parentheses (i.e. (NES, GBC)).
- info: This should be informative text about the item in the location parameter. If the item is sold in a shop, the price should be listed here.
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 |
Various locations (GBC) | Werewolf item drop |
Garinham (NES, GBC) | Treasure chest on 2F of inn |
Kol (SNES) | Given by townsperson |
Mercado (NES) | Sold at weapon shop (1000g) |
Code
{{ItemLocation|header}} {{ItemLocation|entry|location=Various locations (GBC)|info=Werewolf item drop}} {{ItemLocation|entry|location=[[Garinham]] (NES, GBC)|info=Treasure chest on 2F of inn}} {{ItemLocation|entry|location=[[Kol]] (SNES)|info=Given by townsperson}} {{ItemLocation|entry|location=[[Mercado]] (NES)|info=Sold at weapon shop (1000g)}} {{ItemLocation|footer}