Difference between revisions of "Template:Infobox Character"

From The Battle for Wesnoth Wiki
m (Fixed (experimental))
m (Undo revision 64451 by Sub2pewds (talk) - found better way of displaying minor character information)
(Tag: Undo)
 
(10 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
| colspan="2" style="text-align:center;" | {{{image|}}}
 
| colspan="2" style="text-align:center;" | {{{image|}}}
 
|-
 
|-
! Title(s):
+
{{#if: {{{titles|}}}|<tr><th>Title(s):</th><td>
| {{{titles|}}}
+
{{{titles|}}}</td></tr>|}}
|-
+
{{#if: {{{gender|}}}|<tr><th>Gender:</th><td>
! Gender:
+
{{{gender|}}}</td></tr>|}}
| {{{gender|}}}
 
 
|-
 
|-
 
! Race:
 
! Race:
| {{{race|}}}
 
|-
 
{{#if: {{{types|}}}|! Unit type(s):
 
|
 
{{{types|}}}
 
|-}}
 
! Relatives:
 
 
|
 
|
{{{relatives|}}}
+
{{{race|}}}
 
|-
 
|-
 +
{{#if: {{{types|}}}|<tr><th>Unit type(s):</th><td>
 +
{{{types|}}}</td></tr>|}}
 +
{{#if: {{{relatives|}}}|<tr><th>Relatives:</th><td>
 +
{{{relatives|}}}</td></tr>|}}
 
|}
 
|}
 
</div>
 
</div>
Line 30: Line 26:
 
</onlyinclude>
 
</onlyinclude>
 
<noinclude>
 
<noinclude>
 +
{{Infobox Character/doc}}
 
{{template}}
 
{{template}}
 
</noinclude>
 
</noinclude>

Latest revision as of 02:17, 19 September 2019

Name
Race:


This template produces an infobox with character details.

Parameters

name denotes the name of the character. Should be the same as the article title.

image denotes the location of the character's main portrait.

titles denotes the honorifics and titles that the character possessed. Includes those which can be inferred.

gender denotes whether the character is male or female. Sometimes, it is not clear which, such as in the case of saurians. In this case, be careful not to use pronouns "he" or "she" throughout the article.

race denotes the race of the character. Mandatory field.

types denotes the unit type of the unit. Only include all possible unit types if it has a non-default unit tree, in which case, note what level each unit type is for.

relatives denotes each of the unit's relatives while they were alive.

Usage

{{Infobox Character
| name=Haldric I
| image=https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/campaigns/The_Rise_Of_Wesnoth/images/portraits/haldric.png
| titles=Prince of Stormvale<br>Dragonbane<sup id=tonote1>[[Haldric I#note1|[a]]]</sup><br>King of Wesnoth
| gender=Male
| race=[[Humans|Human]]
| types=
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Youth.html Noble Youth] (level 0)
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Fighter.html Noble Fighter] (level 1)
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Commander.html Noble Commander] (level 2)
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Lord.html Noble Lord] (level 3)
| relatives=
* [[Jessene|Queen Jessene]] (wife)
* [[Eldaric IV|King Eldaric IV]] (father)
* King Haldric II (son)
}}
Haldric I
haldric.png
Title(s): Prince of Stormvale
Dragonbane[a]
King of Wesnoth
Gender: Male
Race:

Human

Unit type(s):
Relatives:
This page was last edited on 19 September 2019, at 02:17.