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 to TemplateData
If no image is provided, add Category:Character pages without image
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
<templatestyles src="Module:Infobox/styles.css" />
| title     = {{{name|{{PAGENAME}}}}}
<table class="infobox">
| image   = {{{image|}}}
<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|}}}}}}]]|[[Category:Character pages without image]]}}
 
<div class="infobox-caption">{{{caption|}}}</div>
| label2   = Tribe
</td>
| data2  = {{#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=Species
| label5  = First appearance
  |data={{{species|}}}
| data5  = {{{first_appearance|}}}
}}
 
{{infobox/row
| label6  = Last appearance
   |label=Tribe
| data6   = {{{last_appearance|}}}
  |data={{#if:
}}<noinclude>
          {{yesno|{{{hybrid|}}}}}
        |[[{{{tribe1}}}]]&ndash;[[{{{tribe2}}}]] hybrid
        |{{#if:{{{tribe|}}}|[[{{{tribe}}}]]}}
        }}
}}
{{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|}}}
}}
{{infobox/row
   |data=
    {{Character infobox/Book appearances
      |arc1appearances={{{arc1appearances|}}}
      |arc1mentions={{{arc1mentions|}}}
      |arc2appearances={{{arc2appearances|}}}
      |arc2mentions={{{arc2mentions|}}}
      |arc3appearances={{{arc3appearances|}}}
      |arc3mentions={{{arc3mentions|}}}
      |otherappearances={{{otherappearances|}}}
      |othermentions={{{othermentions|}}}
    }}
}}
</table><noinclude>
<templatedata>
<templatedata>
{
{
Line 35: Line 70:
"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 55: Line 90:
"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 65: Line 100:
},
},
"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": "content",
"type": "content",
"suggested": true
"deprecated": "Use appearances instead"
},
},
"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": "content",
"type": "content",
"suggested": true
"deprecated": "Use appearances instead"
},
},
"age": {
"age": {
Line 94: Line 129:
"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"
]
},
"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"
},
"arc1appearances": {
"label": "Arc 1 appearances",
"description": "Appearances of this character for arc 1 (The Dragonet Prophecy Arc) as a space-delimited string of abbreviations (e.g. TDP)",
"example": "TDP TLH THK TDS TBN",
"type": "string"
},
"arc1mentions": {
"label": "Arc 1 mentions",
"description": "Mentions of this character for arc 1 (The Dragonet Prophecy Arc) as a space-delimited string of abbreviations (e.g. MR)",
"example": "TDP TLH THK TDS TBN",
"type": "string"
},
"arc2appearances": {
"label": "Arc 2 appearances",
"description": "Mentions of this character for arc 2 (The Jade Mountain Academy Arc) as a space-delimited string of abbreviations (e.g. MR)",
"example": "MR WT EP TOP DOD",
"type": "string"
},
"arc2mentions": {
"label": "Arc 2 mentions",
"description": "Mentions of this character for arc 2 (The Jade Mountain Academy Arc) as a space-delimited string of abbreviations (e.g. MR)",
"example": "MR WT EP TOP DOD",
"type": "string"
},
"arc3appearances": {
"label": "Arc 3 appearances",
"description": "Appearances of this character for arc 3 (The Lost Continent Prophecy Arc) as a space-delimited string of abbreviations (e.g. TLC)",
"example": "TLC THQ TPJ TDG TFOH",
"type": "string"
},
"arc3mentions": {
"label": "Arc 3 mentions",
"description": "Mentions of this character for arc 3 (The Lost Continent Prophecy Arc) as a space-delimited string of abbreviations (e.g. TLC)",
"example": "TLC THQ TPJ TDG TFOH",
"type": "string"
},
"otherappearances": {
"label": "Other appearances",
"description": "Appearances of this character in non-main-series books (Winglets, Legends) as a space-delimited string of abbreviations (e.g. W:P)",
"example": "W:P W:A W:D W:R L1 L2",
"type": "string"
},
"othermentions": {
"label": "Other mentions",
"description": "Mentions of this character in non-main-series books (Winglets, Legends) as a space-delimited string of abbreviations (e.g. W:P)",
"example": "W:P W:A W:D W:R L1 L2",
"type": "string"
},
"species": {
"label": "Species",
"description": "If not a dragon, the species of this character",
"example": "Scavenger",
"type": "string",
"suggestedvalues": [
"Cat",
"Sloth",
"Human"
]
]
}
}
Line 101: Line 269:
"name",
"name",
"image",
"image",
"image_size",
"caption",
"caption",
"alt",
"image2",
"image_size2",
"alt2",
"caption2",
"species",
"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 06:37, 10 July 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
Speciesspecies

If not a dragon, the species of this character

Suggested values
Cat Sloth Human
Example
Scavenger
Stringoptional
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
Contentdeprecated
Last appearancelast_appearance

The last book the character appeared in.

Example
Talons of Power
Contentdeprecated
Arc 1 appearancesarc1appearances

Appearances of this character for arc 1 (The Dragonet Prophecy Arc) as a space-delimited string of abbreviations (e.g. TDP)

Example
TDP TLH THK TDS TBN
Stringoptional
Arc 1 mentionsarc1mentions

Mentions of this character for arc 1 (The Dragonet Prophecy Arc) as a space-delimited string of abbreviations (e.g. MR)

Example
TDP TLH THK TDS TBN
Stringoptional
Arc 2 appearancesarc2appearances

Mentions of this character for arc 2 (The Jade Mountain Academy Arc) as a space-delimited string of abbreviations (e.g. MR)

Example
MR WT EP TOP DOD
Stringoptional
Arc 2 mentionsarc2mentions

Mentions of this character for arc 2 (The Jade Mountain Academy Arc) as a space-delimited string of abbreviations (e.g. MR)

Example
MR WT EP TOP DOD
Stringoptional
Arc 3 appearancesarc3appearances

Appearances of this character for arc 3 (The Lost Continent Prophecy Arc) as a space-delimited string of abbreviations (e.g. TLC)

Example
TLC THQ TPJ TDG TFOH
Stringoptional
Arc 3 mentionsarc3mentions

Mentions of this character for arc 3 (The Lost Continent Prophecy Arc) as a space-delimited string of abbreviations (e.g. TLC)

Example
TLC THQ TPJ TDG TFOH
Stringoptional
Other appearancesotherappearances

Appearances of this character in non-main-series books (Winglets, Legends) as a space-delimited string of abbreviations (e.g. W:P)

Example
W:P W:A W:D W:R L1 L2
Stringoptional
Other mentionsothermentions

Mentions of this character in non-main-series books (Winglets, Legends) as a space-delimited string of abbreviations (e.g. W:P)

Example
W:P W:A W:D W:R L1 L2
Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.