Difference between revisions of "EmbedVideo Extension"
From Help Wiki
m |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 24: | Line 24: | ||
And if you wanted scaled down to thumbnail size, on the right with a short description, you could use: | And if you wanted scaled down to thumbnail size, on the right with a short description, you could use: | ||
<pre>{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}</pre> | <pre>{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}</pre> | ||
| + | {{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}} | ||
:''Note: See the [http://wiki.github.com/Whiteknight/mediawiki-embedvideo/ Project Homepage] for more examples.'' | :''Note: See the [http://wiki.github.com/Whiteknight/mediawiki-embedvideo/ Project Homepage] for more examples.'' | ||
| Line 52: | Line 53: | ||
! [http://interia.pl/ Interia] | ! [http://interia.pl/ Interia] | ||
| <tt>interia</tt> or <tt>interiavideo</tt> | | <tt>interia</tt> or <tt>interiavideo</tt> | ||
| − | |||
| − | |||
| − | |||
|- | |- | ||
! [http://sevenload.com/ sevenload] | ! [http://sevenload.com/ sevenload] | ||
| Line 68: | Line 66: | ||
| <tt>vimeo</tt> | | <tt>vimeo</tt> | ||
|} | |} | ||
| + | [[Category:Mediawiki]] | ||
Latest revision as of 14:22, 21 April 2017
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
For example, to include the famous "evolution of dance" YouTube video, you'd enter:
{{#ev:youtube|dMH0bHeiRNg}}
And if you wanted scaled down to thumbnail size, on the right with a short description, you could use:
{{#ev:youtube|dMH0bHeiRNg|100|right|This is an embedded video!}}
- Note: See the Project Homepage for more examples.
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 |
| sevenload | sevenload |
| TeacherTube | teachertube |
| YouTube | youtube and youtubehd |
| Vimeo | vimeo |