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
Make tribe, first appearance, and last appearance links
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
| title    = {{{name|{{PAGENAME}}}}}
| image    = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt|{{{caption|}}}}}}]]}}
| caption1 = {{{caption|}}}
| header1  = In-universe information
| label2  = Tribe
|  data2  = {{#if:{{yesno|{{{hybrid|}}}}}|[[{{{tribe1}}}]]–[[{{{tribe2}}}]] hybrid|{{#if:{{{tribe|}}}|[[{{{tribe}}}]]}}}}
| label3  = Gender
|  data3  = {{{gender|}}}
| label4  = Age
|  data4  = {{{age|}}}
| header5  = Meta information
| label6  = First appearance
|  data6  = {{{first_appearance|}}}


<noinclude>
| label7  = Last appearance
|  data7  = {{{last_appearance|}}}
}}<noinclude>
<templatedata>
<templatedata>
{
{
Line 6: 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 13: 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 31: 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 56: 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 65: 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>
{{Infobox
| title    = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| caption1 = {{{caption|}}}
| header1  = In-universe information
| label2  = Tribe
|  data2  = {{#if: {{{tribe|}}} | [[{{{tribe}}}]] }}
| label3  = Gender
|  data3  = {{{gender|}}}
| label4  = Age
|  data4  = {{{age|}}}
| header5  = Meta information
| label6  = First appearance
|  data6  = {{#if: {{{first_appearance|}}} | [[{{{first_appearance}}}]] }}
| label5  = Last appearance
|  data5  = {{#if: {{{last_appearance|}}} | [[{{{last_appearance}}}]] }}
}}

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.