Template:LinkYouTube: Difference between revisions
Jump to navigation
Jump to search
Apple Bottom (talk | contribs) Created page with "<includeonly>{{#ifeq: {{{id|}}} | '''<span style="color: red">Error: id= parameter not specified!</span>''' Category:Pages that link to YouTube videos with missing IDs | {{#ifeq: {{{title|}}} | [https://www.youtube.com/watch?v={{{id}}} YouTube video {{{id}}}] Category:Pages that link to YouTube videos with missing titles | [https://www.youtube.com/watch?v={{{id}}} {{{title}}}] }} (YouTube video) Category:Pages that link to YouTube }}</includeonly><noinclude>T..." |
Apple Bottom (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{id|}}} | '''<span style="color: red">Error: id= parameter not specified!</span>''' [[Category:Pages that link to YouTube videos with missing IDs]] | {{#ifeq: {{{title|}}} | [https://www.youtube.com/watch?v={{{id}}} YouTube video {{{id}}}] [[Category:Pages that link to YouTube videos with missing titles]] | [https://www.youtube.com/watch?v={{{id}}} {{{title}}}] }} (YouTube video) [[Category:Pages that link to YouTube]] }}</includeonly><noinclude>This is a template for including links to YouTube videos in the "External Links" section of an article. It can take the following parameters: | <includeonly>{{#ifeq: {{{id|}}} | | '''<span style="color: red">Error: id= parameter not specified!</span>''' [[Category:Pages that link to YouTube videos with missing IDs]] | {{#ifeq: {{{title|}}} | | [https://www.youtube.com/watch?v={{{id}}} YouTube video {{{id}}}] [[Category:Pages that link to YouTube videos with missing titles]] | [https://www.youtube.com/watch?v={{{id}}} {{{title}}}] }} (YouTube video) [[Category:Pages that link to YouTube]] }}</includeonly><noinclude>This is a template for including links to YouTube videos in the "External Links" section of an article. It can take the following parameters: | ||
* ''id'', the id number of the video being linked to (mandatory); | * ''id'', the id number of the video being linked to (mandatory); | ||
Revision as of 17:01, 19 April 2024
This is a template for including links to YouTube videos in the "External Links" section of an article. It can take the following parameters:
- id, the id number of the video being linked to (mandatory);
- title, the title of the video being linked to (optional but recommended).
Here are three simple usage examples:
You type:
{{LinkYoutube|id=eZ9BBcskBjY|title=Herschel tracks in Conway's Game of Life - Part 1 - Making oscillators of any large period}}
You see:
Herschel tracks in Conway's Game of Life - Part 1 - Making oscillators of any large period (YouTube video)
You type:
{{LinkYoutube|id=eZ9BBcskBjY}}
You see:
YouTube video eZ9BBcskBjY (YouTube video)
You type:
{{LinkYoutube|title=Herschel tracks in Conway's Game of Life - Part 1 - Making oscillators of any large period}}
You see:
Error: id= parameter not specified!
See also
- Pages that link to external sites (category)
External link templates
- Template:Cata
- Template:LinkCallahan
- Template:LinkCatagolue
- Template:LinkCatagolueRule
- Template:LinkEppstein
- Template:LinkEppsteinRule
- Template:LinkForumThread
- Template:LinkGoLDictionary
- Template:LinkGoLNews
- Template:LinkGollyHelp
- Template:LinkLexicon
- Template:LinkMathworld
- Template:LinkMirek
- Template:LinkNiemiec
- Template:LinkPentadecathlonObject
- Template:LinkWikipedia
- Template:LinkYouTube
- Template:MathGenealogy
- Template:OEIS