Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character infobox: Difference between revisions

Template page
looks like these were swapped
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| title     = {{{name|{{PAGENAME}}}}}
| title   = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| image    = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt|{{{caption|}}}}}}]]}}
| caption1 = {{{caption|}}}
| caption1 = {{{caption|}}}


Line 7: Line 7:


| label2  = Tribe
| label2  = Tribe
|  data2  = {{#if:{{{tribe|}}}|[[{{{tribe}}}]]}}
|  data2  = {{#if:{{yesno|{{{hybrid|}}}}}|[[{{{tribe1}}}]]–[[{{{tribe2}}}]] hybrid|{{#if:{{{tribe|}}}|[[{{{tribe}}}]]}}}}


| label3  = Gender
| label3  = Gender
Line 17: Line 17:
| header5  = Meta information
| header5  = Meta information


| label5   = First appearance
| label6   = First appearance
data5   = {{#if:{{{first_appearance|}}}|[[{{{first_appearance}}}]]}}
data6   = {{{first_appearance|}}}


| label6   = Last appearance
| label7   = Last appearance
data6   = {{#if:{{{last_appearance|}}}|[[{{{last_appearance}}}]]}}
data7   = {{{last_appearance|}}}
}}<noinclude>
}}<noinclude>
<templatedata>
<templatedata>
Line 28: Line 28:
"name": {
"name": {
"label": "Name",
"label": "Name",
"description": "The name of the character.",
"description": "The name of the character. Defaults to the page title.",
"example": "Clay",
"example": "Clay",
"type": "string",
"type": "string",
Line 35: Line 35:
"tribe": {
"tribe": {
"label": "Tribe",
"label": "Tribe",
"description": "The tribe of the dragon.",
"description": "The tribe of the dragon. Will automatically link to article.",
"type": "wiki-page-name",
"type": "string",
"autovalue": "",
"autovalue": "",
"example": "MudWing",
"example": "MudWing",
"suggested": true
"suggested": true,
"suggestedvalues": [
"MudWing",
"SeaWing",
"SandWing",
"RainWing",
"SkyWing",
"IceWing",
"NightWing",
"SilkWing",
"LeafWing",
"HiveWing"
]
},
},
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "An image of the character.",
"description": "An image of the character. To add a new image, first upload it at Special:Upload, then use the title of the image page for this parameter.",
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true
Line 53: Line 65:
},
},
"first_appearance": {
"first_appearance": {
"label": "First Appearance",
"label": "First appearance",
"description": "The book the character first appeared in.",
"description": "The book the character first appeared in.",
"example": "The Dragonet Prophecy",
"example": "The Dragonet Prophecy",
"type": "wiki-page-name",
"type": "content",
"suggested": true
"suggested": true
},
},
"last_appearance": {
"last_appearance": {
"label": "Last Appearance",
"label": "Last appearance",
"description": "The last book the character appeared in.",
"description": "The last book the character appeared in.",
"example": "Talons of Power",
"example": "Talons of Power",
"type": "wiki-page-name",
"type": "content",
"suggested": true
"suggested": true
},
},
Line 78: Line 90:
"example": "Male",
"example": "Male",
"type": "string",
"type": "string",
"suggested": true
"suggested": true,
"suggestedvalues": [
"Male",
"Female"
]
},
"hybrid": {
"label": "Hybrid",
"description": "Whether the character is a hybrid.  ",
"type": "string",
"suggestedvalues": [
"yes"
],
"default": "no"
},
"tribe1": {
"label": "Tribe 1",
"description": "The first tribe the dragon is, if it is a hybrid. Ignored if `hybrid` is false.",
"type": "string",
"suggestedvalues": [
"MudWing",
"SeaWing",
"SandWing",
"RainWing",
"SkyWing",
"IceWing",
"NightWing",
"SilkWing",
"LeafWing",
"HiveWing"
]
},
"tribe2": {
"label": "Tribe 2",
"description": "The second tribe the dragon is, if it is a hybrid. Ignored if `hybrid` is false.",
"type": "string",
"suggestedvalues": [
"MudWing",
"SeaWing",
"SandWing",
"RainWing",
"SkyWing",
"IceWing",
"NightWing",
"SilkWing",
"LeafWing",
"HiveWing"
]
}
}
},
},
Line 87: Line 146:
"caption",
"caption",
"tribe",
"tribe",
"hybrid",
"tribe1",
"tribe2",
"gender",
"gender",
"age",
"age",
"first_appearance",
"first_appearance",
"last_appearance"
"last_appearance"
]
],
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 17:46, 20 December 2024

Character infobox
In-universe information
Meta information

An infobox that describes a character

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the character. Defaults to the page title.

Example
Clay
Stringrequired
Imageimage

An image of the character. To add a new image, first upload it at Special:Upload, then use the title of the image page for this parameter.

Page namesuggested
Captioncaption

A caption for the image.

Stringoptional
Tribetribe

The tribe of the dragon. Will automatically link to article.

Suggested values
MudWing SeaWing SandWing RainWing SkyWing IceWing NightWing SilkWing LeafWing HiveWing
Example
MudWing
Auto value
Stringsuggested
Hybridhybrid

Whether the character is a hybrid.

Suggested values
yes
Default
no
Stringoptional
Tribe 1tribe1

The first tribe the dragon is, if it is a hybrid. Ignored if `hybrid` is false.

Suggested values
MudWing SeaWing SandWing RainWing SkyWing IceWing NightWing SilkWing LeafWing HiveWing
Stringoptional
Tribe 2tribe2

The second tribe the dragon is, if it is a hybrid. Ignored if `hybrid` is false.

Suggested values
MudWing SeaWing SandWing RainWing SkyWing IceWing NightWing SilkWing LeafWing HiveWing
Stringoptional
Gendergender

The gender of the character.

Suggested values
Male Female
Example
Male
Stringsuggested
Ageage

The age of the character.

Example
7 years
Stringsuggested
First appearancefirst_appearance

The book the character first appeared in.

Example
The Dragonet Prophecy
Contentsuggested
Last appearancelast_appearance

The last book the character appeared in.

Example
Talons of Power
Contentsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.