Difference between revisions of "Help:Templates/YT"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m (Created page with 'This is a template for videos hosted on YouTube. It's pretty simple, use as so: <nowiki>{{YT|ec4KB1XcXQU}}</nowiki> ... which is of the form ... <nowiki>{{ template name | …')
 
Line 33: Line 33:


[[Category:Template help]]
[[Category:Template help]]
{{Backto | Help:Templates | template help}}

Revision as of 22:53, 12 July 2009

This is a template for videos hosted on YouTube.


It's pretty simple, use as so:


{{YT|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 you would like something different from "watch" to be the anchor (link) text, define (use) the text variable:

{{YT|ec4KB1XcXQU|text=A Muse video}}

...which is of the form...

{{ template name | video id | text = anchor text }}


Go back to template help