Difference between revisions of "Help:Inserting videos"

From War Thunder Wiki
Jump to: navigation, search
(Created WIP Page for article)
 
Line 30: Line 30:
  
 
=== Insert single video ===
 
=== Insert single video ===
Для вставки одиночного видео через Визуальный редактор необходимо так же, как и в прошлом примере, зайти в раздел «Шаблоны», но на этот раз выбрать шаблон YouTube.
+
To insert a single video through the Visual Editor, you need to go to the “Templates” section just like in the previous example, but this time choose the [[Template:Youtube-gallery|Youtube]] template.
  
[[Файл:Визуальный редактор - настройка шаблона видео.png]]
+
[[File:InsertingVideos - Visual AddYoutube.png]]
  
В обязательное поле url необходимо вставить id видео с YouTube, получение которого было показано в прошлом примере. Для шаблона также доступны дополнительные параметры align, size, caption, предназначение которых расписано в окне настройки и на странице [[Шаблон:Youtube|шаблона]].
+
In the required "url" field, you need to insert the ID of the video from YouTube, the receipt of which was shown in the last example. For the template, the additional parameters "align," "size," and "caption" are also available in the "add more information" section, the setting of which can be adjusted from the field box shown afterwards.
  
После того, как все параметры будут указаны, нажмите кнопку «Вставить».
+
After all the parameters are specified, click the "Insert" button.
  
 
== Wiki text editor ==
 
== Wiki text editor ==
 
=== Insert video gallery ===
 
=== Insert video gallery ===
С помощью редактора вики-текста вставить галерею видео можно с помощью следующего кода:
+
Using the wiki text editor, you can insert a video gallery using the following code:
  
<code><nowiki>{{Youtube-gallery|<id1>|<подпись1>|<id2>|<подпись2>|<id3>|<подпись3>|...}}</nowiki></code>
+
<code><nowiki>{{Youtube-gallery|<ID1>|<Caption1>|<ID2>|<Caption2>|<ID3>|<Caption3>|...}}</nowiki></code>
  
Параметры:
+
Glossary:
* id — это id видео, про которое говорилось в примере с Визуальном редактором
+
ID - Identifying numbers of the YouTube video. Example: <code><nowiki>https://www.youtube.com/watch?v=</nowiki>'''a8_8L-F44ts'''&t=54s</code>
* подпись — подпись под видео
+
Caption - Caption that will be displayed under video.
  
Количество видео в галерее не ограничено, но рекомендуется вставлять не более трёх.
+
The number of videos in the gallery is not limited, but it is recommended to insert no more than three.  
'''
+
 
Пример использования:'''
+
Usage example:
  
 
Код:
 
Код:
  
<code><nowiki>{{Youtube-gallery|0-J5Vg0SxLc|Победа за вами|x1rco00eKxk|Т-44: первый выезд|ZIpn3TYbqxY|Обновление 1.47}}</nowiki></code>
+
<code><nowiki>{{Youtube-gallery|0-J5Vg0SxLc|Victory is ours!|-ndHK-sKUkw|Unforgotten: T-44 'Start up and move out!' in Kubinka|8MoVAKl9uFc|Update 1.47}}</nowiki></code>
  
Результат:
+
Result:
{{Youtube-gallery|0-J5Vg0SxLc|Победа за вами|x1rco00eKxk|Т-44: первый выезд|ZIpn3TYbqxY|Обновление 1.47}}
+
{{Youtube-gallery|0-J5Vg0SxLc|Victory is ours!|-ndHK-sKUkw|Unforgotten: T-44 'Start up and move out!' in Kubinka|8MoVAKl9uFc|Update 1.47}}
  
Подробнее про шаблон: [[Шаблон:Youtube-gallery|Youtube-gallery]].
+
Read more about the template: [[Template:Youtube-gallery|Youtube-gallery]].
  
 
=== Insert single video ===
 
=== Insert single video ===

Revision as of 14:49, 26 December 2018

It is desirable to complement War Thunder Wiki articles with thematic videos to expand their themes.

