Template:Infobox character/doc: Difference between revisions
No edit summary |
No edit summary |
||
(27 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{license|ccbysa}} | {{license|ccbysa}} | ||
== 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.", | ||
"name": {}, | "type": "string", | ||
"level": {}, | "suggestedvalues": [ | ||
"class": | "yes" | ||
" | ] | ||
}, | |||
"imagesize": {}, | "labelstyle": { | ||
"imagecaption": {}, | "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": { | ||
" | "description": "The character or creature's in-game display name, which may or may not be their actual name.", | ||
" | "example": "Astarion", | ||
" | "type": "string", | ||
" | "suggested": true | ||
" | }, | ||
" | "level": { | ||
" | "description": "The creature's level, given in a number.", | ||
"example": "10", | |||
" | "type": "number", | ||
"suggested": true | |||
" | }, | ||
"class_title": { | |||
"label": "Class (title)", | |||
" | "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.", | ||
"example": "[[Cleric]] or Cleric", | |||
"type": "content" | |||
" | }, | ||
"image": { | |||
"label": "Image name", | |||
" | "description": "The name of an image to be used in the infobox, without the namespace.", | ||
"example": "Astarion Cover Art.png", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
" | }, | ||
"imagesize": { | |||
"label": "Image scaling factor", | |||
"description": "Add a scale factor to resize the image. Best values are usually 0.7-1.0. Should never exceed 1.3", | |||
" | "example": "1.0", | ||
"type": "number" | |||
}, | |||
" | "imagecaption": { | ||
"label": "Image caption", | |||
"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 | ||
" | }, | ||
" | "role": { | ||
" | "description": "The character's role in the game.", | ||
" | "example": "Origin character, companion", | ||
" | "type": "content", | ||
" | "suggested": true | ||
" | }, | ||
" | "creator": { | ||
" | "description": "The name of the character's creator.", | ||
" | "type": "content" | ||
" | }, | ||
" | "voice": { | ||
" | "description": "The name of the character's voice actor or actress.", | ||
" | "example": "Neil Newbon", | ||
" | "type": "content" | ||
" | }, | ||
" | "full_name": { | ||
" | "label": "Full name", | ||
" | "description": "The character's full name." | ||
" | }, | ||
" | "titles": { | ||
" | "description": "One or multiple titltes the creature goes by.", | ||
" | "example": "The Blade of Frontiers", | ||
" | "type": "content" | ||
" | }, | ||
" | "race": { | ||
" | "description": "The creature's race.", | ||
" | "example": "[[Half-elf]]", | ||
" | "type": "content" | ||
" | }, | ||
" | "class": { | ||
"label": "Class (data)", | |||
} | "description": "The creature's class, added as a data cell.", | ||
</templatedata> | "example": "[[Cleric]]" | ||
}, | |||
"background": { | |||
"description": "The character's baackground.", | |||
"example": "[[Charlatan]]", | |||
"type": "content" | |||
}, | |||
"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" | |||
}, | |||
"family": { | |||
"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" | |||
}, | |||
"modules": { | |||
"description": "Used to add other infoboxes as modules.", | |||
"type": "wiki-template-name", | |||
"deprecated": "Use module1, module2 and module3 instead." | |||
}, | |||
"below": { | |||
"description": "Adds a below header to the infobox. Rarely necessary and not recommended.", | |||
"type": "content" | |||
}, | |||
"module1": { | |||
"description": "Used to add other infoboxes as modules.", | |||
"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}}", | |||
"type": "wiki-template-name" | |||
}, | |||
"module2": { | |||
"description": "Used to add other infoboxes as modules.", | |||
"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}}", | |||
"type": "wiki-template-name" | |||
}, | |||
"module3": { | |||
"description": "Used to add other infoboxes as modules.", | |||
"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}}", | |||
"type": "wiki-template-name" | |||
}, | |||
"bodyclass": { | |||
"description": "Specify a custom CSS class for the entire infobox.", | |||
"example": "Adding a class to wrap or not wrap the infobox.", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"wrap", | |||
"nowrap" | |||
] | |||
}, | |||
"image_alt_text": { | |||
"label": "Image alt text", | |||
"description": "An alt text for the infobox image. If left empty will default to the image caption.", | |||
"type": "content", | |||
"suggested": true | |||
}, | |||
"subclass_title": { | |||
"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.", | |||
"example": "[[Knowledge Domain]] or Knowledge Domain", | |||
"type": "content" | |||
}, | |||
"subclass": { | |||
"label": "Subclass (data)", | |||
"description": "The creature's subclass, added as a data cell.", | |||
"example": "[[Knowledge Domain]]", | |||
"type": "content" | |||
}, | |||
"experience": {} | |||
}, | |||
"paramOrder": [ | |||
"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: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]] }}
Astarion | |
---|---|
Role | Origin character, Companion |
Created by | Stephen Rooney |
Voiced by | Neil Newbon |
Information | |
Full name | Astarion Ancunín |
Race | High elf |
Class | Rogue |
Background | Charlatan |
Hometown | Baldur's Gate |
Age |
|
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
child | child | Add yes to make this infobox a child for use in another infobox's module parameter.
| String | optional |
bodyclass | bodyclass | Specify a custom CSS class for the entire infobox.
| String | optional |
labelstyle | labelstyle | Add custom CSS style to all labels in the infobox. | String | optional |
datastyle | datastyle | Add custom CSS style to all data cells in the infobox. | String | optional |
name | name | The character or creature's in-game display name, which may or may not be their actual name.
| String | suggested |
level | level | The creature's level, given in a number.
| Number | suggested |
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.
| Content | optional |
subclass_title | subclass_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.
| Content | optional |
Image name | image | The name of an image to be used in the infobox, without the namespace.
| File | suggested |
Image scaling factor | imagesize | Add a scale factor to resize the image. Best values are usually 0.7-1.0. Should never exceed 1.3
| Number | optional |
Image alt text | image_alt_text | An alt text for the infobox image. If left empty will default to the image caption. | Content | suggested |
Image caption | imagecaption | 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.
| Content | suggested |
role | role | The character's role in the game.
| Content | suggested |
creator | creator | The name of the character's creator. | Content | optional |
voice | voice | The name of the character's voice actor or actress.
| Content | optional |
Full name | full_name | The character's full name. | Unknown | optional |
titles | titles | One or multiple titltes the creature goes by.
| Content | optional |
race | race | The creature's race.
| Content | optional |
background | background | The character's baackground.
| Content | optional |
Class (data) | class | The creature's class, added as a data cell.
| Unknown | optional |
Subclass (data) | subclass | The creature's subclass, added as a data cell.
| Content | optional |
hometown | hometown | The character's hometown, if any.
| Content | optional |
age | age | The character's age.
| Content | optional |
family | family | The character's family, if any. | Content | optional |
occupation | occupation | The character's occupation, if any. | Content | optional |
faction | faction | The faction that the character belongs to, if any.
| Content | optional |
modules | modules | Used to add other infoboxes as modules. | Template | deprecated |
module1 | module1 | Used to add other infoboxes as modules.
| Template | optional |
module2 | module2 | Used to add other infoboxes as modules.
| Template | optional |
module3 | module3 | Used to add other infoboxes as modules.
| Template | optional |
below | below | Adds a below header to the infobox. Rarely necessary and not recommended. | Content | optional |
experience | experience | no description | Unknown | optional |