Template:CharacterList: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
m (transcluding documentation)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
See [[Template:CharacterList/doc]] for documentation on this template.<br/>
{{{{PAGENAME}}/doc}}
[[Category:Equipment templates|CharacterList]]
[[Category:Equipment templates|{{PAGENAME}}]]
[[Category:Spell templates|CharacterList]]
</noinclude>
</noinclude>
<onlyinclude><includeonly>
<onlyinclude><includeonly>
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| header = {{{!}} cellpadding="5" cellspacing="0" width="150px" {{#switch: {{{2}}} | equipment = class="equipmentTemplateTable" | spell = class="spellTemplateTable" }}
| header = {{{!}} cellpadding="0" cellspacing="0" class="equipmentTemplateTable"
{{!}}-
{{!}}-
{{!}} class="equipmentTemplateHeader" {{!}} Character
{{!}} class="equipmentTemplateHeader" {{!}} Characters
{{!}} class="equipmentTemplateHeader" {{!}} Console
{{!}}
{{!}}-
| entry = {{!}}-  
| entry = {{!}}-  
{{!}} class="equipmentTemplateCell" {{!}} {{{character}}}
{{!}} class="equipmentTemplateCell" {{!}} {{{character}}}
{{!}} class="equipmentTemplateCell" {{!}} {{{console}}}
{{!}}-  
{{!}}-  
| footer = {{!}}} }}
| footer = {{!}}} }}
</includeonly></onlyinclude>
</includeonly></onlyinclude>

Latest revision as of 10:51, 21 October 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[edit]

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[edit]

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[edit]

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[edit]

The footer call marks the end of the character table.

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

Example[edit]

Sample[edit]

Characters


Ragnar McRyan (NES, GBC)
Bianca Whitaker (SFC)


Code[edit]

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