https://nl.scoutwiki.org/index.php?title=Sjabloon:Video&feed=atom&action=historySjabloon:Video - Bewerkingsoverzicht2024-03-28T14:13:38ZBewerkingsoverzicht voor deze pagina op de wikiMediaWiki 1.39.5https://nl.scoutwiki.org/index.php?title=Sjabloon:Video&diff=91676&oldid=prevEgel: 1 versie geïmporteerd2020-03-13T10:29:01Z<p>1 versie geïmporteerd</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="nl">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Oudere versie</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Versie van 13 mrt 2020 11:29</td>
</tr><tr><td colspan="2" class="diff-notice" lang="nl"><div class="mw-diff-empty">(geen verschil)</div>
</td></tr></table>Egelhttps://nl.scoutwiki.org/index.php?title=Sjabloon:Video&diff=91675&oldid=prevnl>Kghbln: chg2019-02-21T17:51:43Z<p>chg</p>
<p><b>Nieuwe pagina</b></p><div><noinclude><br />
<div style="float: right">__TOC__</div><br />
== Description ==<br />
This is the '''Video''' template. It uses the [[Widget:Html5media|Html5media]] widget but helps to avoid adding the full URL of a locally uploaded file to the widget's "<code>url</code>" parameter by rather just specifying the name of the file via the "<code>name</code>" parameter. It is however still possible to use the "<code>url</code>" parameter for an externally hosted file.<br />
<br />
== Usage ==<br />
Either the "<code>name</code>" or the "<code>url</code>" parameter must be specified. If nothing is being specified for the "<code>width</code>" (default = 425) and "<code>height</code>" (default = 355) parameters their default values will be used.<br />
<br />
=== externally hosted file ===<br />
<pre><br />
{{Video<br />
|url=https://upload.wikimedia.org/wikipedia/commons/e/e6/Roundhay_Garden_Scene.ogv<br />
|width=425<br />
|height=355<br />
}}<br />
</pre><br />
<br />
=== locally hosted file ===<br />
<pre><br />
{{Video<br />
|name=Roundhay_Garden_Scene.ogg<br />
|width=425<br />
|height=355<br />
}}<br />
</pre><br />
<br />
== Example ==<br />
=== externally hosted file ===<br />
{{Video<br />
|url=https://upload.wikimedia.org/wikipedia/commons/e/e6/Roundhay_Garden_Scene.ogv<br />
|width=425<br />
|height=355<br />
}}<br />
<br />
=== locally hosted file ===<br />
{{Video<br />
|name=Roundhay_Garden_Scene.ogg<br />
|width=425<br />
|height=355<br />
}}<br />
<br />
== Code ==<br />
Just copy the following code to a page called "Template:Video" on your wiki.<br />
<pre><br />
<includeonly>{{#widget:Html5media |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |width={{{width|425}}} |height={{{height|355}}} }}</includeonly><br />
</pre><br />
[[Category:Tips]]<br />
[[Category:Template example]]<br />
__NOEDITSECTION__<br />
</noinclude><includeonly>{{#widget:Html5media<br />
|url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }}<br />
|width={{{width|425}}}<br />
|height={{{height|355}}}<br />
}}</includeonly></div>nl>Kghbln