Difference between revisions of "Template:VideoBox"

From ALttP Speedrunning Wiki
Jump to: navigation, search
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{#css:
 
{{#css:
 
.videobox {
 
.videobox {
    display: inline-block;
+
  display: inline-block;
    width: 400px;
+
  vertical-align: top;
    vertical-align: top;
+
  margin-right: 12px;
    margin-right: 20px;
+
  margin-top: 12px;
    border: 1px solid #eaeaea;
+
  border: 1px solid #eaeaea;
    background: #f8f9fa;
+
  background: #f8f9fa;
 
}
 
}
  
 
.videobox .title {
 
.videobox .title {
    font-weight: bold;
+
  font-weight: bold;
    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 25: 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>
 
+
<html5media loop muted>{{{file}}}</html5media>
<div class="videobox">
+
<p class="description">{{{description|{{{caption|}}}}}}
<p class="title">{{{title|Title}}} <span class="time">{{{time|0'0}}}</span></p>
+
<span style="float:right;">[[:{{{file}}}|File]]</span>
<html5media width="400" loop muted>{{{file|}}}</html5media>
+
<span style="display:none;">[[{{{file}}}|link=|0x0px]]</span><!--- to have file usage working --->
<p class="description">{{{description|Description}}}</p>
+
</p>
 
</div>
 
</div>

Latest revision as of 10:52, 16 May 2019

Html5mediator: not a valid URL

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