Difference between revisions of "Template:Youtube-gallery/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Created page with "This template can be used to add a left-aligned YouTube video to an article. Word wrap is unavailable (the layout is basically a video gallery). How to use: <code><nowiki>{...")
 
(Edits)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{docpage}}
 +
 
This template can be used to add a left-aligned YouTube video to an article. Word wrap is unavailable (the layout is basically a video gallery).
 
This template can be used to add a left-aligned YouTube video to an article. Word wrap is unavailable (the layout is basically a video gallery).
+
 
 
How to use:
 
How to use:
  
<code><nowiki>{{YouTube-gallery|<id1>|<signature1>|<id2>|<signature2>|<id3>|<signature3>|...}}</nowiki></code>
+
<code><nowiki>{{Youtube-gallery|<id1>|<signature1>|<id2>|<signature2>|<id3>|<signature3>|...}}</nowiki></code>
* ID is the code used after “v=in the link address (for example, <nowiki>http://www.youtube.com/watch?v=</nowiki>'''0-J5Vg0SxLc''').
+
* ID is the code used after "v=" in the link address (for example, <nowiki>http://www.youtube.com/watch?v=</nowiki>'''0-J5Vg0SxLc''').
+
 
There is no restricted amount of videos that can be used in a gallery.
+
There is no restriction on the number of videos that can be used in a gallery.
+
 
 
The caption can be empty. For example:
 
The caption can be empty. For example:
  
<code><nowiki>{{YouTube-gallery|<id1>|<signature1>|<id2>||<id3>|}}</nowiki></code>
+
<code><nowiki>{{Youtube-gallery|<id1>|<signature1>|<id2>||<id3>|}}</nowiki></code>
+
 
Please note that you should not delete the corresponding vertical slash when deleting the caption.
+
Please note that you should not delete the corresponding vertical slash if leaving the caption blank.
+
 
 
Example of use:
 
Example of use:
 
<pre>{{Youtube-gallery|neFsLnNSatw|Z 20 Karl Galster}}
 
<pre>{{Youtube-gallery|neFsLnNSatw|Z 20 Karl Galster}}
Line 24: Line 26:
  
 
== See also ==
 
== See also ==
* [[Template:Youtube]] — to insert a single video.
+
* [[Template:Youtube]] — for better customisation of a single video.

Latest revision as of 19:55, 22 November 2020

This template can be used to add a left-aligned YouTube video to an article. Word wrap is unavailable (the layout is basically a video gallery).

How to use:

{{Youtube-gallery|<id1>|<signature1>|<id2>|<signature2>|<id3>|<signature3>|...}}

  • ID is the code used after "v=" in the link address (for example, http://www.youtube.com/watch?v=0-J5Vg0SxLc).

There is no restriction on the number of videos that can be used in a gallery.

The caption can be empty. For example:

{{Youtube-gallery|<id1>|<signature1>|<id2>||<id3>|}}

Please note that you should not delete the corresponding vertical slash if leaving the caption blank.

Example of use:

{{Youtube-gallery|neFsLnNSatw|Z 20 Karl Galster}}
{{Youtube-gallery|neFsLnNSatw|Z 20 Karl Galster|a8_8L-F44ts|Magach 3|6vPOqfNbv3A|Martin-Baker M.B.5}}
{{Youtube-gallery|neFsLnNSatw||a8_8L-F44ts|}}

See also