Difference between revisions of "Template:Infobox Character/doc"

From The Battle for Wesnoth Wiki
(Showed usage)
(Adding more documentation)
Line 19: Line 19:
 
== Usage ==
 
== Usage ==
  
  <nowiki>{{Infobox Character
+
  <nowiki>{{Infobox Faction
| name=Haldric I
+
| name=Wesfolk
| image=https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/campaigns/The_Rise_Of_Wesnoth/images/portraits/haldric.png
+
| race=
| titles=Prince of Stormvale<br>Dragonbane<sup id=tonote1>[[Haldric I#note1|[a]]]</sup><br>King of Wesnoth
+
* [[Humans]]
| gender=Male
+
* [[Undead (race)|Undead]]
| race=[[Humans|Human]]
+
| leaders=
| types=
+
* [[Jessene|Lady Jessene]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Youth.html Noble Youth] (level 0)
+
* [[Jevyan|Lich-Lord Jevyan]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Fighter.html Noble Fighter] (level 1)
+
* [[Lenvan|Lich-Lord Lenvan]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Commander.html Noble Commander] (level 2)
+
* [[Caror|Lich-Lord Caror]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Lord.html Noble Lord] (level 3)
+
| capitals=[[Jevyan's Haven]]
| relatives=
 
* [[Jessene|Queen Jessene]] (wife)
 
* [[Eldaric IV|King Eldaric IV]] (father)
 
* King Haldric II (son)
 
 
}}</nowiki>
 
}}</nowiki>
{{Infobox Character
+
{{Infobox Faction
| name=Haldric I
+
| name=Wesfolk
| image=https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/campaigns/The_Rise_Of_Wesnoth/images/portraits/haldric.png
+
| race=
| titles=Prince of Stormvale<br>Dragonbane<sup id=tonote1>[[Haldric I#note1|[a]]]</sup><br>King of Wesnoth
+
* [[Humans]]
| gender=Male
+
* [[Undead (race)|Undead]]
| race=[[Humans|Human]]
+
| leaders=
| types=
+
* [[Jessene|Lady Jessene]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Youth.html Noble Youth] (level 0)
+
* [[Jevyan|Lich-Lord Jevyan]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Fighter.html Noble Fighter] (level 1)
+
* [[Lenvan|Lich-Lord Lenvan]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Commander.html Noble Commander] (level 2)
+
* [[Caror|Lich-Lord Caror]]
* [https://units.wesnoth.org/1.14/mainline/en_US/Noble%20Lord.html Noble Lord] (level 3)
+
| capitals=[[Jevyan's Haven]]
| relatives=
 
* [[Jessene|Queen Jessene]] (wife)
 
* [[Eldaric IV|King Eldaric IV]] (father)
 
* King Haldric II (son)
 
 
}}
 
}}

Revision as of 23:18, 2 September 2019

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 Faction
| name=Wesfolk
| race=
* [[Humans]]
* [[Undead (race)|Undead]]
| leaders=
* [[Jessene|Lady Jessene]]
* [[Jevyan|Lich-Lord Jevyan]]
* [[Lenvan|Lich-Lord Lenvan]]
* [[Caror|Lich-Lord Caror]]
| capitals=[[Jevyan's Haven]]
}}