Template:YouTube/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Undo revision 88059 by Ned Scott (talk))
(Add Documentation subpage template for proper categorization and make light copyedits)
Line 1: Line 1:
To embed youtube videos (XBMC related videos only!) use <code><nowiki>{{</nowiki>[[Template:youtube|youtube]]|ID}}</code> where id= is the YouTube ID from the URL. For example, <code><nowiki>{{youtube|4NR57ELY28s}}</nowiki></code>. You can also define |height= and |width= (default is 569x320).
{{Documentation subpage}}
To embed YouTube videos (XBMC-related videos only!) use <code><nowiki>{{</nowiki>[[Template:YouTube|YouTube]]|ID}}</code>, where {{Para|id}} is the YouTube ID from the URL. For example, <code><nowiki>{{YouTube|4NR57ELY28s}}</nowiki></code>. You can also define {{Para|width}} and {{Para|height}} if you wish (they default to the values <tt>569</tt> and <tt>320</tt>, respectively).<includeonly>
 


<includeonly>
[[Category:External site feature templates]]
[[Category:External site feature templates]]
[[Category:Formatting templates]]
[[Category:Formatting templates]]</includeonly>
</includeonly>

Revision as of 16:03, 5 March 2022

To embed YouTube videos (XBMC-related videos only!) use {{YouTube|ID}}, where |id= is the YouTube ID from the URL. For example, {{YouTube|4NR57ELY28s}}. You can also define |width= and |height= if you wish (they default to the values 569 and 320, respectively).