Difference between revisions of "EmbedVideo"
From universalworldchurch.org
Jump to navigationJump to search (→Usage) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
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: | ||
− | * <nowiki>{{#ev:service|id}}</nowiki></tt> | + | * <tt><nowiki>{{#ev:service|id}}</nowiki></tt> |
− | * <nowiki>{{#ev:service|id|width}}</nowiki></tt> | + | * <tt><nowiki>{{#ev:service|id|width}}</nowiki></tt> |
− | * <nowiki>{{#ev:service|id|width|align}}</nowiki></tt> | + | * <tt><nowiki>{{#ev:service|id|width|align}}</nowiki></tt> |
− | * <nowiki>{{#ev:service|id|width|align|desc}}</nowiki></tt> | + | * <tt><nowiki>{{#ev:service|id|width|align|desc}}</nowiki></tt> |
− | * <nowiki>{{#evp:service|id|desc}}</nowiki></tt> | + | * <tt><nowiki>{{#evp:service|id|desc}}</nowiki></tt> |
− | * <nowiki>{{#evp:service|id|desc|align}}</nowiki></tt> | + | * <tt><nowiki>{{#evp:service|id|desc|align}}</nowiki></tt> |
− | * <nowiki>{{#evp:service|id|desc|align|width}}</nowiki></tt> | + | * <tt><nowiki>{{#evp:service|id|desc|align|width}}</nowiki></tt> |
Where: | Where: | ||
− | * service is the name of a video sharing service (See "service name" in the list below) | + | * <tt>service</tt> is the name of a video sharing service (See "service name" in the list below) |
* <tt>id</tt> is the id of the video to include | * <tt>id</tt> is the id of the video to include | ||
* <tt>width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically) | * <tt>width</tt> (optional) is the width in pixels of the viewing area (height will be determined automatically) | ||
Line 27: | Line 27: | ||
http://www.youtube.com/watch?v=CMX2lPum_pg&ob=av2el | http://www.youtube.com/watch?v=CMX2lPum_pg&ob=av2el | ||
[[Category: Admin Pages]] | [[Category: Admin Pages]] | ||
+ | <br><br>Back to [[Getting Started]]. |
Latest revision as of 01:57, 23 March 2011
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.
http://www.youtube.com/watch?v=CMX2lPum_pg&ob=av2el
Back to Getting Started.