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
No edit summary
'
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Infobox
<templatestyles src="Module:Infobox/styles.css" />
| title   = {{{name|{{PAGENAME}}}}}
<table class="infobox">
| image   = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt|{{{caption|}}}}}}]]}}
<caption class="infobox-title">{{{name|{{PAGENAME}}}}}</caption>
| caption1 = {{{caption|}}}
<tr>
 
<td colspan="2" class="infobox-image">
| header1  = In-universe information
{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt|{{{caption|}}}}}}]]}}
 
<div class="infobox-caption">{{{caption|}}}</div>
| label2  = Tribe
</td>
| data2  = {{#if:{{yesno|{{{hybrid|}}}}}|[[{{{tribe1}}}]]&ndash;[[{{{tribe2}}}]] hybrid|{{#if:{{{tribe|}}}|[[{{{tribe}}}]]}}}}
</tr>
 
<tr>
| label3  = Gender
<td colspan="2" class="infobox-image">
| data3  = {{{gender|}}}
{{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{image_size2|250px}}}|alt={{{alt2|{{{caption2|}}}}}}]]}}
 
<div class="infobox-caption">{{{caption2|}}}</div>
| label4  = Age
</td>
| data4  = {{{age|}}}
</tr>
 
{{infobox/row|header=In-universe information}}
| header5  = Meta information
{{infobox/row
 
  |label=Tribe
| label6  = First appearance
  |data={{#if:
| data6  = {{{first_appearance|}}}
          {{yesno|{{{hybrid|}}}}}
 
        |[[{{{tribe1}}}]]&ndash;[[{{{tribe2}}}]] hybrid
| label7  = Last appearance
        |{{#if:{{{tribe|}}}|[[{{{tribe}}}]]}}
| data7  = {{{last_appearance|}}}
        }}
}}<noinclude>
}}
{{infobox/row
  |label=Gender
  |data={{{gender|}}}
}}
{{infobox/row
  |label=Age
  |data={{{age|}}}
}}
{{infobox/row|header=Meta information}}
{{infobox/row
  |label=First appearance
  |data={{{first_appearance|}}}
}}
{{infobox/row
  |label=Last appearance
  |data={{{last_appearance|}}}
}}
</table><noinclude>
<templatedata>
<templatedata>
{
{
Line 138: Line 156:
"HiveWing"
"HiveWing"
]
]
},
"image_size": {
"label": "Image size",
"description": "The size of the image. Defaults to 250px.",
"type": "string",
"default": "250px"
},
"alt": {
"label": "Alt text",
"description": "The alt text of the image.",
"type": "string",
"suggested": true
},
"image2": {
"label": "Image 2",
"description": "Another image of the character, if any.",
"type": "wiki-file-name"
},
"image_size2": {
"label": "Image 2 size",
"description": "The size of the second image"
},
"alt2": {
"label": "Image 2 alt text",
"description": "The alt text of the second image."
},
"caption2": {
"label": "Image 2 caption",
"description": "The caption of the second image.",
"example": "Blue on the cover of ''[[The Lost Continent]]''",
"type": "content"
}
}
},
},
Line 144: Line 193:
"name",
"name",
"image",
"image",
"image_size",
"caption",
"caption",
"alt",
        "image2",
"image_size2",
"alt2",
"caption2",
"tribe",
"tribe",
"hybrid",
"hybrid",

Latest revision as of 08:32, 2 February 2025



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
Image sizeimage_size

The size of the image. Defaults to 250px.

Default
250px
Stringoptional
Captioncaption

A caption for the image.

Stringoptional
Alt textalt

The alt text of the image.

Stringsuggested
Image 2image2

Another image of the character, if any.

Fileoptional
Image 2 sizeimage_size2

The size of the second image

Unknownoptional
Image 2 alt textalt2

The alt text of the second image.

Unknownoptional
Image 2 captioncaption2

The caption of the second image.

Example
Blue on the cover of ''[[The Lost Continent]]''
Contentoptional
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.