w:c:strategywiki>Garrett (more testing...) |
w:c:strategywiki>Garrett (ready for final test) |
||
Line 1: | Line 1: | ||
<div style="float: {{qif|test={{{float|}}}|then={{{float}}}|else=right}}; margin: 10px; background-color: #EEEEEE; padding: 0px; padding-top: 5px; padding-bottom: 5px; width: 140px; text-align: center; border: 1px solid #7d87bc">[[Image:YouTube logo.png]]<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/{{FULLPAGENAME}} {{{image}}}]</span> | <div style="float: {{qif|test={{{float|}}}|then={{{float}}}|else=right}}; margin: 10px; background-color: #EEEEEE; padding: 0px; padding-top: 5px; padding-bottom: 5px; width: 140px; text-align: center; border: 1px solid #7d87bc">[[Image:YouTube logo.png]]<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/{{FULLPAGENAME}} {{{image}}}]</span> | ||
<br/>'''[ | <br/><span class="plainlinks">'''[http://www.youtube.com/watch?v={{{video}}}&eurl=http://strategywiki.org/wiki/{{FULLPAGENAME}} {{{title}}}]'''</span> {{qif|test={{{duration|}}}|then=<font style="font-size: smaller;"><font style="font-size: smaller;">{{{duration}}}</font></font>|else=}}</center> | ||
{{qif|test={{{description|}}}|then=<div style="margin: 0px 0px 0px 0px; padding: 5px; background-color: #EEEEEE;>{{{description}}}</div>|else=}} | {{qif|test={{{description|}}}|then=<div style="margin: 0px 0px 0px 0px; padding: 5px; background-color: #EEEEEE;>{{{description}}}</div>|else=}} | ||
</div><noinclude> | </div><noinclude> | ||
Line 11: | Line 11: | ||
|video=ID of the video (not its full URL) | |video=ID of the video (not its full URL) | ||
|title=name of the video | |title=name of the video | ||
|duration=duration | |duration=duration in minutes:seconds (optional) | ||
|image=full URL of screencap | |image=full URL of screencap | ||
|description=description of the video | |description=description of the video (optional) | ||
}}</pre> | }}</pre> | ||
[[Category:Guide-specific templates|Y]]</noinclude> | [[Category:Guide-specific templates|Y]]</noinclude> |
Revision as of 07:06, 8 March 2007
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=full URL of screencap |description=description of the video (optional) }}