Want to contribute? Join the Discord and ask for the editor role.
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 |
m (Added line at request) Tag: 2017 source edit |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
# | {{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 | |||
|data23 = | |||
}} | |||
<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. Displays as the text for the URL", | |||
"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> |
Latest revision as of 21:41, 12 July 2022
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the character (use the most official one)
| String | required |
Image | image | Image of the character | File | suggested |
Species | species | Species of the character
| String | suggested |
Gender | gender | Gender of the character
| String | optional |
Age | age | Age of the character, can be approximate (use tilde to indicate so)
| String | optional |
Relationships | relationships | Comma separated list of relationships. Include a url, if possible.
| String | optional |
Origin Series | originseries | The series where character originated, if applicable
| String | suggested |
Initial Appearance Video Name | initialappearance | The name of the video (or vod, if there is no video) where the character debuted. Displays as the text for the URL
| String | optional |
Initial Appearance Video URL | initialappearanceurl | The URL for the video of the initial appearance. If there's no video, a vod (through the archive YouTube channel) also works
| URL | suggested |
Notable Appearances | notableappearances | Comma separated list of notable appearances (no one time mentions on a random stream)
| String | suggested |