Template:CharacterExpList: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
m moved Template:ExpList to Template:CharacterExpList: more correct name
mNo edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<onlyinclude><includeonly>{{#switch: {{{1}}}
See [[Template:ExpList/doc]] for documentation on this template.<br/>
| header =
[[Category:Character templates|ExpList]]
{{CharacterTable
|{{{1}}}
|title={{{title}}}
|header1=Level
|header2=Experience
|subtitle={{{subtitle|}}} }}
| entry =
{{CharacterTable
|{{{1}}}
|entry1={{{level}}}
|entry2={{{exp}}} }}
| note =
{{CharacterTable
|{{{1}}}
|text={{{text}}} }}
| footer =
{{CharacterTable|{{{1}}} }} }}</includeonly></onlyinclude><noinclude>
{{CharacterExpList/doc}}
[[Category:Character templates]]
</noinclude>
</noinclude>
<onlyinclude><includeonly>
{{ #switch: {{{1}}}
| header = {{{!}} cellpadding="5" cellspacing="0" class="characterTemplateTable"
{{!}}-
{{!}} class="characterTemplateHeader" {{!}} Level
{{!}} class="characterTemplateHeader" {{!}} Experience
{{!}}-
| entry =
{{!}}-
{{!}} class="characterTemplateCell" {{!}} {{{level}}}
{{!}} class="characterTemplateCell" {{!}} {{{exp}}}
{{!}}-
| footer = {{!}}} }}
</includeonly></onlyinclude>

Latest revision as of 01:32, 3 March 2026

The CharacterExpList template is used to display a list of experience values to achieve specific levels for a single character. Note that a separate CharacterExpList set should be used for each game in which a character has different level/experience values.

Usage[edit source]

Header[edit source]

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

{{CharacterExpList|header}}
  • header: A required parameter which marks this as the start of a experience list table.
  • title: A required paramter specifying the title. Typically this is the name of the game.
  • subtitle: An optional parameter specifying the subtitle. Typically this is the name of the console/version of the game. This parameter should be specified where there is more than one game.

Entry[edit source]

Each entry call designates a single level.

{{CharacterExpList|entry|level=10|exp=10023}}
  • entry: A required parameter marking an entry.
  • level: The level number
  • exp: The experience value

Note[edit source]

A note can be added for additional details.

{{CharacterExpList|note|text=This is my note.}}
  • note: A required parameter marking a note.
  • text: The text content of the note.

Footer[edit source]

The footer call marks the end of the experience table.

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

Example[edit source]

Sample[edit source]

Dragon Warrior (NES) 
Level Experience
1 223
2 800
3 1324

Code[edit source]

{{CharacterExpList|header|title=Dragon Warrior|subtitle=NES}}
{{CharacterExpList|entry|level=1|exp=223}}
{{CharacterExpList|entry|level=2|exp=800}}
{{CharacterExpList|entry|level=3|exp=1324}}
{{CharacterExpList|footer}}