Template:Character Infobox: Difference between revisions

Template page
(F03e76cf-381d-43f2-ac2f-0322e184606c moved page User:8b6414c6-1cc8-428f-94ac-7705a3b5cef1/sandbox/draft/Template:Character Infobox to Template:Character Infobox: Moving out of drafts )
Tag: New redirect
 
(fixing lists and shit)
Tags: Removed redirect 2017 source edit
Line 1: Line 1:
#REDIRECT [[Template:Character Infobox]]
{{Infobox
|bodyclass = mw-collapsible floatright
|image1 = [[File:{{{image|Soon.png}}}|325px|center]]
|imagerowclass1 = infobox-image
 
|header2 = {{{name|}}}
|rowclass2 = infobox-title
 
|label3 = {{#if: {{{species|}}} | Species }}
|data3 = {{{species|}}}
|rowclass3 = infobox-data infobox-col1
 
|label4 = {{#if: {{{gender|}}} | Gender }}
|data4 = {{{gender|}}}
|rowclass4 = infobox-data infobox-col1
 
|label5 = {{#if: {{{age|}}} | Age }}
|data5 = {{{age|}}}
|rowclass5 = infobox-data infobox-col1
 
|label7 = {{#if: {{{relationships|}}} | Relationships }}
|data7 = {{#if: {{{relationships|}}} | <ul><li>{{#invoke:String|replace|{{{relationships|}}}|,|</li><li>}}</li></ul> }}
|rowclass7 = infobox-data infobox-col1
 
|header20 = {{#if: {{{initialappearance|}}}{{{notableappearances|}}}{{{originseries|}}} | Appearances }}
|rowclass20 = infobox-header
 
|label21 = {{#if: {{{initialappearanceurl|}}} | Initial Appearance }}
|data21 = {{#if: {{{initialappearanceurl|}}} | [{{{initialappearanceurl|}}} {{{initialappearance|Initial Appearance Stream}}}]}}
|rowclass21 = infobox-data infobox-col1
 
|label22 = {{#if: {{{notableappearances|}}} | Notable Appearances }}
|data22 = {{#if: {{{notableappearances|}}} | <ul><li>{{#invoke:String|replace|{{{notableappearances|}}}|,|</li><li>}}</li></ul> }}
|rowclass22 = infobox-data infobox-col1
 
|label6 = {{#if: {{{originseries|}}} | Origin Series}}
|data6 = {{{originseries|}}}
|rowclass6 = infobox-data infobox-col1
 
}}
<noinclude>
{{clear}}
{{documentation}}
[[Category:Templates]]
<templatedata>
{
"params": {
"image": {
"label": "Image",
"description": "Image of the character",
"type": "wiki-file-name",
"suggested": true
},
"name": {
"label": "Name",
"description": "Name of the character (use the most official one)",
"required": true,
"suggested": true,
"example": "Daniel",
"type": "string"
},
"species": {
"label": "Species",
"description": "Species of the character",
"type": "string",
            "example": "Human",
"suggested": true
},
"gender": {
"description": "Gender of the character",
"type": "string",
"label": "Gender",
"example": "Male"
},
"age": {
"label": "Age",
"description": "Age of the character, can be approximate (use tilde to indicate so)",
"type": "string",
            "example": "34"
},
"relationships": {
"label": "Relationships",
"description": "Comma separated list of relationships. Include a url, if possible.",
"example": "Sir Fatherington (Father),Rayleigh Shinship (Girlfriend)",
"type": "string"
},
"originseries": {
"label": "Origin Series",
"description": "The series where character originated, if applicable",
"example": "Pokémon Sword and Shield",
"type": "string",
"suggested": true
},
"initialappearance": {
"label": "Initial Appearance Video Name",
"description": "The name of the video (or vod, if there is no video) where the character debuted",
"example": "Let's Play All of Undertale",
"type": "string",
"default": "Initial Appearance Video"
},
"initialappearanceurl": {
"label": "Initial Appearance Video URL",
"description": "The URL for the video of the initial appearance. If there's no video, a vod (through the archive YouTube channel) also works",
"example": "https://www.youtube.com/watch?v=nae9SvLb2m0",
"type": "url",
"suggested": true
},
"notableappearances": {
"label": "Notable Appearances",
"description": "Comma separated list of notable appearances (no one time mentions on a random stream)",
"example": "Miitopia for the Nintendo Switch,Wii Sports Resort",
"type": "string",
"suggested": true
}
},
"description": "Outputs an infobox for a character",
"paramOrder": [
"name",
"image",
"species",
"gender",
"age",
"relationships",
        "originseries",
"initialappearance",
"initialappearanceurl",
"notableappearances"
],
"format": "block"
}
</templatedata></noinclude>

Revision as of 02:29, 9 July 2022

Soon.png
Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Character Infobox/doc. Changes can be proposed in the talk page.
Template:Character Infobox invokes function replace in Module:String using Lua.

Outputs an infobox for a character

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the character (use the most official one)

Example
Daniel
Stringrequired
Imageimage

Image of the character

Filesuggested
Speciesspecies

Species of the character

Example
Human
Stringsuggested
Gendergender

Gender of the character

Example
Male
Stringoptional
Ageage

Age of the character, can be approximate (use tilde to indicate so)

Example
34
Stringoptional
Relationshipsrelationships

Comma separated list of relationships. Include a url, if possible.

Example
Sir Fatherington (Father),Rayleigh Shinship (Girlfriend)
Stringoptional
Origin Seriesoriginseries

The series where character originated, if applicable

Example
Pokémon Sword and Shield
Stringsuggested
Initial Appearance Video Nameinitialappearance

The name of the video (or vod, if there is no video) where the character debuted

Default
Initial Appearance Video
Example
Let's Play All of Undertale
Stringoptional
Initial Appearance Video URLinitialappearanceurl

The URL for the video of the initial appearance. If there's no video, a vod (through the archive YouTube channel) also works

Example
https://www.youtube.com/watch?v=nae9SvLb2m0
URLsuggested
Notable Appearancesnotableappearances

Comma separated list of notable appearances (no one time mentions on a random stream)

Example
Miitopia for the Nintendo Switch,Wii Sports Resort
Stringsuggested