Difference between revisions of "Help:Templates/YT"

MuseWiki, wiki for the band Muse
Jump to navigation Jump to search
m
m (Mention other template)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{redbox | This template is deprecated, please use YTw or YTh instead.}}
This is a template for videos hosted on YouTube.
This is a template for videos hosted on YouTube.


Line 32: Line 34:
<nowiki>{{ template name | video id | text = anchor text }}</nowiki>
<nowiki>{{ template name | video id | text = anchor text }}</nowiki>


[[Category:Template help]]


{{Backto | Help:Templates | template help}}
The result from this will be:


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


The result from this will be:
{{Backto | Help:Templates | template help}}


{{YT|ec4KB1XcXQU|text=A Muse video}}
[[Category:Template help]]

Latest revision as of 22:09, 29 September 2012

This template is deprecated, please use YTw or YTh instead.

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 }}


The result from this will be:

(A Muse video)


Go back to template help