Template:Ytv/doc
From Angelina Jordan Wiki
This is a subpage documenting Template:Ytv. To change the template, edit that page; to change the template's documentation (seen below), edit this one.
Documentation
This template forms external links to YouTube videos. Other templates exist for linking to playlists, channels, etc.
The name of the template is based on the phrase "youtube video".
Usage
{{ytv|video id|text to be linked}}{{ytv|video id|text to be linked|t=timepoint}}{{ytv|v=video id|linktext=text to be linked}}{{ytv|v=video id|t=timepoint|linktext=text to be linked}}
Note that the t named parameter can actually appear between the video id and text to be linked positional parameters, (as it is in the last example using all named parameters), but that order just looks weird.
Examples
{{ytv|nwFloCPXzCs|Angelina Jordan - I Put A Spell On You}}⇒ Angelina Jordan - I Put A Spell On You↗{{ytl|v=nwFloCPXzCs|linktext=Angelina Jordan - I Put A Spell On You}}⇒ Angelina Jordan - I Put A Spell On You↗{{ytl|v=nwFloCPXzCs|t=36s|linktext=Angelina Jordan - I Put A Spell On You}}⇒ Angelina Jordan - I Put A Spell On You↗
Errors
{{ytv}}⇒ YouTube video↗{{ytv|linktext=Not actually a YouTube video}}⇒ Not actually a YouTube video↗
These are equivalent and lead to YouTube's homepage — but if you wanted to do that, you should have used {{ytl}}:
{{ytv}}⇒ YouTube video↗