Template:YouTube: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
major change to simplify things
(making YouTube logo clickable too, just to be streamlined)
(major change to simplify things)
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>
<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}} http://img.youtube.com/vi/{{{video}}}/{{qif|test={{{image|}}}|then={{{image}}}|else=2}}.jpg]</span>


<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>
<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>
Line 12: Line 12:
|title=name of the video
|title=name of the video
|duration=duration in minutes:seconds (optional)
|duration=duration in minutes:seconds (optional)
|image=full URL of screencap
|image=the number (1-3) of the image you want to use (2 if blank)
|description=description of the video (optional)
|description=description of the video (optional)
}}</pre>
}}</pre>
[[Category:Templates|Y]]</noinclude>
[[Category:Templates|Y]]</noinclude>