Template:Ytl/doc

From Angelina Jordan Wiki
Revision as of 11:17, 25 October 2020 by Dcljr (talk | contribs) (oops… recat as allow missing)
This is a subpage documenting Template:Ytl. 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. It can be used for videos, playlists, channels, etc., but specialized templates exist for each of those cases (see list below), and those templates will generally be easier to use than this general-purpose one.

The name of the template is based on the phrase "youtube link".

Usage

  • {{ytl|path part of URL}}
  • {{ytl|path part of URL|linked text}}
  • {{ytl|path=path part of URL|linktext=linked text}}
  • {{ytl|path=path part of URL|linktext=linked text|protocol=http: or https: or nothing}}

The "path part of URL" means everything after youtube.com/ in the URL of the YouTube page you want to link to. If the path contains the equals sign (highly likely), you should probably use one of the last two forms shown above; otherwise, each equals sign would have be to "escaped", as shown in the examples below.

Note that protocol-relative URLs are formed by default, which means someone browsing the wiki in non-secure mode will get links using the http: protocol, and someone browsing in secure mode will get links using https:. This behavior can be overridden by using the protocol parameter.

Examples

See also