Difference between revisions of "Template:Video"
Jump to navigation
Jump to search
(Created page with "{{#evt: service=youtube |id={{{1}}} |alignment=right }} <noinclude> The Video template makes it easy to copy a YouTube video URL and embed it in your wiki page. == Usage == Ju...") |
|||
Line 1: | Line 1: | ||
{{#evt: | {{#evt: | ||
service=youtube | service=youtube | ||
− | |id={{{ | + | |id={{{url}}} |
|alignment=right | |alignment=right | ||
}} | }} | ||
Line 10: | Line 10: | ||
Like this: | Like this: | ||
− | <nowiki>{{Video|https://www.youtube.com/watch?v=pSsYTj9kCHE}}</nowiki> | + | <nowiki>{{Video|url=https://www.youtube.com/watch?v=pSsYTj9kCHE}}</nowiki> |
That will expand to | That will expand to |
Latest revision as of 19:38, 6 January 2017
EmbedVideo received the bad id "{{{url}}}" for the service "youtube".
The Video template makes it easy to copy a YouTube video URL and embed it in your wiki page.
Usage[edit source]
Just call the template with the full YouTube (or other service) address of the video to embed.
Like this:
{{Video|url=https://www.youtube.com/watch?v=pSsYTj9kCHE}}
That will expand to
{{#evt: service=youtube |id=https://www.youtube.com/watch?v=pSsYTj9kCHE |alignment=right }}
which uses the Embed Video parser tag for templates to produce
Embed Video Documentation[edit source]
https://www.mediawiki.org/wiki/Extension:EmbedVideo#.23evt_-_Parser_Tag_for_Templates