Template:Infobox episode: Difference between revisions

From EthoWiki
initial episode infobox
 
way better episode infobox now
Line 1: Line 1:
{{Infobox
{{Infobox
| above = {{{name|{{PAGENAME}}}}} (Episode {{{episode}}})
| image = {{{image|}}}


| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{image_alt|{{{alt|}}}}}}}}
| label1 = Season
| caption        = {{{caption|}}}
| data1 = {{{season|}}}
 
| labelstyle    = white-space: nowrap;
 
| label1         = Episode {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | {{abbr|nos.|numbers}} | {{abbr|no.|number}} }}
| data1         = {{#if: {{{season|}}} | Season&nbsp;{{{season|}}}<br /> }}{{#if: {{{series_no|}}} | {{nowrap|Series {{{series_no|}}}}}<br /> }}{{#if: {{{episode|}}} | {{#if: {{#invoke:String2|matchAny|,|/|&|-|–|and|source={{{episode|}}}}} | Episodes | Episode }} {{{episode|}}} }}{{#ifeq: {{{segment|}}} | yes | &nbsp;(segment) | {{{segment|}}} }}


| label2         = Duration
| label2 = Episode
| data2         = {{{duration|}}}
| data2 = {{{episode}}}


| label3 = Duration
| data3 = {{{duration}}}
}}
}}
<noinclude>
<noinclude>
Line 17: Line 17:
{
{
"params": {
"params": {
"image": {},
"name": {
"image_size": {},
"label": "Episode Name",
"image_upright": {},
"description": "The name of the episode",
"image_alt": {},
"example": "It Begins!",
"alt": {},
"type": "string",
"caption": {},
"required": true
"episode": {},
},
"season": {},
"image": {
"segment": {},
"label": "Thumbnail",
"duration": {}
"description": "The link to a thumbnail of the image.",
"example": "https://i.ytimg.com/vi/v41aZQhOcfI/sddefault.jpg",
"type": "url",
"suggested": true
},
"season": {
"label": "Season",
"description": "The season of the episode. Can be blank if it's a one off.",
"example": "1",
"type": "number"
},
"episode": {
"label": "Episode Number",
"description": "The number of the episode",
"example": "1",
"type": "number",
"required": true
},
"duration": {
"label": "Duration",
"description": "The duration of the video",
"example": "12:34",
"type": "string",
"required": true
}
},
},
"description": "Hopefully episode?"
"description": "Infobox for an episode!"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
[[Category:Episodes]]

Revision as of 04:17, 26 May 2024

Infobox episode (Episode {{{episode}}})
Episode{{{episode}}}
Duration{{{duration}}}

Infobox for an episode!

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Episode Namename

The name of the episode

Example
It Begins!
Stringrequired
Thumbnailimage

The link to a thumbnail of the image.

Example
https://i.ytimg.com/vi/v41aZQhOcfI/sddefault.jpg
URLsuggested
Seasonseason

The season of the episode. Can be blank if it's a one off.

Example
1
Numberoptional
Episode Numberepisode

The number of the episode

Example
1
Numberrequired
Durationduration

The duration of the video

Example
12:34
Stringrequired