Help:Templates/YTw

MuseWiki, wiki for the band Muse
< Help:Templates
Revision as of 23:58, 3 August 2010 by Tene (talk | contribs) (Newer YouTube template help. Aside: Seriously. My 2004 laptop display's resolution was 1400x1050 and that was 15.1". Today, one has to buy a 23" monitor for any higher than 1920x1080. It's pathetic.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a template for linking to videos hosted on YouTube.


It's pretty simple, use as so:


{{YTw |ec4KB1XcXQU}}

... which is of the form ...

{{ template name | video ID }}


The video ID is the last bit of a YouTube URL before any ampersands (&). For example:

http://youtube.com/watch?v=ec4KB1XcXQU

The ID is the one used above.


The result will be as so:

[watch]


If the video is available in a higher resolution format than the default 18, append the format number after the ID, as so:

{{YTw |ec4KB1XcXQU|35}}

...which is of the form...

{{ template name | video ID | format ID }}


The result from this will be:

[watch]

A list of format IDs can be found on Wikipedia. Note that today's standard display size is 1080i or 1920x1080. As such, formats larger than 37 should not be used in this template.


Go back to template help