Difference between revisions of "Template:Yt.be"
From Roll20 Wiki
Andreas J. (Talk | contribs) (Created page with "<includeonly><div class="plainlinks" style="display:inline-block;">[https://youtu.be/{{{1}}}]</div> <sup>link=https://www.youtube.com</su...") |
Andreas J. (Talk | contribs) (simplify template) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly>[https://youtu.be/{{{1}}}]</includeonly><noinclude>[[Category:External Link Templates]]{{documentation}}</noinclude> |
Latest revision as of 10:18, 23 October 2021
Related templates: {{yt}}
, {{yt.playlist}}
Template for linking to youtube pages/videos/profiles, shows the YT logo next to the link so it's clear it goes outside the wiki, and to YT specifically. The template provides the youtu.be/
part of the url, so you need to copy the rest of the url after it. Leave a space after the url and then write the title(or similar), before closing the template. If you give it no name, the link will say [1]
instead.
This template is for easy use with any youtu.be/
links,where you just copy-paste the string of characters after the template.
Example:
https://youtu.be/xKXpKIiB5WM
will become Roll20 Crash Course - Rolling Dice
<code>https://youtu.be/xKXpKIiB5WM</code> will become {{yt.be|xKXpKIiB5WM Roll20 Crash Course - Rolling Dice}}
For youtube links using the full youtube.com/
format, use the other yt template, {{yt}}
instead. playlists and and some other yt pages dont generate a shortlink, so {{yt.be}}
won't work for all links.
The above documentation is transcluded from Template:Yt.be/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |