Template:Ytv/doc

From Angelina Jordan Wiki
Revision as of 15:52, 25 October 2020 by Dcljr (talk | contribs) (chg how SA is done)
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

Errors

These are equivalent and lead to YouTube's homepage — but if you wanted to do that, you should have used {{ytl}}:

See also

Full list of similar templates (including this one in bold):    [edit this list]

  • {{ytc}} – link to a YouTube channel (including specific tabs, like "About" or "Videos")
  • {{ytp}} – link to a YouTube playlist
  • {{yts}} – link to YouTube search results
  • {{ytv}} – link to a YouTube video

These templates are all "special cases" of the more general template (which they all call):

  • {{ytl}} – link to any page at YouTube

And that template in turn calls {{YTURL}} and {{xl}} to form the link itself.