Difference between revisions of "Template:VideoBox"

From ALttP Speedrunning Wiki
Jump to: navigation, search
 
(15 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
.videobox {
 
.videobox {
 
   display: inline-block;
 
   display: inline-block;
  width: 400px;
 
 
   vertical-align: top;
 
   vertical-align: top;
   margin-right: 20px;
+
   margin-right: 12px;
   margin-bottom: 20px;
+
   margin-top: 12px;
 
   border: 1px solid #eaeaea;
 
   border: 1px solid #eaeaea;
 
   background: #f8f9fa;
 
   background: #f8f9fa;
Line 14: Line 13:
 
   padding-left: 8px;
 
   padding-left: 8px;
 
   padding-right: 8px;
 
   padding-right: 8px;
 +
}
 +
 +
.videobox video {
 +
  width: 100%;
 
}
 
}
  
 
.videobox .description {
 
.videobox .description {
   font-size: 0.9em;
+
   font-size: 0.85em;
 
   padding-left: 8px;
 
   padding-left: 8px;
 
   padding-right: 8px;
 
   padding-right: 8px;
Line 26: Line 29:
 
   text-align: right;
 
   text-align: right;
 
}
 
}
}}
+
}}<div class="videobox" style="width: {{{width|380}}}px; float:{{{float|none}}};">
 
+
<p class="title">{{{title|}}}{{#if: {{{time|}}} | <span class="time" title="mins:secs'frames">{{{time}}}</span> }}</p>
<div class="videobox">
+
<html5media loop muted>{{{file}}}</html5media>
<p class="title">{{{title|Title}}} <span class="time" title="mins:secs'frames">{{{time|0'0}}}</span></p>
+
<p class="description">{{{description|{{{caption|}}}}}}
<html5media width="400" loop muted>{{{file}}}</html5media>
+
<span style="float:right;">[[:{{{file}}}|File]]</span>
<p class="description">{{{description|Description}}}</p>
+
<span style="display:none;">[[{{{file}}}|link=|0x0px]]</span><!--- to have file usage working --->
 +
</p>
 
</div>
 
</div>

Latest revision as of 10:52, 16 May 2019

Html5mediator: not a valid URL

[[:{{{file}}}|File]] [[{{{file}}}|link=|0x0px]]