Template:Equipment: Difference between revisions

From Dragon Quest Wiki
(Added sections for weapon class, who can equip)
(Made parameters optional)
Line 15: Line 15:
{{!}}-
{{!}}-
| footer =
| footer =
{{#if: {{{level|}}} |
{{!}}-
{{!}}-
{{!}} class="equipmentTemplateHeader" {{!}} Weapon Class
{{!}} class="equipmentTemplateHeader" {{!}} Weapon Class
{{!}} class="equipmentTemplateCell" {{!}} {{{class}}}
{{!}} class="equipmentTemplateCell" {{!}} {{#if: {{{class|}}} | {{{class}}}
{{!}}-
{{!}}-
{{!}} class="equipmentTemplateHeader" {{!}} Equipable by
{{!}} class="equipmentTemplateHeader" {{!}} Equipable by
{{!}} class="equipmentTemplateCell" {{!}} {{{equipableBy}}}
{{!}} class="equipmentTemplateCell" {{!}} {{#if: {{{equipableBy|}}} | {{{equipableBy}}}
{{!}}-
{{!}}-
{{!}} class="equipmentTemplateHeader" {{!}} Buy Price  
{{!}} class="equipmentTemplateHeader" {{!}} Buy Price  

Revision as of 19:45, 21 September 2016

The Equipment template is used to display information for various pieces of equipment in Dragon Quest games. This template covers all types of equipment (weapons, armor, shields, helmets, accessories). This template describes a single piece of equipment for a single game.

Usage

In almost all cases, using this template should be preceded by a heading of the game it comes from. This is because the template only covers a single item in a single game. Each game, therefore, should have its own instance of this template.

Header

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

{{Equipment|header|image=Broad_sword.png|name=Broad Sword|console=NES}}
  • header: A required parameter which marks this as the start of a equipment table.
  • console: An optional parameter for specifying the console version of the game the equipment appears in.
  • name: The name of the equipment. This should be the localization name used in the game in which this piece of equipment appears.
  • image: if there is an image of this piece of equipment, it should be included here. Note this is the filename only, not a link to the image.

Entry

An entry call is made to designate equipment data for a specific console. Note that pieces of equipment that have the exact same attributes across different consoles can be described in the same entry.

{{Equipment|stat|name=Attack|modifier=+10}}
  • stat: A required parameter marking a stat entry.
  • name: The name of the stat being modified by the equipment
  • modifier: The value (+/-) the stat is being modified. Should include a + or - in front of the value.

Footer

The footer call marks the end of the equipment table.

{{Equipment|footer|sellPrice=300|flavor=This is some flavor.|notes=These are notes.}}
  • footer: A required parameter marking the template as the footer.
  • class: The class of the piece of equipment.
  • equipableBy: List of characters who can equip the weapon.
  • buyPrice: The price of the equipment when bought from a shop.
  • sellPrice: The price of the equipment when sold to a shop.
  • flavor: If there is specific flavor text used to describe this equipment in the game, it should be quoted here. This paramter is optional.
  • notes: Any special notes about this particular piece of equipment (cursed, in-battle effects, etc.) This parameter is optional.

Example

Sample

{{#switch: header | header =

Lottery icon.png  Giant Hammer  (GBC)
stat =
Giant Hammer {{{modifier}}}
footer =

{{#if: |

Weapon Class {{#if: | {{{class}}}
Equipable by

{{#switch: stat

header =
 Attack
stat =
Attack +8
footer =

{{#if: |

Weapon Class {{#if: | {{{class}}}
Equipable by

{{#switch: stat

header =
 Agility
stat =
Agility -10
footer =

{{#if: |

Weapon Class {{#if: | {{{class}}}
Equipable by

{{#switch: footer

header =
 {{{name}}}
stat =
{{{name}}} {{{modifier}}}
footer =

{{#if: |

Weapon Class {{#if: Hammer | Hammer
Equipable by

Code

{{Equipment|header|image=Lottery_icon.png|name=Giant Hammer|console=GBC}}
{{Equipment|stat|name=Attack|modifier=+8}}
{{Equipment|stat|name=Agility|modifier=-10}}
{{Equipment|footer|buyPrice=60g|sellPrice=30g
|flavor=A giant hammer with destructive power.
|notes=Casts Slow when used in battle.}}