Difference between revisions of "Template:Audio embed"

From BroaDWcast
Jump to navigationJump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude><nowiki>
 
<noinclude><nowiki>
{{Audio embed|file=|width=30%|height=30|top caption= |bottom caption= }}
+
{{Audio embed|file= |align= |width= |height= |top caption= |bottom caption= }}
 
</nowiki><br /><br />
 
</nowiki><br /><br />
Do not include 'File' before file name. Default values shown.  'Width' can be % or em.
+
*Do not include 'File:' before file name.   
 +
*'width' can be % or em.
 +
*'width' and 'height' must have values, or remove reference to them to use defaults (30em, 30)
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<div style="max-width:{{{width|30%}}}">
+
<div style="max-width:{{{width|30%}}}; float:{{{align}}};">
 
<center>{{{top caption}}}</center>
 
<center>{{{top caption}}}</center>
{{#Widget:Html5media|height={{{height|30%}}}|url={{filepath:{{{file}}} }} }}
+
{{#Widget:Html5media|height={{{height|30}}}|url={{filepath:{{{file}}} }} }}
 
<center>{{{bottom caption}}}</center>
 
<center>{{{bottom caption}}}</center>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Latest revision as of 22:29, 21 October 2018

{{Audio embed|file= |align= |width= |height= |top caption= |bottom caption= }}

  • Do not include 'File:' before file name.
  • 'width' can be % or em.
  • 'width' and 'height' must have values, or remove reference to them to use defaults (30em, 30)