Difference between revisions of "Template:Video"
Revision as of 14:10, 31 August 2017 | Revision as of 21:53, 5 December 2017 | |||
3 intermediate revisions by the same user not shown | ||||
Line 4: | Line 4: | |||
| center = <div class="center"> | | center = <div class="center"> | |||
| #default = <div class="thumb tright"> | | #default = <div class="thumb tright"> | |||
? | }}<div class="thumbinner" style="width: {{#expr: {{{width|300}}} + 2 }}px;">{{#if:{{{1|}}}|{{#ev:{{{service|youtube}}}|{{{1|}}}|{{{width|300}}}}}|''' | + | }}<div class="thumbinner" style="width: {{#expr: {{{width|300}}} + 2 }}px;">{{#if:{{{1|}}}|{{#ev:{{{service|youtube}}}|{{{1|}}}|{{{width|300}}}}}|'''Error!'''<br />''Video ID not specified.''}}<div class="thumbcaption"><p class="plainlinks" style="font-size:80%; float:right; border:none; background:none" >([{{#switch: | |
{{{service|}}} | {{{service|}}} | |||
? | |youtube = {{{link|https://www.youtube.com/watch?v={{{1|}}}}}} | + | |youtube = {{{link|https://www.youtube.com/watch?v={{{1|}}}}}} link | |
? | |youtubeh5 = {{{link|https://www.youtube.com/watch?v={{{1|}}}}}} | + | |youtubeh5 = {{{link|https://www.youtube.com/watch?v={{{1|}}}}}} link | |
? | |dailymotion = {{{link|https://dailymotion.com/video/{{{1|}}}}}} | + | |dailymotion = {{{link|https://dailymotion.com/video/{{{1|}}}}}} link | |
? | |funnyordie = {{{link|https://www.funnyordie.com/videos/{{{1|}}}}}} | + | |funnyordie = {{{link|https://www.funnyordie.com/videos/{{{1|}}}}}} link | |
? | |googlevideo = {{{link|https://video.google.com/{{{1|}}}}}} | + | |googlevideo = {{{link|https://video.google.com/{{{1|}}}}}} link | |
? | |sevenload = {{{link|https://en.sevenload.com/videos/{{{1|}}}}}} | + | |sevenload = {{{link|https://en.sevenload.com/videos/{{{1|}}}}}} link | |
? | |revver = {{{link|https://revver.com/video/{{{1|}}}}}} | + | |revver = {{{link|https://revver.com/video/{{{1|}}}}}} link | |
? | |veoh = {{{link|https://www.veoh.com/browse/videos/watch/{{{1|}}}}}} | + | |veoh = {{{link|https://www.veoh.com/browse/videos/watch/{{{1|}}}}}} link | |
? | |vimeo = {{{link|https://vimeo.com/{{{1|}}}}}} | + | |vimeo = {{{link|https://vimeo.com/{{{1|}}}}}} link | |
? | |rutube = {{{link|https://video.rutube.ru/{{{1|}}}}}} | + | |rutube = {{{link|https://video.rutube.ru/{{{1|}}}}}} link | |
? | |rutubep = {{{link|нет ссылки}}} {{#if:{{{link|}}}| | + | |rutubep = {{{link|нет ссылки}}} {{#if:{{{link|}}}|link|}} | |
? | |yandex = {{{link|https://static.video.yandex.ru/lite/{{{1|}}}}}} | + | |yandex = {{{link|https://static.video.yandex.ru/lite/{{{1|}}}}}} link | |
? | |yandexp = {{{link|нет ссылки}}} {{#if:{{{link|}}}| | + | |yandexp = {{{link|нет ссылки}}} {{#if:{{{link|}}}|link|}} | |
? | |yandexaudio = {{{link|https://static.video.yandex.ru/lite-audio/{{{1|}}}}}} | + | |yandexaudio = {{{link|https://static.video.yandex.ru/lite-audio/{{{1|}}}}}} link | |
? | |megavideo = {{{link|нет ссылки}}} {{#if:{{{link|}}}| | + | |megavideo = {{{link|нет ссылки}}} {{#if:{{{link|}}}|link|}} | |
? | |vkontakte = {{{link|https://vkontakte.ru/video_ext.php?{{{1|}}}}}} | + | |vkontakte = {{{link|https://vkontakte.ru/video_ext.php?{{{1|}}}}}} link | |
? | |#default = {{{link|https://www.youtube.com/watch?v={{{1|}}}}}} | + | |#default = {{{link|https://www.youtube.com/watch?v={{{1|}}}}}} link | |
}}])</p>{{{2|}}}</div></div></div></includeonly> | }}])</p>{{{2|}}}</div></div></div></includeonly> | |||
+ | <noinclude>{{Doc}}[[Category:WoWs templates]]</noinclude> |
Revision as of 21:53, 5 December 2017
Documentation
Parameter | Default value | Available choices | Description | ||
---|---|---|---|---|---|
{{{1}}} | N/A | Depending on the selected service | The first undefined value is the unique identifier of the video. For example: on YouTube, this is an 11 digit alphanumeric string. Each service has a different format. This value must be entered in order for the template to work. | ||
{{{2}}} | N/A | Any | The second undefined value is the video caption. It may contain mediawiki formatting and other legitimate wiki elements (such as links). | ||
{{{service}}} | youtube |
|
The service specified must be chosen from this listing. If none is specified, the default is YouTube. | ||
{{{width}}} | 300 | Any numerical values | The value specified determines the width of the embedded video. The default is 300 pixels. | ||
{{{align}}} | right | left, right, center | The alignment specified determines how the embedded video is aligned on the page: left, right, or center. It should be noted that text wrap is available only for values of "left" and "right"; for "center" the video is placed in the middle of the page and on top of everything that follows it. | ||
{{{link}}} | link or [there is no link] |
any html: // reference | The link specified overwrites the default link to the video in the "link" portion of the template. The default value is a link directly to the natively hosted video site. |
Examples
{{Video|55YaONbA3FI|width=500|Naval Legends: USS ''Kidd''}}
- This notation embeds a YouTube video with the width of 500 pixels, right aligned, and the caption "Naval Legends: USS Kidd".
{{Video|service=dailymotion|x266sjm|align=left|TEST}}
- This notation embeds a Dailymotion video with a width of 300 pixels, left aligned, and a caption of "TEST".
Category: