Difference between revisions of "Template:Youtube"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (test)
m
Line 30: Line 30:
 
|-
 
|-
 
| <nowiki>{{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}}</nowiki>
 
| <nowiki>{{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}}</nowiki>
| {{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}}
+
| {{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|center|400}}
 
|}
 
|}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 10:05, 16 November 2020

Shows a YouTube video.

Usage

{{Youtube|videoID|caption|position|size}}

  • videoID: the ID part of the URL. e.g a75eG8HG5Fk
  • caption: (optional) caption below the video
  • position: (optional, default left) "left" or "right"
  • size: (optional, default 300) width in pixels
Examples
Code Result
{{Youtube}} -Youtube ID not defined-
{{Youtube|a75eG8HG5Fk}}
{{Youtube|UgXq6z6-644|{{arma2}} trailer}}
Arma 2 trailer
{{Youtube|M1YBZUxMX8g|{{arma3}} trailer|right}}
Arma 3 trailer
{{Youtube|EwAxJC9AR_A|{{Name|arma3apex}} trailer|right|400}}
Arma 3 Apex trailer