Template:Infobox character/doc: Difference between revisions

From Tales from Chyria
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Uses ==
== Uses ==
{{Infobox
{{Infobox character
| above = {{{NAME}}}
| bodyclass    = biography vcard
| subheader = {{{SUBHEADER}}}
| abovestyle  = background: #ADD8E6;color:inherit;font-size: 125%
| above       = {{{name}}}
| subheader   = {{{title}}}
| image        =
| captionstyle = line-height:normal;padding-bottom:0.2em;padding-top:0.2em;
| caption      = {{{caption|}}}
 
| headerstyle  = background-color: #ADD8E6;color:inherit;line-height:normal;padding:0.2em;
 
| header1      = Basic Info
 
| label2      = Age
|  data2      = {{{age|}}}
 
| label3      = Species
|  data3      = {{{species|}}}
 
| label4      = Gender
|  data4      = {{{gender|}}}
 
| label5      = Pronouns
|  data5      = {{{pronouns|}}}
 
| label6      = Birthplace
|  data6      = {{{birthplace|}}}
 
| label7      = Occupation
|  data7      = {{{occupation|}}}
 
| label8      = Factions
|  data8      = {{{factions|}}}
}}
}}


<templatedata>
<templatedata>
{
{
"params": {
"params": {
"above": {
"aliases": [
"charactername"
],
"description": "The character's name. Just their first name will do.",
"type": "line",
"suggested": true
},
"above2": {
"type": "string",
"aliases": [
"native_name"
],
"description": "The character's native name, if not in Common."
},
"subheader": {
"type": "line",
"aliases": [
"title"
],
"description": "If this character has a title, official or otherwise, list it here."
},
"image": {
"image": {
"description": "i.e; X.jpg, that is to say no [[Image:",
"description": "i.e; X.jpg, that is to say no [[Image:",
Line 35: Line 45:
},
},
"caption": {
"caption": {
"type": "string"
},
"species": {
"label": "[[Species|Races]]",
"type": "line",
"suggested": true,
"description": "What species the character is."
},
"gender": {
"type": "line",
"label": "Gender",
"description": "What's their gender?",
"suggested": true
},
"pronouns": {
"description": "We're woke in this house. What are this character's pronouns?",
"type": "string",
"type": "string",
"label": "Pronouns",
"description": "Caption the image!"
"example": "He/Him"
},
},
"sexuality": {
"name": {
"label": "Sexuality",
"description": "The character's name. Just their first name will do.",
"type": "line",
"type": "line",
"suggested": true
"suggested": true
},
},
"occupation": {
"title": {},
"label": "Occupation"
"age": {
"type": "string"
},
},
"factions": {
"species": {
"description": "What factions or groups this character is part of.",
"description": "The character's species. Link to the species!",
"type": "string"
"type": "string"
},
},
"image_upright": {
"birthplace": {},
"description": "Scales the image thumbnail from its default size by the given factor. Values less than 1 scale the image down (0.9 = 90%) and values greater than 1 scale the image up (1.15 = 115%).",
"pronouns": {
"example": "1.15",
"type": "string"
"type": "number",
"default": "1"
},
},
"landscape": {
"gender": {
"description": "Set to yes when using wide, short images. The image height (rather than width) will be limited to 200 pixels.",
"type": "string"
"type": "boolean"
},
},
"Age": {
"occupation": {
"type": "line"
"type": "string"
},
},
"Born": {
"factions": {}
"type": "string"
}
},
},
"description": "The main infobox for the bulk of characters on this wiki!",
"description": "The main infobox for the bulk of characters on this wiki!",
"format": "{{_\n| ________________ = _\n}}\n",
"format": "{{_\n| ________________ = _\n}}\n",
"paramOrder": [
"paramOrder": [
"above",
"name",
"above2",
"title",
"subheader",
"image",
"image",
"image_upright",
"landscape",
"caption",
"caption",
"age",
"species",
"species",
"gender",
"gender",
"pronouns",
"pronouns",
"Age",
"birthplace",
"Born",
"sexuality",
"occupation",
"occupation",
"factions"
"factions"
Line 105: Line 90:
}
}
</templatedata>
</templatedata>
[[Category:Infobox_templates]]

Latest revision as of 20:14, 11 October 2025

The main infobox for the bulk of characters on this wiki!

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
namename

The character's name. Just their first name will do.

Linesuggested
titletitle

no description

Unknownoptional
imageimage

i.e; X.jpg, that is to say no [[Image:

Fileoptional
captioncaption

Caption the image!

Stringoptional
ageage

no description

Stringoptional
speciesspecies

The character's species. Link to the species!

Stringoptional
gendergender

no description

Stringoptional
pronounspronouns

no description

Stringoptional
birthplacebirthplace

no description

Unknownoptional
occupationoccupation

no description

Stringoptional
factionsfactions

no description

Unknownoptional