Template:Infobox character/doc: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{license|ccbysa}}
{{license|ccbysa}}
{{warning|This template is outdated. Use [[Template:Infobox creature]] instead.}}
Preview:
Preview:
<pre>
<pre>
{{Infobox
{{Infobox character
| child=  
| child=  
| bodyclass =  
| bodyclass =  
Line 55: Line 59:


== Example use ==
== Example use ==
<pre style="float: left;">
{{Infobox character
{{Infobox character
| class = [[Rogue]]
| class = [[Rogue]]
Line 69: Line 74:
* 269 (current)}}
* 269 (current)}}
| hometown = [[Baldur's Gate]]
| hometown = [[Baldur's Gate]]
| role = [[Origin characters|Origin character]], [[Companions|Companion]]}}
| role = [[Origin characters|Origin character]], [[Companions|Companion]]
}}
</pre>
 
{{Infobox character
| class = [[Rogue]]
| name = Astarion
| image = Astarion.png
| iamgecaption = Game cover artwork
| background = [[Charlatan]]
| race = [[High elf]]
| voice = Neil Newbon
| creator = Stephen Rooney
| full_name = Astarion Ancunín
| age = {{ublist|
* 39 (turned)
* 269 (current)}}
| hometown = [[Baldur's Gate]]
| role = [[Origin characters|Origin character]], [[Companions|Companion]]
}}
 
{{clear}}


== Template data ==
== Template data ==
Line 180: Line 206:
"family": {
"family": {
"description": "The character's family, if any.",
"description": "The character's family, if any.",
"type": "content"
},
"occupation": {
"description": "The character's occupation, if any.",
"type": "content"
},
"faction": {
"description": "The faction that the character belongs to, if any.",
"example": "Cult of the Absolute",
"type": "content"
"type": "content"
},
},
Line 231: Line 266:
"example": "[[Knowledge Domain]]",
"example": "[[Knowledge Domain]]",
"type": "content"
"type": "content"
}
},
"experience": {}
},
},
"paramOrder": [
"paramOrder": [
Line 258: Line 294:
"age",
"age",
"family",
"family",
"occupation",
"faction",
"modules",
"modules",
"module1",
"module1",
"module2",
"module2",
"module3",
"module3",
"below"
"below",
]
"experience"
],
"format": "block"
}</templatedata>
}</templatedata>
[[Category:Templates]]
[[Category:Templates]]
[[Category:Outdated Templates]]
[[Category:Infobox templates]]
[[Category:Infobox templates]]

Latest revision as of 15:36, 23 June 2024

This Template page is licensed under CC BY-SA 4.0.


This template is outdated. Use Template:Infobox creature instead.

Preview:

{{Infobox character
| child= 
| bodyclass = 
| labelstyle = 
| datastyle = 
| name =
| level =
| class_title
| subclass_title
| class = 
| subclass = 
| image =
| imagesize = 
| image_alt_text = 
| imagecaption = 
| role = 
| creator =
| voice = 
| full_name = 
| titles = 
| race = 
| background = 
| hometown = 
| age = 
| family = 
| module1 =
| module2 = 
| module3 = 
}}

This template adds an infobox with character information.


Can be combined with {{infobox statistics}}:

{{Infobox character
| name =
| image = 
| background =
| class = 
| module = {{Infobox statistics
| child = yes
| armour_class = 
| hit_points = 
| str = 
| dex =
| con = 
| int = 
| wis = 
| cha =
}}}}

Example use

{{Infobox character
| class = [[Rogue]]
| name = Astarion
| image = Astarion.png
| iamgecaption = Game cover artwork
| background = [[Charlatan]]
| race = [[High elf]]
| voice = Neil Newbon
| creator = Stephen Rooney
| full_name = Astarion Ancunín
| age = {{ublist|
* 39 (turned)
* 269 (current)}}
| hometown = [[Baldur's Gate]]
| role = [[Origin characters|Origin character]], [[Companions|Companion]]
}}

Template data

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
childchild

Add yes to make this infobox a child for use in another infobox's module parameter.

Suggested values
yes
Stringoptional
bodyclassbodyclass

Specify a custom CSS class for the entire infobox.

Suggested values
wrap nowrap
Example
Adding a class to wrap or not wrap the infobox.
Stringoptional
labelstylelabelstyle

Add custom CSS style to all labels in the infobox.

Stringoptional
datastyledatastyle

Add custom CSS style to all data cells in the infobox.

Stringoptional
namename

The character or creature's in-game display name, which may or may not be their actual name.

Example
Astarion
Stringsuggested
levellevel

The creature's level, given in a number.

Example
10
Numbersuggested
Class (title)class_title

Adds the creature's class to the subheading of the infobox, next to the creature's level. If the creature's class is also added using the Class parameter, this should not consist of a link.

Example
[[Cleric]] or Cleric
Contentoptional
subclass_titlesubclass_title

Adds the creature's subclass class to the subheading of the infobox, below the creature's level and class. If the creature's subclass is also added using the subclass parameter, this should not consist of a link.

Example
[[Knowledge Domain]] or Knowledge Domain
Contentoptional
Image nameimage

The name of an image to be used in the infobox, without the namespace.

Example
Astarion Cover Art.png
Filesuggested
Image scaling factorimagesize

Add a scale factor to resize the image. Best values are usually 0.7-1.0. Should never exceed 1.3

Example
1.0
Numberoptional
Image alt textimage_alt_text

An alt text for the infobox image. If left empty will default to the image caption.

Contentsuggested
Image captionimagecaption

A caption to be displayed below the infobox image. Will be used as the image's alt text if alt text parameter is left empty.

Example
Astartion cover art
Contentsuggested
rolerole

The character's role in the game.

Example
Origin character, companion
Contentsuggested
creatorcreator

The name of the character's creator.

Contentoptional
voicevoice

The name of the character's voice actor or actress.

Example
Neil Newbon
Contentoptional
Full namefull_name

The character's full name.

Unknownoptional
titlestitles

One or multiple titltes the creature goes by.

Example
The Blade of Frontiers
Contentoptional
racerace

The creature's race.

Example
[[Half-elf]]
Contentoptional
backgroundbackground

The character's baackground.

Example
[[Charlatan]]
Contentoptional
Class (data)class

The creature's class, added as a data cell.

Example
[[Cleric]]
Unknownoptional
Subclass (data)subclass

The creature's subclass, added as a data cell.

Example
[[Knowledge Domain]]
Contentoptional
hometownhometown

The character's hometown, if any.

Example
[[Baldur's Gate]]
Contentoptional
ageage

The character's age.

Example
43 years
Contentoptional
familyfamily

The character's family, if any.

Contentoptional
occupationoccupation

The character's occupation, if any.

Contentoptional
factionfaction

The faction that the character belongs to, if any.

Example
Cult of the Absolute
Contentoptional
modulesmodules

Used to add other infoboxes as modules.

Templatedeprecated
module1module1

Used to add other infoboxes as modules.

Example
{{Infobox statistics

| child = yes | armour_class = | hit_points = | str = | dex = | con = | int = | wis = | cha =

}}
Templateoptional
module2module2

Used to add other infoboxes as modules.

Example
{{Infobox statistics

| child = yes | armour_class = | hit_points = | str = | dex = | con = | int = | wis = | cha =

}}
Templateoptional
module3module3

Used to add other infoboxes as modules.

Example
{{Infobox statistics

| child = yes | armour_class = | hit_points = | str = | dex = | con = | int = | wis = | cha =

}}
Templateoptional
belowbelow

Adds a below header to the infobox. Rarely necessary and not recommended.

Contentoptional
experienceexperience

no description

Unknownoptional