More actions
Changed image param to format it within the template |
add hybrid support |
||
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 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": "string", | "type": "string", | ||
"autovalue": "", | "autovalue": "", | ||
Line 65: | Line 65: | ||
}, | }, | ||
"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", | ||
Line 72: | Line 72: | ||
}, | }, | ||
"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", | ||
Line 94: | Line 94: | ||
"Male", | "Male", | ||
"Female" | "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 103: | Line 146: | ||
"caption", | "caption", | ||
"tribe", | "tribe", | ||
"hybrid", | |||
"tribe1", | |||
"tribe2", | |||
"gender", | "gender", | ||
"age", | "age", |
Revision as of 16:52, 20 December 2024
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 |
Caption | caption | A caption for the image. | String | 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 |