Template:EmbedVideo: Difference between revisions
Jump to navigation
Jump to search
(Fixing some nowiki tags issue) |
(Made caption bigger and commented out white spaces to fix the blank space when viewing the documentation) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!--- | ||
-->{{#vardefine:servicename|{{#switch:{{{1}}} | |||
{{#vardefine:servicename|{{#switch:{{{1}}} | |||
|dailymotion=Dailymotion | |dailymotion=Dailymotion | ||
|divshare=DivShare | |divshare=DivShare | ||
Line 9: | Line 8: | ||
|youtube=YouTube | |youtube=YouTube | ||
|vimeo=Vimeo | |vimeo=Vimeo | ||
}}}} | }}}}<!--- | ||
{{#vardefine:templatename|{{#switch:{{{1}}} | -->{{#vardefine:templatename|{{#switch:{{{1}}} | ||
|dailymotion=Dailymotion | |dailymotion=Dailymotion | ||
|divshare=DivShare | |divshare=DivShare | ||
Line 19: | Line 18: | ||
|youtube=YouTube | |youtube=YouTube | ||
|vimeo=Vimeo | |vimeo=Vimeo | ||
}}}} | }}}}<!--- | ||
{{#vardefine:serviceurl|{{#switch:{{{1}}} | -->{{#vardefine:serviceurl|{{#switch:{{{1}}} | ||
|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> | ||
Line 29: | Line 28: | ||
|youtube=<nowiki>http://www.youtube.com/watch?v=</nowiki> | |youtube=<nowiki>http://www.youtube.com/watch?v=</nowiki> | ||
|vimeo=<nowiki>http://vimeo.com/</nowiki> | |vimeo=<nowiki>http://vimeo.com/</nowiki> | ||
}}}} | }}}}<!--- | ||
{{#vardefine:videoid|{{#switch:{{{1}}} | -->{{#vardefine:videoid|{{#switch:{{{1}}} | ||
|dailymotion=xuqfvr | |dailymotion=xuqfvr | ||
|divshare=13956887-4c7 | |divshare=13956887-4c7 | ||
Line 39: | Line 38: | ||
|youtube=VqNcksMfAjM | |youtube=VqNcksMfAjM | ||
|vimeo=13118504 | |vimeo=13118504 | ||
}}}} | }}}}<!--- | ||
{{#vardefine:videocaption|{{#switch:{{{1}}} | -->{{#vardefine:videocaption|{{#switch:{{{1}}} | ||
|dailymotion=Retro plays Kirby's Epic Yarn (Nintendo Wii) Part 1 | |dailymotion=Retro plays Kirby's Epic Yarn (Nintendo Wii) Part 1 | ||
|divshare=It_s_A_Wonderful_World.mp4 | |divshare=It_s_A_Wonderful_World.mp4 | ||
|funnyordie= | |funnyordie=Super Mario Galaxy For Nintendo Wii | ||
|googlevideo=Nintendo Entertainment System | |googlevideo=Nintendo Entertainment System | ||
|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 | ||
|vimeo=Super Mario Bros. | |vimeo=Super Mario Bros. | ||
}}}} | }}}}<!--- | ||
-->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: | ||
Line 59: | Line 61: | ||
==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 | * 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 title longer than box|br}} | {{{{#var:templatename}}|{{#var:videoid}}|{{#var:videocaption}} with title longer than box|br}} | ||