Template:Equipment/doc: Difference between revisions

From Dragon Quest Wiki
m (18 revisions: importing Template namespace from Wikia)
(updating to match template)
Line 7: Line 7:
<pre>{{Equipment|header|image=Broad_sword.png|name=Broad Sword|console=NES}}</pre>
<pre>{{Equipment|header|image=Broad_sword.png|name=Broad Sword|console=NES}}</pre>
*'''header''': A required parameter which marks this as the start of a equipment table.
*'''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.
*'''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.
*'''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.
Line 21: Line 20:
<pre>{{Equipment|footer|sellPrice=300|flavor=This is some flavor.|notes=These are notes.}}</pre>
<pre>{{Equipment|footer|sellPrice=300|flavor=This is some flavor.|notes=These are notes.}}</pre>
*'''footer''': A required parameter marking the template as the footer.
*'''footer''': A required parameter marking the template as the footer.
*'''buyPrice''': The price of the equipment when bought from a shop.  The 'G' for gold is added automatically.
*'''buyPrice''': The price of the equipment when bought from a shop.   
*'''sellPrice''': The price of the equipment when sold to a shop. The 'G' for gold is added automatically.
*'''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.
*'''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.
*'''notes''': Any special notes about this particular piece of equipment (cursed, in-battle effects, etc.) This parameter is optional.
==Example==
==Example==
===Sample===
===Sample===
{{Equipment|header|image=Lottery_icon.png|name=Giant Hammer|console=GBC}}
{{Equipment|header|image=Lottery_icon.png|name=Giant Hammer}}
{{Equipment|stat|name=Attack|modifier=+8}}
{{Equipment|stat|name=Attack|modifier=+8}}
{{Equipment|stat|name=Agility|modifier=-10}}
{{Equipment|stat|name=Agility|modifier=-10}}
{{Equipment|footer|buyPrice=60|sellPrice=30|flavor=A giant hammer with destructive power.|notes=Casts Slow when used in battle.}}
{{Equipment|footer|buyPrice=60g|sellPrice=30g|flavor=A giant hammer with destructive power.|notes=Casts Slow when used in battle.}}
===Code===
===Code===
<pre>
<pre>
Line 36: Line 35:
{{Equipment|stat|name=Attack|modifier=+8}}
{{Equipment|stat|name=Attack|modifier=+8}}
{{Equipment|stat|name=Agility|modifier=-10}}
{{Equipment|stat|name=Agility|modifier=-10}}
{{Equipment|footer|buyPrice=60|sellPrice=30
{{Equipment|footer|buyPrice=60g|sellPrice=30g
|flavor=A giant hammer with destructive power.
|flavor=A giant hammer with destructive power.
|notes=Casts Slow when used in battle.}}
|notes=Casts Slow when used in battle.}}
</pre>
</pre>