Template:Infobox episode: Difference between revisions

From EthoWiki
add a link label
add upload date and move prev/next episode
Line 16: Line 16:
| data3 = {{{episode}}}
| data3 = {{{episode}}}


| label4 = Duration
| label4 = Uploaded
| data4 = {{{duration}}}
| data4 = {{{uploaded|}}}


| label5 = Watch
| label5 = Duration
| data5 = [{{{link}}} on YouTube]
| data5 = {{{duration}}}


| label6 = Next Ep
| label6 = Watch
| data6 = {{#if: {{{next|}}} |
| data6 = [{{{link}}} on YouTube]
  [[{{{next}}}]] ▶️
}}


| label7 = Previous Ep
| label7 = Previous Ep
Line 31: Line 29:
   ◀️ [[{{{prev}}}]]
   ◀️ [[{{{prev}}}]]
}}  
}}  
| label8 = Next Ep
| data8 = {{#if: {{{next|}}} |
  [[{{{next}}}]] ▶️
}}




Line 96: Line 99:
"example": "https://youtu.be/lHngf-CKCzk",
"example": "https://youtu.be/lHngf-CKCzk",
"type": "url",
"type": "url",
"required": true
},
"uploaded": {
"label": "Upload Date",
"description": "When this video was uploaded.",
"example": "October 12th, 2024",
"type": "date",
"required": true
"required": true
}
}
},
},
"description": "Infobox for an episode!"
"description": "Infobox for an episode!",
"paramOrder": [
"name",
"image",
"season",
"episode",
"duration",
"uploaded",
"series",
"link",
"prev",
"next"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
[[Category:Episodes]]
[[Category:Episodes]]

Revision as of 23:50, 6 June 2024

Infobox episode (Episode {{{episode}}})
Episode{{{episode}}}
Duration{{{duration}}}
Watch[{{{link}}} on YouTube]

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
Upload Dateuploaded

When this video was uploaded.

Example
October 12th, 2024
Daterequired
Seriesseries

The series name

Example
Etho Plays Minecraft
Stringsuggested
YouTube Linklink

Link to the YouTube video

Example
https://youtu.be/lHngf-CKCzk
URLrequired
Previous Episodeprev

The title of the previous episode, if applicable

Stringsuggested
Next Episodenext

The title of the next episode, if applicable

Stringsuggested