Template:Infobox character/doc: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{license|ccbysa}}
{{license|ccbysa}}
[[Category:Templates]]
[[Category:Infobox templates]]


== Template data==
 
{{warning|This template is outdated. Use [[Template:Infobox creature]] instead.}}
 
Preview:
<pre>
{{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 =
}}</pre>
This template adds an infobox with character information.
 
 
Can be combined with {{tlink|infobox statistics}}:
<pre>
{{Infobox character
| name =
| image =
| background =
| class =
| module = {{Infobox statistics
| child = yes
| armour_class =
| hit_points =
| str =
| dex =
| con =
| int =
| wis =
| cha =
}}}}
</pre>
 
== Example use ==
<pre style="float: left;">
{{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]]
}}
</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 ==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"labelstyle": {},
"child": {
"datastyle": {},
"description": "Add yes to make this infobox a child for use in another infobox's module parameter.",
"type": "string",
"suggestedvalues": [
"yes"
]
},
"labelstyle": {
"description": "Add custom CSS style to all labels in the infobox.",
"type": "string"
},
"datastyle": {
"description": "Add custom CSS style to all data cells in the infobox.",
"type": "string"
},
"name": {
"name": {
"label": "Name",
"description": "The character or creature's in-game display name, which may or may not be their actual name.",
"description": "The name of the character or creature.",
"example": "Astarion",
"type": "string",
"type": "string",
"suggestedvalues": [
"Astarion",
"Gale",
"Mind flayer"
],
"suggested": true
"suggested": true
},
},
"level": {
"level": {
"label": "Level",
"description": "The creature's level, given in a number.",
"description": "The character or creature's level.",
"example": "10",
"type": "number",
"type": "number",
"suggestedvalues": [
"suggested": true
"1",
"5",
"8"
]
},
},
"class": {
"class_title": {
"label": "Class",
"label": "Class (title)",
"description": "The character or creature's class or classes.",
"description": "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.",
"type": "string",
"example": "[[Cleric]] or Cleric",
"suggestedvalues": [
"type": "content"
"Fighter",
"[[Warlock]]",
"[[Fighter]] (6) [[Druid]] (2)"
]
},
"subclass": {
"label": "Subclass",
"description": "Enter one or more subclasses.",
"suggestedvalues": [
"Knowledge Domain"
]
},
},
"image": {
"image": {
"label": "Image",
"label": "Image name",
"description": "Enter the name of an image, excluding the File namespace.",
"description": "The name of an image to be used in the infobox, without the namespace.",
"suggestedvalues": [
"example": "Astarion Cover Art.png",
"Astarion.png"
"type": "wiki-file-name",
],
"suggested": true
"suggested": true
},
},
"imagesize": {
"imagesize": {
"label": "Image size",
"label": "Image scaling factor",
"description": "Enter an image size. This should usually be 200px, which is the default.",
"description": "Add a scale factor to resize the image. Best values are usually 0.7-1.0. Should never exceed 1.3",
"default": "200px",
"example": "1.0",
"autovalue": "200px",
"type": "number"
"required": true
},
},
"imagecaption": {
"imagecaption": {
"label": "Image caption",
"label": "Image caption",
"description": "A caption for the infobox's image.",
"description": "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",
"type": "content",
"suggested": true
"suggested": true
},
},
"label2": {},
"role": {
"data2": {},
"description": "The character's role in the game.",
"label3": {},
"example": "Origin character, companion",
"data3": {},
"type": "content",
"label4": {},
"suggested": true
"data4": {},
},
"label5": {},
"creator": {
"data5": {},
"description": "The name of the character's creator.",
"label6": {},
"type": "content"
"data6": {},
},
"label7": {},
"voice": {
"data7": {},
"description": "The name of the character's voice actor or actress.",
"label8": {},
"example": "Neil Newbon",
"data8": {},
"type": "content"
"label9": {},
},
"data9": {},
"full_name": {
"header10": {},
"label": "Full name",
"label11": {},
"description": "The character's full name."
"data11": {},
},
"label12": {},
"titles": {
"data12": {},
"description": "One or multiple titltes the creature goes by.",
"label13": {},
"example": "The Blade of Frontiers",
"data13": {},
"type": "content"
"label14": {},
},
"data14": {},
"race": {
"label15": {},
"description": "The creature's race.",
"data15": {},
"example": "[[Half-elf]]",
"label16": {},
"type": "content"
"data16": {},
},
"label17": {},
"class": {
"data17": {},
"label": "Class (data)",
"label18": {},
"description": "The creature's class, added as a data cell.",
"data18": {},
"example": "[[Cleric]]"
},
"background": {
"background": {
"label": "Background",
"description": "The character's baackground.",
"description": "A character background.",
"example": "[[Charlatan]]",
"suggestedvalues": [
"type": "content"
"Charlatan",
},
"Soldier"
"hometown": {
]
"description": "The character's hometown, if any.",
"example": "[[Baldur's Gate]]",
"type": "content"
},
"age": {
"description": "The character's age.",
"example": "43 years",
"type": "content"
},
},
"race": {
"family": {
"label": "Race",
"description": "The character's family, if any.",
"description": "A race, including subrace.",
"type": "content"
"suggestedvalues": [
"High elf",
"Human",
"Lightfoot halfling"
]
},
},
"creature_type": {
"occupation": {
"label": "Creature type",
"description": "The character's occupation, if any.",
"suggestedvalues": [
"type": "content"
"Humanoid",
"Giant"
]
},
},
"size": {
"faction": {
"label": "Creature  size",
"description": "The faction that the character belongs to, if any.",
"suggestedvalues": [
"example": "Cult of the Absolute",
"Medium",
"type": "content"
"Large",
"Small"
]
},
},
"movement_speed_meters": {
"modules": {
"label": "Movement speed (meters)",
"description": "Used to add other infoboxes as modules.",
"description": "A creature's movement speed, in meters. No unit should be added.",
"type": "wiki-template-name",
"suggestedvalues": [
"deprecated": "Use module1, module2 and module3 instead."
"5",
"9"
]
},
},
"movement_speed_feet": {
"below": {
"label": "Movement speed (feet)",
"description": "Adds a below header to the infobox. Rarely necessary and not recommended.",
"description": "A creature's movement speed, in feet. No unit should be added.",
"type": "content"
"suggestedvalues": [
"15",
"67"
]
},
},
"proficiency_bonus": {
"module1": {
"label": "Proficiency bonus",
"description": "Used to add other infoboxes as modules.",
"description": "A creature's proficiency bonus, without a plus sign.",
"example": "{{Infobox statistics\n| child = yes\n| armour_class = \n| hit_points = \n| str = \n| dex =\n| con = \n| int = \n| wis = \n| cha =\n}}",
"suggestedvalues": [
"type": "wiki-template-name"
"2",
"4"
]
},
},
"initiative": {
"module2": {
"label": "Initiative",
"description": "Used to add other infoboxes as modules.",
"description": "A creature's initative bonus or penalty. Plus or minus signs should be added.",
"example": "{{Infobox statistics\n| child = yes\n| armour_class = \n| hit_points = \n| str = \n| dex =\n| con = \n| int = \n| wis = \n| cha =\n}}",
"suggestedvalues": [
"type": "wiki-template-name"
"+1",
"-2"
]
},
},
"save_proficiencies": {
"module3": {
"label": "Save proficiencies",
"description": "Used to add other infoboxes as modules.",
"description": "A creature's save proficiencies, in the form of a bulleted list.",
"example": "{{Infobox statistics\n| child = yes\n| armour_class = \n| hit_points = \n| str = \n| dex =\n| con = \n| int = \n| wis = \n| cha =\n}}",
"suggestedvalues": [
"type": "wiki-template-name"
"* Intelligence * Strength"
]
},
},
"conditions": {},
"bodyclass": {
"conditions_balanced": {},
"description": "Specify a custom CSS class for the entire infobox.",
"conditions_tactician": {},
"example": "Adding a class to wrap or not wrap the infobox.",
"conditions_honour": {},
"type": "string",
"passive_features": {},
"passive_features_balanced": {},
"passive_features_honour": {},
"passive_features_tactician": {},
"actions": {},
"actions_balanced": {},
"actions_honour": {},
"actions_tactician": {},
"immune_balanced": {},
"resistant_balanced": {},
"vulnerable_balanced": {},
"immune_tactician": {},
"resistant_tactician": {},
"vulnerable_tactician": {},
"immune": {},
"resistant": {},
"vulnerable": {},
"expansion": {},
"voice_actor_note": {},
"hit_points": {},
"hit_points_tactician": {},
"hit_points_honour": {},
"armour_class": {
"label": "The character's AC.",
"suggestedvalues": [
"suggestedvalues": [
"20",
"wrap",
"10"
"nowrap"
]
]
},
},
"weight_kg": {
"image_alt_text": {
"label": "Weight (kg)",
"label": "Image alt text",
"description": "Weight in kilograms. Numbers only, no unit.",
"description": "An alt text for the infobox image. If left empty will default to the image caption.",
"suggestedvalues": [
"type": "content",
"50",
"suggested": true
"20"
]
},
},
"weight_lb": {
"subclass_title": {
"label": "Weight (lb)",
"description": "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.",
"description": "Weight in pounds. Numbers only, no unit.",
"example": "[[Knowledge Domain]] or Knowledge Domain",
"suggestedvalues": [
"type": "content"
"25",
"68"
]
},
},
"voice_actor": {
"subclass": {
"label": "The character's voice actor. Given in full name, no special formatting.",
"label": "Subclass (data)",
"suggestedvalues": [
"description": "The creature's subclass, added as a data cell.",
"Neil Newbon"
"example": "[[Knowledge Domain]]",
]
"type": "content"
},
},
"below": {}
"experience": {}
}
},
}
"paramOrder": [
</templatedata>
"child",
"bodyclass",
"labelstyle",
"datastyle",
"name",
"level",
"class_title",
"subclass_title",
"image",
"imagesize",
"image_alt_text",
"imagecaption",
"role",
"creator",
"voice",
"full_name",
"titles",
"race",
"background",
"class",
"subclass",
"hometown",
"age",
"family",
"occupation",
"faction",
"modules",
"module1",
"module2",
"module3",
"below",
"experience"
],
"format": "block"
}</templatedata>
 
[[Category:Templates]]
[[Category:Outdated Templates]]
[[Category:Deprecated templates]]
[[Category:Infobox templates]]

Latest revision as of 21:56, 20 December 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