Template:YouTube: Difference between revisions

Template page
w:c:strategywiki>Garrett
(adding usage info and pasting Template:Sidebar here, will rework based on it to have more streamlined CSS)
w:c:strategywiki>Garrett
(more testing...)
Line 1: Line 1:
<div style="float: {{qif|test={{{float|}}}|then={{{float}}}|else=right}}; margin: 10px; background-color: transparent; padding: 0px; width: 140px; text-align: center">http://www.youtube.com/img/pic_youtubelogo_123x63.gif<center style="text-align: center; font-size: larger; padding: 5px; background-color: #EEEEEE">http://sjl-static14.sjl.youtube.com/vi/0IyArskVoZo/2.jpg
<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/>'''[[Main Page|sample link]]''' <font style="font-size: smaller;"><font style="font-size: smaller;">66:99</font></font></center>
<br/>'''[[Main Page|sample link]]''' {{qif|test={{{duration|}}}|then=<font style="font-size: smaller;"><font style="font-size: smaller;">{{{duration}}}</font></font>|else=}}</center>
<div style="margin: 0px 0px 0px 0px; padding: 5px; border-left: 1px solid #7d87bc; background-color: #EEEEEE; border-right: 1px solid #7d87bc; background-color: #d0d5f1; border-bottom: 1px solid #7d87bc; background-color: #EEEEEE;">Description test test test test test</div>
{{qif|test={{{description|}}}|then=<div style="margin: 0px 0px 0px 0px; padding: 5px; background-color: #EEEEEE;>{{{description}}}</div>|else=}}
</div><noinclude>
</div><noinclude>
This is a template for [http://www.youtube.com YouTube] videos.
This is a template for [http://www.youtube.com YouTube] videos.
[[Category:Guide-specific templates|Y]]</noinclude>


{{-}}
This template is used as follows:
<div style="float: {{qif|test={{{float|}}}|then={{{float}}}|else=right}}; margin: 0px 10px 10px 10px; border: 1px solid #7d87bc; background-color: #d0d5f1; padding: 3px; width: {{{width}}};">{{qif|test={{{title|}}}|then=<div style="text-align: center; font-size: larger; color:#556; ">
'''{{{title}}}'''
</div>}}{{{contents}}}
</div>
<noinclude>This template is used as follows:
<pre>{{YouTube
<pre>{{YouTube
|float=left, right, or none (default: right)
|float=left, right, or none (default: right)
|video=ID of the video (not its full URL)
|title=name of the video
|title=name of the video
|length=length (minutes:seconds) of the video
|duration=duration (minutes:seconds)
|image=full URL of screencap
|description=description of the video
|description=description of the video
}}</pre></noinclude>
}}</pre>
[[Category:Guide-specific templates|Y]]</noinclude>

Revision as of 07:02, 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 (minutes:seconds)
|image=full URL of screencap
|description=description of the video
}}