Difference between revisions of "Template:Yt/doc"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{documentation subpage|override=yt/doc|Yt}} | {{documentation subpage|override=yt/doc|Yt}} | ||
+ | |||
+ | '''{{tlx|yt.be}} template works better''' | ||
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. | 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. | ||
Line 5: | Line 7: | ||
The template provides the <code>youtube.com/</code> part of the url, so you need to copy the rest of the url after it. it uses the <code>youtube.com/</code> instead of <code>youtu.be/</code> so that links to profiles & playlists also work, not just links to videos. 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 <code>[1]</code> instead. | The template provides the <code>youtube.com/</code> part of the url, so you need to copy the rest of the url after it. it uses the <code>youtube.com/</code> instead of <code>youtu.be/</code> so that links to profiles & playlists also work, not just links to videos. 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 <code>[1]</code> instead. | ||
− | {{yt|watch?v= | + | {{yt|watch?v=y7TiougaEJc Roll20-Community-Roundtable-March-2021}} |
− | <pre>{{yt|watch?v= | + | <pre>{{yt|watch?v=y7TiougaEJc Roll20 Community Roundtable March 2021}}</pre> |
For links with the <code><nowiki>youtu.be/</nowiki></code> format, you can use the {{tlx|yt.be}} template instead, or add <code>watch?v=</code> in front of the string of characters. | For links with the <code><nowiki>youtu.be/</nowiki></code> format, you can use the {{tlx|yt.be}} template instead, or add <code>watch?v=</code> in front of the string of characters. | ||
Line 14: | Line 16: | ||
normal yt link if you dint use the template: [https://www.youtube.com/watch?v=xKXpKIiB5WM&list=PLxYefyArg-d1wRWRpTfQMW0cmh32mQTbx&index=5 Roll20 Crash course] | normal yt link if you dint use the template: [https://www.youtube.com/watch?v=xKXpKIiB5WM&list=PLxYefyArg-d1wRWRpTfQMW0cmh32mQTbx&index=5 Roll20 Crash course] | ||
− | |||
− | |||
− |
Revision as of 20:03, 3 April 2021
This is a documentation subpage for Yt. It contains usage information, categories and other content that is not part of the original template page. |
{{yt.be}}
template works better
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.
The template provides the youtube.com/
part of the url, so you need to copy the rest of the url after it. it uses the youtube.com/
instead of youtu.be/
so that links to profiles & playlists also work, not just links to videos. 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.
{{yt|watch?v=y7TiougaEJc Roll20 Community Roundtable March 2021}}
For links with the youtu.be/
format, you can use the {{yt.be}}
template instead, or add watch?v=
in front of the string of characters.
Example:
You have the link https://youtu.be/xKXpKIiB5WM
to the "5 Roll20 Crash Course - Rolling Dice"-video, then the correct result will be {{yt|watch?v=xKXpKIiB5WM|Roll20 Crash Course - Rolling Dice}}
, resulting in this: Crash Course - Rolling Dice
normal yt link if you dint use the template: Roll20 Crash course