Template:YouTube: Difference between revisions

Jump to navigation Jump to search
1,109 bytes removed ,  11 December 2022
set default width to 300px and use https links
(making YouTube logo clickable too, just to be streamlined)
(set default width to 300px and use https links)
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div style="float: {{qif|test={{{float|}}}|then={{{float}}}|else=right}}; margin: 5px; background-color: #EEEEEE; padding: 0px; padding-top: 5px; padding-bottom: 5px; width: 140px; text-align: center; border: 1px solid #7d87bc"><span class="plainlinks">[http://www.youtube.com/watch?v={{{video}}}&eurl=http://strategywiki.org/wiki/{{FULLPAGENAMEE}} http://media.strategywiki.org/images/9/9c/YouTube_logo.png]</span><center style="text-align: center; font-size: larger; padding: 5px; background-color: #EEEEEE"><span class="plainlinks">[http://www.youtube.com/watch?v={{{video}}}&eurl=http://strategywiki.org/wiki/{{FULLPAGENAMEE}} {{{image}}}]</span>
<includeonly>{{#ev:youtube|{{{video}}}|{{{width|300}}}|{{{float|right}}}|<span class="plainlinks">'''[https://www.youtube.com/watch?v={{{video}}}&eurl=https://strategywiki.org/wiki/{{FULLPAGENAMEE}}&feature=player_embedded {{{title}}}]'''</span> {{#if:{{{duration|}}}|<small>({{{duration}}})</small>}}{{#if:{{{description|}}}|<br />{{{description}}}}}||{{{urlargs|}}}}}</includeonly><noinclude>{{-}}
{{Documentation}}


<br/><span class="plainlinks">'''[http://www.youtube.com/watch?v={{{video}}}&eurl=http://strategywiki.org/wiki/{{FULLPAGENAMEE}} {{{title}}}]'''</span> {{qif|test={{{duration|}}}|then=<font style="font-size: smaller;"><font style="font-size: smaller;">{{{duration}}}</font></font>|else=}}</center>
[[Category:Templates]]</noinclude>
{{qif|test={{{description|}}}|then=<div style="margin: 0px 0px 0px 0px; padding: 5px; background-color: #EEEEEE; text-align: center;>{{{description}}}</div>|else=}}
</div><noinclude>[[Image:YouTube logo.png|left]]
This is a template for [http://www.youtube.com YouTube] videos.
 
This template is used as follows:
<pre>{{YouTube
|float=left, right, or none (default: right)
|video=ID of the video (not its full URL)
|title=name of the video
|duration=duration in minutes:seconds (optional)
|image=full URL of screencap
|description=description of the video (optional)
}}</pre>
[[Category:Templates|Y]]</noinclude>

Navigation menu