Template:LinkYT: Difference between revisions
From LoadingReadyWiki
Jump to navigationJump to search
Road-hog123 (talk | contribs) m Add recolor support, and fix parameter indices starting at 0 not 1 |
Road-hog123 (talk | contribs) 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 IDis the 11-character video ID (the bit that's afterv=on the watch page).Display Textis the text to turn into a link, just like adding text to a normal external link.colorcan be any valid CSS color (named or hex starting with #), to recolor the link.