Template:LinkYT: Difference between revisions

From LoadingReadyWiki
Jump to navigationJump to search
m Add recolor support, and fix parameter indices starting at 0 not 1
mNo edit summary
 
Line 2: Line 2:


== Usage ==
== Usage ==
  <nowiki>{{LinkYT|Video ID|Display Text}}</nowiki>
  <nowiki>{{LinkYT|Video ID|Display Text|color}}</nowiki>
* <code>Video ID</code> is the 11-character video ID (the bit that's after <code>v=</code> on the watch page).
* <code>Video ID</code> is the 11-character video ID (the bit that's after <code>v=</code> on the watch page).
* <code>Display Text</code> is the text to turn into a link, just like adding text to a normal external link.
* <code>Display Text</code> is the text to turn into a link, just like adding text to a normal external link.
* <code>color</code> can be any valid CSS color (named or hex starting with #), to recolor the link.
* <code>color</code> can be any valid CSS color (named or hex starting with #), to recolor the link.
[[Category:Formatting Templates]]</noinclude>
[[Category:Formatting Templates]]</noinclude>

Latest revision as of 04:20, 19 October 2019

Template for formatting links to YouTube.

Usage

{{LinkYT|Video ID|Display Text|color}}
  • Video ID is the 11-character video ID (the bit that's after v= on the watch page).
  • Display Text is the text to turn into a link, just like adding text to a normal external link.
  • color can be any valid CSS color (named or hex starting with #), to recolor the link.