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
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}}}]]&ndash;[[{{{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": "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 96:
},
},
"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 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>
{{Infobox
| title    = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| caption1 = {{{caption|}}}
| header1  = In-universe information
| label2  = Tribe
|  data2  = {{{tribe|}}}
| label3  = Gender
|  data3  = {{{gender|}}}
| label4  = Age
|  data4  = {{{age|}}}
| header5  = Meta information
| label6  = First appearance
|  data6  = {{{first_appearance|}}}
| label5  = Last appearance
|  data5  = {{{last_appearance|}}}
}}

Latest revision as of 07:14, 20 April 2025



Character infobox
In-universe information
Book appearances and mentions

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
Arc 1 appearancesarc1appearances

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
Stringoptional
arc1mentionsarc1mentions

no description

Unknownoptional
arc2appearancesarc2appearances

no description

Unknownoptional
arc2mentionsarc2mentions

no description

Unknownoptional
arc3appearancesarc3appearances

no description

Unknownoptional
arc3mentionsarc3mentions

no description

Unknownoptional
otherappearancesotherappearances

no description

Unknownoptional
othermentionsothermentions

no description

Unknownoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.