Template:EmbedVideo: Difference between revisions

Jump to navigation Jump to search
Undo revision 116066 by Kolano (talk)
(We can add exceptions by defining vg_used as yes... exclude template documentation from the category)
(Undo revision 116066 by Kolano (talk))
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
|dailymotion=Dailymotion
|dailymotion=Dailymotion
|divshare=DivShare
|divshare=DivShare
|funnyordie=Funny or Die
|googlevideo=Google Video
|googlevideo=Google Video
|interia=Interia
|interia=Interia
Line 13: Line 12:
|dailymotion=Dailymotion
|dailymotion=Dailymotion
|divshare=DivShare
|divshare=DivShare
|funnyordie=FunnyOrDie
|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>
|funnyordie=<nowiki>http://www.funnyordie.com/videos/</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=xuqfvr
|dailymotion=x1k3syf_dakar-2-hd-on-dolphin-emulator-part2_videogames
|divshare=13956887-4c7
|divshare=13956887-4c7
|funnyordie=a18ed2bdc0
|googlevideo=163776723883589087
|googlevideo=163776723883589087
|interia=102988
|interia=102988
Line 41: Line 37:


-->{{#vardefine:videocaption|{{#switch:{{{1}}}
-->{{#vardefine:videocaption|{{#switch:{{{1}}}
|dailymotion=Retro plays Kirby's Epic Yarn (Nintendo Wii) Part 1
|dailymotion=Dakar 2 HD on Dolphin
|divshare=It_s_A_Wonderful_World.mp4
|divshare=It_s_A_Wonderful_World.mp4
|funnyordie=Super Mario Galaxy For Nintendo Wii
|googlevideo=Paper Mario Speed run part 1
|googlevideo=Paper Mario Speed run part 1
|interia=Na święta!!! Nintendo Wii
|interia=Na święta!!! Nintendo Wii
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 caption text longer than thumbnail box size|br}}
{{{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}} with caption text longer than thumbnail box size|br}}
Line 73: Line 68:
:{{{{#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.

Navigation menu