Template:CharacterList/doc: Difference between revisions

m moved Template:EquipmentCharacter/doc to Template:CharacterList/doc: More generic name, since this template can be used for equipment or spells
mNo edit summary
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.
<pre>{{CharacterList|header}}</pre>
===Equipment===
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 19: Line 27:
==Example==
==Example==
===Sample===
===Sample===
{{CharacterList|header}}
{{CharacterList|header|equipment}}
{{CharacterList|entry|character=[[Ragnar]]|console=NES,GBC}}
{{CharacterList|entry|character=[[Ragnar]]|console=NES,GBC}}
{{CharacterList|entry|character=[[Bianca]]|console=SNES,PS2}}
{{CharacterList|entry|character=[[Bianca]]|console=SNES,PS2}}
Line 25: Line 33:
===Code===
===Code===
<pre>
<pre>
{{CharacterList|header}}
{{CharacterList|header|equipment}}
{{CharacterList|entry|character=[[Ragnar]]|console=NES,GBC}}
{{CharacterList|entry|character=[[Ragnar]]|console=NES,GBC}}
{{CharacterList|entry|character=[[Bianca]]|console=SNES,PS2}}
{{CharacterList|entry|character=[[Bianca]]|console=SNES,PS2}}
{{CharacterList|footer}}
{{CharacterList|footer}}
</pre>
</pre>