Template:CharacterList/doc: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
(Modified to remove spell attributes)
Line 1: Line 1:
The CharacterList template is used to display a set of characters who can equip a certain piece of equipment in Dragon Quest games.  It specifically applies to the set of characters which share '''some common attribute''' (commonly a piece of equipment that can be equipped or a spell that can be learned) in a '''single game'''.
The CharacterList template is used to display a set of characters who can equip a certain piece of equipment in Dragon Quest games.  It specifically applies to the set of characters which can equip a piece of equipment in a '''single game'''.


==Usage==
==Usage==
Line 5: Line 5:
===Header===
===Header===
A header call to this template should be the first usage of this template on any page.
A header call to this template should be the first usage of this template on any page.
====Equipment====
<pre>{{CharacterList|header}}</pre>
When used for equipment, the header should be as follows.
<pre>{{CharacterList|header|equipment}}</pre>
*header: A required parameter which marks this as the start of a character table.
*header: A required parameter which marks this as the start of a character table.
*equipment: A required parameter to utilize the correct styles.
====Spells====
When used for spells, the header should be as follows.
<pre>{{CharacterList|header|spell}}</pre>
*header: A required parameter which marks this as the start of a character table.
*spell: A required parameter to utilize the correct styles.
===Entries===
===Entries===
Each entry in the character table is represented by a single template call.
Each entry in the character table is represented by a single template call.
Line 26: Line 18:
==Example==
==Example==
===Sample===
===Sample===
{{CharacterList|header|equipment}}
{{CharacterList|header}}
{{CharacterList|entry|character=[[Ragnar]] (NES, GBC)}}
{{CharacterList|entry|character=[[Ragnar]] (NES, GBC)}}
{{CharacterList|entry|character=[[Bianca]] (SNES)}}
{{CharacterList|entry|character=[[Bianca]] (SNES)}}
Line 32: Line 24:
===Code===
===Code===
<pre>
<pre>
{{CharacterList|header|equipment}}
{{CharacterList|header}}
{{CharacterList|entry|character=[[Ragnar]] (NES, GBC)}}
{{CharacterList|entry|character=[[Ragnar]] (NES, GBC)}}
{{CharacterList|entry|character=[[Bianca]] (SNES)}}
{{CharacterList|entry|character=[[Bianca]] (SNES)}}
{{CharacterList|footer}}
{{CharacterList|footer}}
</pre>
</pre>

Revision as of 11:12, 16 March 2010

The CharacterList template is used to display a set of characters who can equip a certain piece of equipment in Dragon Quest games. It specifically applies to the set of characters which can equip a piece of equipment in a single game.

Usage

In almost all cases, using this template should be preceded by a heading for the game and a subheading of 'Characters'. This specifies what information the table actually contains.

Header

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

{{CharacterList|header}}
  • header: A required parameter which marks this as the start of a character table.

Entries

Each entry in the character table is represented by a single template call.

{{CharacterList|entry|character=[[Ragnar]]}}
  • entry: A required parameter which marks this as a single character table entry.
  • character: The name of the character. Should be an interwiki link. Also, if this character only applies to a specific console version of the game, this should be noted in parentheses (i.e. (NES, GBC)).

Footer

The footer call marks the end of the character table.

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

Example

Sample

Characters


Ragnar (NES, GBC)
Bianca (SNES)

Code

{{CharacterList|header}}
{{CharacterList|entry|character=[[Ragnar]] (NES, GBC)}}
{{CharacterList|entry|character=[[Bianca]] (SNES)}}
{{CharacterList|footer}}