Notice: We are aware that many of the Chewiki’s images are still broken. We promise: we will try our best to fix it, but we don't guarantee that the fix will be trivial.

Difference between revisions of "Template:YTVideo"

From Chewiki Archive - YouChew: 1% Funny, 99% Hot Gas
m (Informified.)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><span style="border:1px crimson solid; background:lightYellow; padding-top:2px; padding-right:3px;">[[Image:Yticon.png]] <span class="plainlinks">{{#if:{{{id}}}|[http://www.youtube.com/{{ #if: {{{privateid|}}} | watch_private?v={{{id}}}&sharing_token={{{privateid}}} | watch?v={{{id}}} }}{{ #if: {{{annotationid|}}} | &layer_token={{{annotationid}}} }}{{ #if: {{{format|}}} | &fmt={{{format}}} }} Watch Video]|'''''! '''[http://www.youtube.com/watch?v=oHg5SJYRHA0 Video not supplied]''}}</span></span>
<span style="border:1px crimson solid; background:lightYellow; padding-top:2px; padding-right:3px;">[[Image:Yticon.png]] <span class="plainlinks">[http://www.youtube.com/{{{1}}} Watch Video]</span></span>
 
 
</includeonly><noinclude><div style="border:2px green solid; background:PaleGreen;">
 
</includeonly><noinclude><div style="border:2px green solid; background:PaleGreen;">
 
{|
 
{|
|width="10%" align="center"|<font size="50" color="darkOrange">'''!'''</font>
+
|width="5%" align="center"|<font size="50" color="darkOrange">'''!'''</font>
|width=90%|''(The actual template in action has been hidden on this page)''
+
|width=90%|''(Sans the examples, the actual template in action has been hidden on this page)''
Use this template to link to YouTube videos without the sticky sexy mess. Usage:<br>
+
Use this template to link to [[YouTube]] videos with a fancy boxed in style without the sticky sexy mess. It<br />also contains the ability to link to a private video or a video with collaborative annotations.''' Usage:'''<br>
  
  <nowiki>{{YTVideo|<Video ID goes here>}}</nowiki>
+
  <code><nowiki>{{YTVideo|id=<Video ID goes here>|privateid=<Private password ID goes here>|annotationid=<Annotation ID goes here>}}</nowiki></code>
 +
 
 +
The privateid and annotationid parameters are, [[M. Bison|of course]], optional.
 +
 
 +
'''Examples:'''<br /><br />{{YTVideo|id=fdhtWa5AGiQ}}&nbsp;- ''<nowiki>{{YTVideo|id=fdhtWa5AGiQ}}</nowiki>''&nbsp;- Link to video.<br /><br />{{YTVideo|id=fdhtWa5AGiQ|annotationid=fd13dcd78416d28e}}&nbsp;- ''<nowiki>{{YTVideo|id=fdhtWa5AGiQ|annotationid=fd13dcd78416d28e}}</nowiki>&nbsp;- ''Link to video with free annotations.<br /><br />{{YTVideo|id=MEZ_rH833Pk|privateid=sOP2-bNj1fNihHhmRTrS_A}}&nbsp;- ''<nowiki>{{YTVideo|id=MEZ_rH833Pk|privateid=sOP2-bNj1fNihHhmRTrS_A}}</nowiki>''&nbsp;- Link to a different video - a private one, in this case.<br />
 
|}
 
|}
 
</div>
 
</div>
 
</noinclude>
 
</noinclude>

Latest revision as of 06:16, 19 February 2010

! (Sans the examples, the actual template in action has been hidden on this page)

Use this template to link to YouTube videos with a fancy boxed in style without the sticky sexy mess. It
also contains the ability to link to a private video or a video with collaborative annotations. Usage:

{{YTVideo|id=<Video ID goes here>|privateid=<Private password ID goes here>|annotationid=<Annotation ID goes here>}}

The privateid and annotationid parameters are, of course, optional.

Examples:

Yticon.png Watch Video  - {{YTVideo|id=fdhtWa5AGiQ}} - Link to video.

Yticon.png Watch Video  - {{YTVideo|id=fdhtWa5AGiQ|annotationid=fd13dcd78416d28e}} - Link to video with free annotations.

Yticon.png Watch Video  - {{YTVideo|id=MEZ_rH833Pk|privateid=sOP2-bNj1fNihHhmRTrS_A}} - Link to a different video - a private one, in this case.