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
(Updated this documentation. I'm sorry for using one of my own videos as an example, but it was the most convenient.)
m (Update.)
Line 1: Line 1:
<includeonly><span style="border:1px crimson solid; background:lightYellow; padding-top:2px; padding-right:3px;">[[Image:Yticon.png]] <span class="plainlinks">[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]</span></span>
+
<includeonly><span style="border:1px crimson solid; background:lightYellow; padding-top:2px; padding-right:3px;">[[Image:Yticon.png]] <span class="plainlinks">[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}}} }} {{#if:{{{id}}}|Watch Video|<font color="darkred">'''! '''No video was supplied.}}]</span></span>
 
</includeonly><noinclude><div style="border:2px green solid; background:PaleGreen;">
 
</includeonly><noinclude><div style="border:2px green solid; background:PaleGreen;">
 
{|
 
{|

Revision as of 17:11, 18 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   Link to video.

Yticon.png Watch Video   Link to video with free annotations.

Yticon.png Watch Video   Link to a different video - a private one, in this case.