Template:CharacterList: Difference between revisions

From Dragon Quest Wiki
mNo edit summary
m (transcluding documentation)
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template lists the characters in various games which can equip a single piece of equipment (weapons, armor, shields, helmets, and accessories).<br/>
{{{{PAGENAME}}/doc}}
See [[Template:EquipmentCharacterList/doc]] for more information on this template.<br/>
[[Category:Equipment templates|{{PAGENAME}}]]
Below is a sample of this template:
{{EquipmentCharacterList
|float=left
|character1=[[Ragnar]],[[Alena]]
|game1=[[Dragon Quest IV]]
|console1=NES,DS
}}
[[Category:Equipment templates]]
</noinclude>
</noinclude>
<onlyinclude>
<onlyinclude><includeonly>
<includeonly>
{{ #switch: {{{1}}}  
{| width=290px style="font-family: verdana; margin: 10px 10px 10px 10px; font-size: 10px; background-color: #ffffff; color:black; border:1px solid #8888aa; {{#if: {{{float|}}} | float:{{{float}}}; clear:{{{float}}} | float:right; clear:right; }}"
| header = {{{!}} cellpadding="0" cellspacing="0" class="equipmentTemplateTable"
|-
{{!}}-
| colspan="3" style="background-color:firebrick; color:white; text-align:center; font-size:120%;" |'''Characters'''
{{!}} class="equipmentTemplateHeader" {{!}} Characters
<!-- Begin if statements for optional parameters -->
{{!}}
{{#if: {{{character1|}}} | {{!}}-
| entry = {{!}}-  
{{!}} {{{character1}}}
{{!}} class="equipmentTemplateCell" {{!}} {{{character}}}
{{!}} {{{game1}}}
{{!}}-  
{{!}} {{{console1}}}
| footer = {{!}}} }}
}}
</includeonly></onlyinclude>
{{#if: {{{character2|}}} | {{!}}-
{{!}} {{{character2}}}
{{!}} {{{game2}}}
{{!}} {{{console2}}}
}}
{{#if: {{{character3|}}} | {{!}}-
{{!}} {{{character3}}}
{{!}} {{{game3}}}
{{!}} {{{console3}}}
}}
{{#if: {{{character4|}}} | {{!}}-
{{!}} {{{character4}}}
{{!}} {{{game4}}}
{{!}} {{{console4}}}
}}
{{#if: {{{character5|}}} | {{!}}-
{{!}} {{{character5}}}
{{!}} {{{game5}}}
{{!}} {{{console5}}}
}}
{{#if: {{{character6|}}} | {{!}}-
{{!}} {{{character6}}}
{{!}} {{{game6}}}
{{!}} {{{console6}}}
}}
{{#if: {{{character7|}}} | {{!}}-
{{!}} {{{character7}}}
{{!}} {{{game7}}}
{{!}} {{{console7}}}
}}
{{#if: {{{character8|}}} | {{!}}-
{{!}} {{{character8}}}
{{!}} {{{game8}}}
{{!}} {{{console8}}}
}}
{{#if: {{{character9|}}} | {{!}}-
{{!}} {{{character9}}}
{{!}} {{{game9}}}
{{!}} {{{console9}}}
}}
{{#if: {{{character10|}}} | {{!}}-
{{!}} {{{character10}}}
{{!}} {{{game10}}}
{{!}} {{{console10}}}
}}
|}
</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}}