Template:Spell: Difference between revisions

From Dragon Quest Wiki
No edit summary
No edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| align = right class="infobox bordered" style="width: 23em; font-size: 90%; text-align: left; border:solid 1px #EB2626" cellpadding="3"  
<noinclude>
! colspan="2" style="font-size:110%; text-align: center; background-color: #FFFFFF;" | ''{{{title}}}''
{{{{PAGENAME}}/doc}}
{{qif|test={{{image|}}}|then= {{{image}}}}}
[[Category:Spell templates|{{PAGENAME}}]]
</noinclude>
<onlyinclude><includeonly>
{| cellpadding="0" cellspacing="0" class="spellTemplateTable"  
! colspan="2" class="spellTemplateHeader" | {{#if: {{{image|}}} | {{{image}}}&nbsp; }} {{{name}}} {{#if: {{{console|}}} | ({{{console}}}) }}
|-
| class="spellTemplateHeader" | {{MP}}  
| class="spellTemplateCell" | {{{mp}}}
|-
|-
! style="background-color: #FFFFFF;" | Kanji
| class="spellTemplateHeader" | Effect
| {{{japanese}}}
| class="spellTemplateCell" | {{{effect}}}
|-
|
! style="background-color: #FFFFFF;" | Localized As
{{#if: {{{flavor|}}} |
| {{{names}}}
{{!}}-
|-
{{!}} class="equipmentTemplateHeader" {{!}} Flavor text
! style="background-color: #FFFFFF;" | MP Usage
{{!}} class="equipmentTemplateCell" {{!}} {{{flavor}}} }}
| {{{mp}}}
{{#if: {{{notes|}}} |
|-
{{!}}-
! style="background-color:#FFFFFF;" | Effect
{{!}} class="equipmentTemplateHeader" {{!}} Note
| {{{effect}}}
{{!}} class="equipmentTemplateCell" {{!}} {{{note}}} }}
|}<noinclude>
|} </includeonly></onlyinclude>
 
== Usage ==
<pre>
{{Spell
|title = ''use the title of the article (ex.'' Baikiruto'')''
|image = 
|japanese = ''use kanji only (ex.'' バイキルト'')''
|names = ''example:'' Bikill''<br>'' TwinHits''<br>'' Oomph
|mp = ''if not a constant number (ex. 8) enter the range (ex. 2-4), including the specific detail in the article''
|effect = ''if effect is not constant, use'' various, see article
}}
</pre>
</noinclude>

Latest revision as of 09:37, 12 January 2024

The Spell template is used to display information for spells in Dragon Quest games. This template describes a single spell for a single game version.

Usage[edit]

{{Spell
|console={{NES}}
|name=[[Whack]]
|flavor=Instantly kills a group of enemies
|effect=Has a 50% chance of instantly defeating each enemy in an enemy group
|mp=8
|notes=This spell is only learned late in the game}}
  • console: The console version of the game.
  • name: The name of the spell.
  • image: if there is an image of this item, it should be referenced here. This parameter is optional. Note this should be just the filename, not a link.
  • mp: The mp cost to cast the spell
  • flavor: If there is specific flavor text used to describe this spell in the game, it should be quoted here. This paramter is optional.
  • effect: A general description of what the spell does.
  • notes: Any special notes about this particular spell This parameter is optional.

Example[edit]

Sample[edit]

Sizz (DS)
MP 2
Effect Causes 10-20 points of fire damage to a single enemy
Flavor text Throws a fireball at the enemy

Code[edit]

{{Spell
|console={{DS}}
|name=[[Sizz]]
|mp=2
|flavor=Throws a fireball at the enemy
|effect=Causes 10-20 points of fire damage to a single enemy
|note=This spell is dumb}}