Welcome to Wargaming.net Wiki!
Variants

Difference between revisions of "Template:Video"

Jump to: navigation, search
Revision as of 14:10, 31 August 2017Revision 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}}}}}|'''Ошибка!'''<br />''Не указан ID видео.''}}<div class="thumbcaption"><p class="plainlinks" style="font-size:80%; float:right; border:none; background:none" >([{{#switch:+ }}<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
  • dailymotion
  • divshare
  • edutopia
  • interiavideo
  • interia
  • teachertube
  • youtubehd
  • rutube
  • rutubep
  • megavideo
  • vkontakte
  • veoh
  • vimeo
  • revver
  • youtube
  • yandex
  • yandexaudio
  • yandexp
  • funnyordie
  • googlevideo
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: