More actions
No edit summary |
' |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Module:Infobox/styles.css" /> | |||
<table class="infobox"> | |||
<caption class="infobox-title">{{{name|{{PAGENAME}}}}}</caption> | |||
| | <tr> | ||
<td colspan="2" class="infobox-image"> | |||
| | {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt|{{{caption|}}}}}}]]}} | ||
<div class="infobox-caption">{{{caption|}}}</div> | |||
| | </td> | ||
| | </tr> | ||
<tr> | |||
| | <td colspan="2" class="infobox-image"> | ||
| | {{#if:{{{image2|}}}|[[File:{{{image2}}}|{{{image_size2|250px}}}|alt={{{alt2|{{{caption2|}}}}}}]]}} | ||
<div class="infobox-caption">{{{caption2|}}}</div> | |||
| | </td> | ||
| | </tr> | ||
{{infobox/row|header=In-universe information}} | |||
| | {{infobox/row | ||
|label=Tribe | |||
| | |data={{#if: | ||
| | {{yesno|{{{hybrid|}}}}} | ||
|[[{{{tribe1}}}]]–[[{{{tribe2}}}]] hybrid | |||
| | |{{#if:{{{tribe|}}}|[[{{{tribe}}}]]}} | ||
| | }} | ||
}}<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
In-universe information | |
---|---|
Meta information |
An infobox that describes a character
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the character. Defaults to the page title.
| String | required |
Image | image | 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 name | suggested |
Image size | image_size | The size of the image. Defaults to 250px.
| String | optional |
Caption | caption | A caption for the image. | String | optional |
Alt text | alt | The alt text of the image. | String | suggested |
Image 2 | image2 | Another image of the character, if any. | File | optional |
Image 2 size | image_size2 | The size of the second image | Unknown | optional |
Image 2 alt text | alt2 | The alt text of the second image. | Unknown | optional |
Image 2 caption | caption2 | The caption of the second image.
| Content | optional |
Tribe | tribe | The tribe of the dragon. Will automatically link to article.
| String | suggested |
Hybrid | hybrid | Whether the character is a hybrid.
| String | optional |
Tribe 1 | tribe1 | The first tribe the dragon is, if it is a hybrid. Ignored if `hybrid` is false.
| String | optional |
Tribe 2 | tribe2 | The second tribe the dragon is, if it is a hybrid. Ignored if `hybrid` is false.
| String | optional |
Gender | gender | The gender of the character.
| String | suggested |
Age | age | The age of the character.
| String | suggested |
First appearance | first_appearance | The book the character first appeared in.
| Content | suggested |
Last appearance | last_appearance | The last book the character appeared in.
| Content | suggested |