Difference between revisions of "Help:Templates/YTw"
(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.) |
(1080i → 1080p. This is outdated due to YouTube changes, shall update later. Added see also section with link to the template.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<nowiki>{{YTw |ec4KB1XcXQU}}</nowiki> | <blockquote><nowiki>{{YTw |ec4KB1XcXQU}}</nowiki></blockquote> | ||
... which is of the form ... | ... which is of the form ... | ||
<nowiki>{{ template name | video ID }}</nowiki> | <blockquote><nowiki>{{ template name | video ID }}</nowiki></blockquote> | ||
The video ID is the last bit of a YouTube URL before any ampersands (&). For example: | The video ID is the last bit of a YouTube URL before any ampersands (&). For example: | ||
<nowiki>http://youtube.com/watch?v=</nowiki>'''ec4KB1XcXQU''' | <blockquote><nowiki>http://youtube.com/watch?v=</nowiki>'''ec4KB1XcXQU'''</blockquote> | ||
The ID is the one used above. | The ID is the one used above. | ||
Line 21: | Line 21: | ||
The result will be as so: | The result will be as so: | ||
{{YTw |ec4KB1XcXQU}} | <blockquote>{{YTw |ec4KB1XcXQU}}</blockquote> | ||
If the video is available in a higher resolution format than the default '''18''', append the format number after the ID, as so: | If the video is available in a higher resolution format than the default '''18''', append the format number after the ID, as so: | ||
<nowiki>{{YTw |ec4KB1XcXQU|35}}</nowiki> | <blockquote><nowiki>{{YTw |ec4KB1XcXQU|35}}</nowiki></blockquote> | ||
...which is of the form... | ...which is of the form... | ||
<nowiki>{{ template name | video ID | format ID }}</nowiki> | <blockquote><nowiki>{{ template name | video ID | format ID }}</nowiki></blockquote> | ||
The result from this will be: | The result from this will be: | ||
{{YTw |ec4KB1XcXQU|35}} | <blockquote>{{YTw |ec4KB1XcXQU|35}}</blockquote> | ||
A list of format IDs can be found [https://secure.wikimedia.org/wikipedia/en/wiki/YouTube#Quality_and_codecs on Wikipedia]. Note that today's standard display size is | A list of format IDs can be found [https://secure.wikimedia.org/wikipedia/en/wiki/YouTube#Quality_and_codecs on Wikipedia]. Note that today's standard display size is 1080p or 1920x1080. As such, formats larger than 37 should not be used in this template. | ||
== See also == | |||
* [[Template:YTw]] | |||
{{Backto | Help:Templates | template help}} | {{Backto | Help:Templates | template help}} | ||
[[Category:Template help]] | [[Category:Template help]] |
Latest revision as of 23:38, 1 September 2011
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 1080p or 1920x1080. As such, formats larger than 37 should not be used in this template.