Template:EmbedVideo/doc: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "== ([^=\[{])" to "== $1") |
No edit summary |
||
Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
The EmbedVideo parser function expects to be called in any of the following ways: | The EmbedVideo parser function expects to be called in any of the following ways: | ||
* < | * <code><nowiki>{{#ev:service|id}}</nowiki></code> | ||
* < | * <code><nowiki>{{#ev:service|id|width}}</nowiki></code> | ||
* < | * <code><nowiki>{{#ev:service|id|width|align}}</nowiki></code> | ||
* < | * <code><nowiki>{{#ev:service|id|width|align|desc}}</nowiki></code> | ||
* < | * <code><nowiki>{{#evp:service|id|desc}}</nowiki></code> | ||
* < | * <code><nowiki>{{#evp:service|id|desc|align}}</nowiki></code> | ||
* < | * <code><nowiki>{{#evp:service|id|desc|align|width}}</nowiki></code> | ||
Where: | Where: | ||
* < | * <var>service</var> is the name of a video sharing service (See "service name" in the list below) | ||
* < | * <var>id</var> is the id of the video to include | ||
* < | * <var>width</var> (optional) is the width in pixels of the viewing area (height will be determined automatically) | ||
* < | * <var>align</var> (optional) is an alignment (float) attribute. May be "left" or "right". | ||
* < | * <var>desc</var> (optional) is a short description to display beneath the video when it is aligned | ||
== Examples == | == Examples == | ||
Line 39: | Line 39: | ||
|- | |- | ||
! [http://www.dailymotion.com/ Dailymotion] | ! [http://www.dailymotion.com/ Dailymotion] | ||
| < | | <samp>dailymotion</samp> | ||
|- | |- | ||
! [http://www.divshare.com/ Div Share] | ! [http://www.divshare.com/ Div Share] | ||
| < | | <samp>divshare</samp> | ||
|- | |- | ||
! [http://edutopia.org Edutopia] | ! [http://edutopia.org Edutopia] | ||
| < | | <samp>edutopia</samp> | ||
|- | |- | ||
! [http://www.funnyordie.com/ FunnyOrDie] | ! [http://www.funnyordie.com/ FunnyOrDie] | ||
| < | | <samp>funnyordie</samp> | ||
|- | |- | ||
! [http://video.google.com/ Google Video] | ! [http://video.google.com/ Google Video] | ||
| < | | <samp>googlevideo</samp> | ||
|- | |- | ||
! [http://interia.pl/ Interia] | ! [http://interia.pl/ Interia] | ||
| < | | <samp>interia</samp> or <samp>interiavideo</samp> | ||
|- | |- | ||
! [http://revver.com/ Revver] | ! [http://revver.com/ Revver] | ||
| < | | <samp>revver</samp> | ||
|- | |- | ||
! [http://sevenload.com/ sevenload] | ! [http://sevenload.com/ sevenload] | ||
| < | | <samp>sevenload</samp> | ||
|- | |- | ||
! [http://teachertube.org TeacherTube] | ! [http://teachertube.org TeacherTube] | ||
| < | | <samp>teachertube</samp> | ||
|- | |- | ||
! [http://www.youtube.com/ YouTube] | ! [http://www.youtube.com/ YouTube] | ||
| < | | <samp>youtube</samp> and <samp>youtubehd</samp> | ||
|- | |- | ||
! [http://www.vimeo.com Vimeo] | ! [http://www.vimeo.com Vimeo] | ||
| < | | <samp>vimeo</samp> | ||
|} | |} |
Revision as of 03:48, 15 June 2015
The EmbedVideo Extension is a MediaWiki extension which adds parser functions called #ev and #evp for embedding video clips from popular video sharing services.
Usage
The EmbedVideo parser function expects to be called in any of the following ways:
{{#ev:service|id}}
{{#ev:service|id|width}}
{{#ev:service|id|width|align}}
{{#ev:service|id|width|align|desc}}
{{#evp:service|id|desc}}
{{#evp:service|id|desc|align}}
{{#evp:service|id|desc|align|width}}
Where:
- service is the name of a video sharing service (See "service name" in the list below)
- id is the id of the video to include
- width (optional) is the width in pixels of the viewing area (height will be determined automatically)
- align (optional) is an alignment (float) attribute. May be "left" or "right".
- desc (optional) is a short description to display beneath the video when it is aligned
Examples
A video of this URL:
http://www.youtube.com/watch?v=R9u_BJXRyuI
Would end up like this with the EmbedVideo plugin:
{{#ev:youtube|R9u_BJXRyuI}}
It could be further modified by reducing it's size, aligning it, etc etc, as outlined above. That video at 100px wide, left alignment, and a description, would be like so:
{{#ev:youtube|R9u_BJXRyuI|100|left|super smash bros brawl in 3d dolphin emulator}}
Supported Services
As of version 1.0, EmbedVideo supports embedding video content from the following services:
Site | Service Name |
---|---|
Dailymotion | dailymotion |
Div Share | divshare |
Edutopia | edutopia |
FunnyOrDie | funnyordie |
Google Video | googlevideo |
Interia | interia or interiavideo |
Revver | revver |
sevenload | sevenload |
TeacherTube | teachertube |
YouTube | youtube and youtubehd |
Vimeo | vimeo |