Articles on the War Thunder Wiki is desirable to complement thematic videos expanding their theme. At the same time, the wiki does not have the feature to directly upload videos like images. Therefore, the desired videos must be first uploaded to a video hosting site, such as YouTube.

You can insert an external video into an article in the following ways:

Visual editor

Insert video gallery

справа

To insert a video gallery through a visual editor, go to the "Template" section of the "Insert" menu.

InsertingVideos - Visual AddYTGallery.png

In the dialog box that appears, select the template Youtube-gallery and click the "Add template" button.

InsertingVideos - Visual YTGalleryField.png

In the next window, the "Field name" box, enter the number 1, then click on the appeared block with the name "1" with the caption "Unknown field." After these actions, another input box will appear on the screen, where you should enter the ID of the video from YouTube into it. You can get it from the video URL as follows:

https://www.youtube.com/watch?v=a8_8L-F44ts&t=54s

The bold text will be the ID of the video.

Then, in the "Field name" box in the "Add more information" section, you need to enter the number "2" and click on the appeared block with the same name. Now in the new input box that appears on the screen, you can add an explanatory note to the video. You can continue adding these text by inserting digits in order (3, 4, 5, etc.) to infinity, with each odd field will be considered a video ID, and each even field will be considered as the description for the preceding number/video. Nevertheless, an infinite number of videos in the article would look somewhat inappropriate, so it is advisable to limit their number to three or four. An example with three inserted videos and their descriptions:

[File:InsertingVideos - Visual YTGalleryDetails.png]]

After all the parameters are specified, click the "Insert" button

Insert single video

To insert a single video through the Visual Editor, you need to go to the “Templates” section just like in the previous example, but this time choose the Youtube template.

InsertingVideos - Visual AddYoutube.png

In the required "url" field, you need to insert the ID of the video from YouTube, the receipt of which was shown in the last example. For the template, the additional parameters "align," "size," and "caption" are also available in the "add more information" section, the setting of which can be adjusted from the field box shown afterwards.

After all the parameters are specified, click the "Insert" button.

Wiki text editor

Insert video gallery

Using the wiki text editor, you can insert a video gallery using the following code:

{{Youtube-gallery|<ID1>|<Caption1>|<ID2>|<Caption2>|<ID3>|<Caption3>|...}}

Glossary: ID - Identifying numbers of the YouTube video. Example: https://www.youtube.com/watch?v=a8_8L-F44ts&t=54s Caption - Caption that will be displayed under video.

The number of videos in the gallery is not limited, but it is recommended to insert no more than three.

Usage example:

Код:

{{Youtube-gallery|0-J5Vg0SxLc|Victory is ours!|-ndHK-sKUkw|Unforgotten: T-44 'Start up and move out!' in Kubinka|8MoVAKl9uFc|Update 1.47}}

Result:

Read more about the template: Youtube-gallery.

Insert single video

Т-34-85Э

Вставить одиночное видео через редактор вики-текста можно с помощью следующего кода (пример получаемого результата справа):

{{Youtube
 |url = nX1b_OQ93Qs
 |caption = Т-34-85Э
 |align = right
 |size = 300
}}

Параметры:

  • url — ссылка или id видео (обязательный)
  • caption — подпись
  • align — выравнивание по центру, слева или справа (по умолчанию left)
  • size — размер видео в пикселях (по умолчанию 300)

Строки с необязательными параметрами можно удалить.

Подробнее про шаблон: Youtube.

Insert video with #ev

Базовое средство для вставки видео содержащееся в расширении EmbedVideo и способное работать с большим количеством видео-хостингов. Пример вставки видео через #ev:

{{#ev:сервис|ID или URL|ширина|выравнивание|подпись}}

Параметры:

  • сервис — название сервиса, на котором размещено видео (см. таблицу под спойлером ниже)
  • ID или URL — адрес конкретного видео
  • ширина — ширина видео в пикселях (по умолчанию — 640)
  • выравнивание — выровнять видео по левому краю, по центру, по правому краю. Используются параметры left, center и right.
  • подпись — подпись под видео

Не рекомендуется вставлять видео с YouTube с помощью #ev.

Если после кода вызова видео добавить код {{Разрыв}}, то текст не будет обтекать видео.