More actions
Added more parameters and fixed Infobox formatting issues. |
No edit summary |
||
(14 intermediate revisions by 2 users 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}}}]]}} | |||
}} | |||
}} | |||
{{infobox/row | |||
|label=Gender | |||
|data={{{gender|}}} | |||
}} | |||
{{infobox/row | |||
|label=Age | |||
|data={{{age|}}} | |||
}} | |||
{{infobox/row|header=Book appearances and mentions}} | |||
{{infobox/row | |||
|label=First appearance | |||
|data={{{first_appearance|}}} | |||
}} | |||
{{infobox/row | |||
|label=Last appearance | |||
|data={{{last_appearance|}}} | |||
}} | |||
{{infobox/row | |||
|data= | |||
{{Character infobox/Book appearances | |||
|arc1appearances={{{arc1appearances|}}} | |||
|arc1mentions={{{arc1mentions|}}}}} | |||
|arc2appearances={{{arc2appearances|}}} | |||
|arc2mentions={{{arc2mentions|}}} | |||
|arc3appearances={{{arc3appearances|}}} | |||
|arc3mentions={{{arc3mentions|}}} | |||
|otherappearances={{{otherappearances|}}} | |||
|othermentions={{{othermentions|}}} | |||
}} | |||
<noinclude> | </table><noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 6: | Line 59: | ||
"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 66: | ||
"tribe": { | "tribe": { | ||
"label": "Tribe", | "label": "Tribe", | ||
"description": "The tribe of the dragon.", | "description": "The tribe of the dragon. Will automatically link to article.", | ||
"type": " | "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 96: | ||
}, | }, | ||
"first_appearance": { | "first_appearance": { | ||
"label": "First | "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": " | "type": "content", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"last_appearance": { | "last_appearance": { | ||
"label": "Last | "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": " | "type": "content", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
Line 55: | Line 120: | ||
"description": "The gender of the character.", | "description": "The gender of the character.", | ||
"example": "Male", | "example": "Male", | ||
"type": "string", | |||
"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" | |||
] | |||
}, | |||
"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", | "type": "string", | ||
"suggested": true | "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" | |||
}, | |||
"arc1appearances": { | |||
"label": "Arc 1 appearances", | |||
"description": "Appearances of this character for arc 1 (The Dragonet Prophecy Arc) as a space-delimited string of three-letter abbreviations (e.g. TDP)", | |||
"example": "TDP TLH THK TDS TBN", | |||
"type": "string" | |||
}, | |||
"arc1mentions": {}, | |||
"arc2appearances": {}, | |||
"arc2mentions": {}, | |||
"arc3appearances": {}, | |||
"arc3mentions": {}, | |||
"otherappearances": {}, | |||
"othermentions": {} | |||
}, | }, | ||
"description": "An infobox that describes a character", | "description": "An infobox that describes a character", | ||
Line 63: | Line 219: | ||
"name", | "name", | ||
"image", | "image", | ||
"image_size", | |||
"caption", | "caption", | ||
"alt", | |||
"image2", | |||
"image_size2", | |||
"alt2", | |||
"caption2", | |||
"tribe", | "tribe", | ||
"hybrid", | |||
"tribe1", | |||
"tribe2", | |||
"gender", | "gender", | ||
"age", | "age", | ||
"first_appearance", | "first_appearance", | ||
"last_appearance" | "last_appearance", | ||
] | "arc1appearances", | ||
"arc1mentions", | |||
"arc2appearances", | |||
"arc2mentions", | |||
"arc3appearances", | |||
"arc3mentions", | |||
"otherappearances", | |||
"othermentions" | |||
], | |||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:14, 20 April 2025
In-universe information | |
---|---|
Book appearances and mentions | |
|
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 |
Arc 1 appearances | arc1appearances | Appearances of this character for arc 1 (The Dragonet Prophecy Arc) as a space-delimited string of three-letter abbreviations (e.g. TDP)
| String | optional |
arc1mentions | arc1mentions | no description | Unknown | optional |
arc2appearances | arc2appearances | no description | Unknown | optional |
arc2mentions | arc2mentions | no description | Unknown | optional |
arc3appearances | arc3appearances | no description | Unknown | optional |
arc3mentions | arc3mentions | no description | Unknown | optional |
otherappearances | otherappearances | no description | Unknown | optional |
othermentions | othermentions | no description | Unknown | optional |