Template:CharacterSpellList: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
changing formatting, added collapsed param
mNo edit summary
 
(16 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<onlyinclude><includeonly>{{#switch: {{{1}}}
See [[Template:CharacterSpellList/doc]] for documentation on this template.<br/>
| header =
[[Category:Character templates|Character]]
{{CharacterTable
|{{{1}}}
|title={{{title}}}
|header1=Spell
|header2=Level Learned
|subtitle={{{subtitle|}}} }}
| entry =
{{CharacterTable
|{{{1}}}
|entry1={{{spell}}}
|entry2={{{level}}}}}
| note =
{{CharacterTable
|{{{1}}}
|text={{{text}}}}}
| footer =
{{CharacterTable|{{{1}}}}}}}</includeonly></onlyinclude><noinclude>
{{CharacterSpellList/doc}}
[[Category:Character templates]]
</noinclude>
</noinclude>
<onlyinclude><includeonly>
{{ #switch: {{{1}}}
| header = {{{!}} cellpadding="5" cellspacing="0" class="characterTemplateTable collapsible {{#if: {{{collapsed|}}} | collapsed }}"
! class="characterTemplateHeader" {{!}} Inn
{{!}}-
{{!}} class="characterTemplateSubheader" {{!}} Spell
{{!}} class="characterTemplateSubheader" {{!}} Level Learned
{{!}}-
| entry =
{{!}}-
{{!}} class="characterTemplateCell" {{!}} {{{spell}}}
{{!}} class="characterTemplateCell" {{!}} {{{level}}}
{{!}}-
| footer = {{!}}} }}
</includeonly></onlyinclude>

Latest revision as of 01:32, 3 March 2026

The CharacterSpellList template is used to display a list of spells a character can learn. Each set of calls to this template represents the list of spells for a single character in a single version of a game.

Usage[edit source]

Header[edit source]

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

{{CharacterSpellList|header|title=Dragon Quest II|subtitle=NES}}
  • header: A required parameter which marks this as the start of a spell list table.
  • title: A required parameter specifying the title of the table. Typically the name of the game.
  • subtitle: An optional parameter specifying a subtitle for the table. Typically the console version of a game when there is more than one.

Entry[edit source]

Each entry call designates a single spell.

{{CharacterSpellList|entry|spell=Heal|level=10}}
  • entry: A required parameter marking an entry.
  • spell: The name of the spell. Should be an interwiki link.
  • level: The level at which the spell is learned. For spells which are learned by a different method than leveling, this parameter should be N/A, and a note should be made in the description outside the table.

Note[edit source]

A note can be added to the table if additional details are necessary.

{{CharacterSpellList|note|text=This is a note}}
  • note: A required parameter marking the note.
  • text: The text to be displayed as a note.

Footer[edit source]

The footer call marks the end of the spell table.

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

Example[edit source]

Sample[edit source]

Dragon Quest II (GBC) 
Spell Level Learned
Heal 10
Hocus Pocus 45
Whack 12
Whack 15
Zoom N/A
The Zoom spelled is learned by a special event in the town of Zoomingale.

Code[edit source]

{{CharacterSpellList|header|title=Dragon Quest II|subtitle=GBC}}
{{CharacterSpellList|entry|spell=[[Heal]]|level=10}}
{{CharacterSpellList|entry|spell=[[Hocus Pocus]]|level=45}}
{{CharacterSpellList|entry|spell=[[Whack]]|level=12}}
{{CharacterSpellList|entry|spell=[[Whack]]|level=15}}
{{CharacterSpellList|entry|spell=[[Zoom]]|level=N/A}}
{{CharacterSpellList|note|text=The Zoom spelled is learned by a special event in the town of [[Zoomingale]].}}
{{CharacterSpellList|footer}}