Modèle:Youtube

De Inkipédia


This is a template for youtube links and such (might save some time and energy when formatting them to link on the wiki and such). Now updated to be a wrapper for Template:Cite web

Syntax

1 videoID The ID of the video (thing after the 'watch?v=' in the URL). REQUIRED (fallback + error message exists if left undefined).
2 title The video title. REQUIRED (error message if left undefined)
3 channel Name of the channel that posted the video. OPTIONAL

Examples

Proper usage of this template

Input Output
{{Youtube|mGghG4hY48A|EXCLUSIVE: New Mudmouth Boss in Salmon Run - Splatoon 3 Gameplay|GameExplain}} YouTube GameExplain EXCLUSIVE: New Mudmouth Boss in Salmon Run - Splatoon 3 Gameplay. GameExplain.
{{Youtube|videoID=mGghG4hY48A|title=EXCLUSIVE: New Mudmouth Boss in Salmon Run - Splatoon 3 Gameplay|channel=GameExplain}} YouTube EXCLUSIVE: New Mudmouth Boss in Salmon Run - Splatoon 3 Gameplay. GameExplain.
{{Youtube|mGghG4hY48A|EXCLUSIVE: New Mudmouth Boss in Salmon Run - Splatoon 3 Gameplay}} YouTube EXCLUSIVE: New Mudmouth Boss in Salmon Run - Splatoon 3 Gameplay.

What not to do (and what the error messages look like)

Input Output
{{Youtube}} (note: please do not use this template without parameters) ERROR - missing video ID!!! YouTube Unknown video title + Channel.
{{Youtube|title=ayy lmao|channel=eecks dee}} (note: please do not use the template like this either) ERROR - missing video ID!!! YouTube ayy lmao. eecks dee.
{{Youtube|mGghG4hY48A}} (note: please also enter the video title and/or channel, this will show error message). YouTube Unknown video title + Channel.
{{Youtube|mGghG4hY48A|channel=GameExplain}} (note: try to avoid stating only the channel name) YouTube GameExplain Unknown video title. GameExplain.