Template:CharacterEquipmentList: Difference between revisions

From Dragon Quest Wiki
(Implemented template)
mNo edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
See [[Template:CharacterEquipmentList/doc]] for documentation on this template.<br/>
{{{{PAGENAME}}/doc}}
[[Category:Character templates|Character]]
[[Category:Character templates|Character]]
</noinclude>
</noinclude>
<onlyinclude><includeonly>
<onlyinclude><includeonly>
{{ #switch: {{{1}}}  
{{ #switch: {{{1}}}  
| header = {{{!}} cellpadding="5" cellspacing="0" class="characterTemplateTable"
| header =  
{{!}}-
{{CharacterTable
{{!}} class="characterTemplateHeader" {{!}} {{{equipmentType}}}
|{{{1}}}
{{!}} class="characterTemplateHeader" {{!}} {{{statModified}}}
|title={{{title}}}
{{!}}-
|header1={{{equipmentType}}}
| entry =
|header2=Modifier(s)
{{!}}-
|subtitle={{{subtitle|}}} }}
{{!}} class="characterTemplateCell" {{!}} {{{item}}}
| entry =  
{{!}} class="characterTemplateCell" {{!}} {{{statModifier}}}
{{CharacterTable
{{!}}-
|{{{1}}}
| footer = {{!}}} }}
|entry1={{{item}}}
</includeonly></onlyinclude>
|entry2={{{statModifier}}}}}
| note =
{{CharacterTable
|{{{1}}}
|text={{{text}}}}}
| footer =  
{{CharacterTable|{{{1}}}}}}}</includeonly></onlyinclude>

Latest revision as of 09:49, 21 October 2010

The CharacterEquipmentList template is used to list equipment which a character is able to equip. A separate list should be used for each type of equipment (Weapons, Armor, Shields, Helmets).

Usage[edit]

Header[edit]

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

{{CharactEquipmentList|header|equipmentType=Helmets|statModified=Defense}}
  • header: A required parameter which marks this as the start of an equipment list table.
  • equipmentType: The type of equipment in this table (weapon, armor, shield, etc.)
  • title: A required parameter specifying the title of this table. Normally the name of the game.
  • subtitle: An optional parameter specifying a subtitle. Normally the console version of the game when more than one exists.

Entry[edit]

Each entry call designates a single equipment item

{{CharacterEquipmentList|entry|item=[[Leather hat]]|statModifier=+20}}
  • entry: A required parameter marking an entry.
  • item: The equipment item. Should be an interwiki link. Should also include console information if there are variations between equipment in different releases (i.e. (GBC)).
  • statModifier: The modifier amount of the main stat the equipment modifies. Should include a '+' symbol.

Note[edit]

A note can be added where additional detail is necessary.

{{CharacterEquipmentList|note|text=This is a note.}}
  • note: A required parameter marking this as a note.
  • text: The text of the note.

Footer[edit]

The footer call marks the end of the equipment table.

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

Example[edit]

Sample[edit]

Dragon Quest III (NES
Weapon Modifier(s)
Club Attack +6
Thorn whip Attack +20
This is my note.

Code[edit]

{{CharacterEquipmentList|header|title={{Dragon Quest III}}|subtitle={{NES}}|equipmentType=Weapon}}
{{CharacterEquipmentList|entry|item=[[Oaken club|Club]]|statModifier=Attack +6}}
{{CharacterEquipmentList|entry|item=[[Thorn whip]]|statModifier=Attack +20}}
{{CharacterEquipmentList|note|text=This is my note.}}
{{CharacterEquipmentList|footer}}