79,221
edits
(Made caption bigger and commented out white spaces to fix the blank space when viewing the documentation) |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!--- | <includeonly><!--- | ||
-->{{#vardefine:servicename|{{#switch:{{{1}}} | -->{{#vardefine:vg_used|yes}}{{#vardefine:servicename|{{#switch:{{{1}}} | ||
|dailymotion=Dailymotion | |dailymotion=Dailymotion | ||
|divshare=DivShare | |divshare=DivShare | ||
|googlevideo=Google Video | |googlevideo=Google Video | ||
|interia=Interia | |interia=Interia | ||
Line 13: | Line 12: | ||
|dailymotion=Dailymotion | |dailymotion=Dailymotion | ||
|divshare=DivShare | |divshare=DivShare | ||
|googlevideo=GoogleVideo | |googlevideo=GoogleVideo | ||
|interia=Interia | |interia=Interia | ||
Line 23: | Line 21: | ||
|dailymotion=<nowiki>http://www.dailymotion.com/video/</nowiki> | |dailymotion=<nowiki>http://www.dailymotion.com/video/</nowiki> | ||
|divshare=<nowiki>http://www.divshare.com/download/</nowiki> | |divshare=<nowiki>http://www.divshare.com/download/</nowiki> | ||
|googlevideo=<nowiki>http://video.google.com/videoplay?docid=</nowiki> | |googlevideo=<nowiki>http://video.google.com/videoplay?docid=</nowiki> | ||
|interia=<nowiki>http://video.interia.pl/obejrzyj,film,</nowiki> | |interia=<nowiki>http://video.interia.pl/obejrzyj,film,</nowiki> | ||
Line 31: | Line 28: | ||
-->{{#vardefine:videoid|{{#switch:{{{1}}} | -->{{#vardefine:videoid|{{#switch:{{{1}}} | ||
|dailymotion= | |dailymotion=x1k3syf_dakar-2-hd-on-dolphin-emulator-part2_videogames | ||
|divshare=13956887-4c7 | |divshare=13956887-4c7 | ||
|googlevideo=163776723883589087 | |||
|googlevideo= | |||
|interia=102988 | |interia=102988 | ||
|youtube=VqNcksMfAjM | |youtube=VqNcksMfAjM | ||
Line 41: | Line 37: | ||
-->{{#vardefine:videocaption|{{#switch:{{{1}}} | -->{{#vardefine:videocaption|{{#switch:{{{1}}} | ||
|dailymotion= | |dailymotion=Dakar 2 HD on Dolphin | ||
|divshare=It_s_A_Wonderful_World.mp4 | |divshare=It_s_A_Wonderful_World.mp4 | ||
| | |googlevideo=Paper Mario Speed run part 1 | ||
|interia=Na święta!!! Nintendo Wii | |interia=Na święta!!! Nintendo Wii | ||
|youtube=The Legend of Zelda: The Wind Waker Intro | |youtube=The Legend of Zelda: The Wind Waker Intro | ||
Line 52: | Line 47: | ||
-->This template provides a simplified way to use the [[Template:EmbedVideo|EmbedVideo]] plugin. It automatically uses the standard thumbnail size and position used on this wiki. | -->This template provides a simplified way to use the [[Template:EmbedVideo|EmbedVideo]] plugin. It automatically uses the standard thumbnail size and position used on this wiki. | ||
==Usage== | == Usage == | ||
The {{#var:servicename}} template should be called in the following way: | The {{#var:servicename}} template should be called in the following way: | ||
*<code><nowiki>{{</nowiki>{{#var:templatename}}<nowiki>|<videoID>|<title>|<options>}}</nowiki></code> | *<code><nowiki>{{</nowiki>{{#var:templatename}}<nowiki>|<videoID>|<title>|<options>}}</nowiki></code> | ||
Line 60: | Line 55: | ||
*<code>options</code> (optional) control some other functionalities of this template. Specifying <code>br</code> in this parameter tell the template to create a new row after embedding the video. Specifying <code>link</code> makes the template return only a hiperlink to watch the video on {{#var:servicename}}. | *<code>options</code> (optional) control some other functionalities of this template. Specifying <code>br</code> in this parameter tell the template to create a new row after embedding the video. Specifying <code>link</code> makes the template return only a hiperlink to watch the video on {{#var:servicename}}. | ||
==Examples== | == Examples == | ||
* Embed a video by specifying video ID and title. Titles longer than the box will automatically be truncated. We are embedding only one video, so we should add the <code>br</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}} with caption text longer than thumbnail box size<nowiki>|br}}</nowiki></code> will produce this: | * Embed a video by specifying video ID and title. Titles longer than the box will automatically be truncated. We are embedding only one video, so we should add the <code>br</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}} with caption text longer than thumbnail box size<nowiki>|br}}</nowiki></code> will produce this: | ||
{{{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}} with | {{{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}} with caption text longer than thumbnail box size|br}} | ||
* Embed a video by specifying only video ID, so the 2nd parameter is null. We are embedding only one video, so we should add the <code>br</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}<nowiki>||br}}</nowiki></code> make the template use URL as title since no title was entered: | * Embed a video by specifying only video ID, so the 2nd parameter is null. We are embedding only one video, so we should add the <code>br</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}<nowiki>||br}}</nowiki></code> make the template use URL as title since no title was entered: | ||
Line 69: | Line 64: | ||
* Return a hiperlink to watch the video on {{#var:servicename}} by specifying video ID and title. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}}<nowiki>|link}}</nowiki></code> will produce this: | * Return a hiperlink to watch the video on {{#var:servicename}} by specifying video ID and title. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}}<nowiki>|link}}</nowiki></code> will produce this: | ||
:{{{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}}|link}} | :{{{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}}|link}} | ||
* Return a hiperlink to watch the video on {{#var:servicename}} by specifying only video ID. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}<nowiki>||link}}</nowiki></code> make the template use URL as title since no title was entered: | * Return a hiperlink to watch the video on {{#var:servicename}} by specifying only video ID. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{</nowiki>{{#var:templatename}}|{{#var:videoid}}<nowiki>||link}}</nowiki></code> make the template use URL as title since no title was entered: | ||
:{{{{#var:templatename}}|{{#var:videoid}}||link}} | :{{{{#var:templatename}}|{{#var:videoid}}||link}} | ||
==Notes== | == Notes == | ||
* To use only video ID and an option, you must null the 2nd parameter by using ||, like this: <code><nowiki>{{</nowiki>{{#var:templatename}}<nowiki>|<videoID>||<options>}}</nowiki></code> | * To use only video ID and an option, you must null the 2nd parameter by using ||, like this: <code><nowiki>{{</nowiki>{{#var:templatename}}<nowiki>|<videoID>||<options>}}</nowiki></code> | ||
* The 3rd parameter only accept one option. If you include more than one option, none of them will work. | * The 3rd parameter only accept one option. If you include more than one option, none of them will work. |