Template:Video: Difference between revisions

The Terran Knowledge Bank
Jump to: navigation, search
(Created page with "<includeonly>{{#widget:Video |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |width={{{width|640}}} |height={{{height|320}}} }}</includeonly>")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#widget:Video |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |width={{{width|640}}} |height={{{height|320}}} }}</includeonly>
<noinclude>
== Usage ==
Either the <code>name</code>(Mediawiki file) or the <code>url</code> (external file) must be specified. Width defaults to 640. Height defaults to 320. Poster image url should be specified with FQDN (relative path not supported) and same aspect ratio as the video.
 
=== external file ===
<pre>
{{#widget:Video
  |url=https://download.wcnews.com/holovids/wing3/wc3trailer.mp4
  |poster=https://www.wcnews.com/holovids/shots/full/trailers_wing3_original2.jpg
  |width=640
  |height=360
}}
</pre>
 
{{#widget:Video
  |url=https://download.wcnews.com/holovids/wing3/wc3trailer.mp4
  |poster=https://www.wcnews.com/holovids/shots/full/trailers_wing3_original2.jpg
  |width=640
  |height=360
}}
 
</noinclude><includeonly>{{#widget:Video |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |width={{{width|640}}} |height={{{height|320}}} |poster={{{poster}}} }}</includeonly>

Latest revision as of 21:45, 13 March 2022

Usage

Either the name(Mediawiki file) or the url (external file) must be specified. Width defaults to 640. Height defaults to 320. Poster image url should be specified with FQDN (relative path not supported) and same aspect ratio as the video.

external file

{{#widget:Video
  |url=https://download.wcnews.com/holovids/wing3/wc3trailer.mp4
  |poster=https://www.wcnews.com/holovids/shots/full/trailers_wing3_original2.jpg
  |width=640
  |height=360
}}