Template:YouTube: Difference between revisions

Template page
w:c:strategywiki>Garrett
m (properly encoding URLs)
w:c:strategywiki>Garrett
m (updating YouTube image server (old one still functions, but I'm changing it now for future-proofing))
Line 1: Line 1:
<div style="float: {{{float|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%3A%2F%2Fstrategywiki%2Eorg%2Fwiki%2F{{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%3A%2F%2Fstrategywiki%2Eorg%2Fwiki%2F{{FULLPAGENAMEE}} http://img.youtube.com/vi/{{{video}}}/{{{image|default}}}.jpg]</span>
<div style="float: {{{float|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%3A%2F%2Fstrategywiki%2Eorg%2Fwiki%2F{{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%3A%2F%2Fstrategywiki%2Eorg%2Fwiki%2F{{FULLPAGENAMEE}} http://i.ytimg.com/vi/{{{video}}}/{{{image|default}}}.jpg]</span>


<br/><span class="plainlinks">'''[http://www.youtube.com/watch?v={{{video}}}&eurl=http%3A%2F%2Fstrategywiki%2Eorg%2Fwiki%2F{{FULLPAGENAMEE}} {{{title}}}]'''</span> {{#if:{{{duration|}}}|<font style="font-size: smaller;"><font style="font-size: smaller;">{{{duration}}}</font></font>}}</center>
<br/><span class="plainlinks">'''[http://www.youtube.com/watch?v={{{video}}}&eurl=http%3A%2F%2Fstrategywiki%2Eorg%2Fwiki%2F{{FULLPAGENAMEE}} {{{title}}}]'''</span> {{#if:{{{duration|}}}|<font style="font-size: smaller;"><font style="font-size: smaller;">{{{duration}}}</font></font>}}</center>

Revision as of 03:00, 1 February 2008

This is a template for YouTube videos.

This template is used as follows:

{{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=the number (1-3) of the image you want to use (2 if blank)
|description=description of the video (optional)
}}