Template:Video: Difference between revisions

From Freephile Wiki
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..."
 
No edit summary
 
Line 1: Line 1:
{{#evt:
{{#evt:
service=youtube
service=youtube
|id={{{1}}}
|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 20:38, 6 January 2017

Provided ID could not be validated.

The Video template makes it easy to copy a YouTube video URL and embed it in your wiki page.

Usage[edit]

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]

https://www.mediawiki.org/wiki/Extension:EmbedVideo#.23evt_-_Parser_Tag_for_Templates