Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Template:Yt/doc"

From Roll20 Wiki

Jump to: navigation, search
m
m
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
{{notebox|Something isn't working with the template. Check [[:Template:Twitter]] for similar, working template.}}
+
{{documentation subpage|override=yt/doc|Yt}}
 +
 
 +
Related templates: {{tlx|yt.be}}(works better than {{tlx|yt}}), {{tlx|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.
 
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 <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.
+
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. For links to playlists, {{tlx|yt.playlist}} can instead be used.
 +
 
 +
{{ex}}
 +
{{yt|1=watch?v=y7TiougaEJc Community Roundtable March 2021}}, or {{yt|watch?v&#61;y7TiougaEJc link version 2}}
  
{{yt|watch?v=IoyQs0Cv4p0&list=PLxYefyArg-d1wRWRpTfQMW0cmh32mQTbx Roll20 Crash Course-playlist}}
+
<pre>{{yt|1=watch?v=y7TiougaEJc Community Roundtable March 2021}}, or {{yt|watch?v&#61;y7TiougaEJc link version 2}} </pre>
  
<pre>{{yt|watch?v=IoyQs0Cv4p0&list=PLxYefyArg-d1wRWRpTfQMW0cmh32mQTbx Roll20 Crash Course-playlist}}</pre>
 
  
If you copy the url part from a <code><nowiki>youtu.be/</nowiki></code> link, 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>1=watch?v=</code> in front of the string of characters.
  
Example: You have the link <code><nowiki>https://youtu.be/xKXpKIiB5WM</nowiki></code> to the ''"5 Roll20 Crash Course - Rolling Dice"''-video, then the correct result will be <code><nowiki>{{yt|watch?v=xKXpKIiB5WM Roll20 Crash Course - Rolling Dice}}</nowiki></code>, like this: {{yt|watch?v=xKXpKIiB5WM Roll20 Crash Course - Rolling Dice}}
+
{{ex}} You have the link <code><nowiki>https://youtu.be/xKXpKIiB5WM</nowiki></code> to the ''"5 Roll20 Crash Course - Rolling Dice"''-video, then the correct result will be <code><nowiki>{{yt|watch?v&#61;xKXpKIiB5WM Roll20 Crash Course - Rolling Dice}}</nowiki></code>, resulting in this: {{yt|watch?v&#61;xKXpKIiB5WM Roll20 Crash Course - Rolling Dice}}
  
  
normal yt link [https://www.youtube.com/watch?v=xKXpKIiB5WM&list=PLxYefyArg-d1wRWRpTfQMW0cmh32mQTbx&index=5 Roll20 Crash course]
+
Normal YT links if you don't use the template: [https://www.youtube.com/watch?v=xKXpKIiB5WM&list=PLxYefyArg-d1wRWRpTfQMW0cmh32mQTbx&index=5 Roll20 Crash course]

Latest revision as of 11:45, 5 October 2021

Related templates: {{yt.be}}(works better than {{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.

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. For links to playlists, {{yt.playlist}} can instead be used.


Example:

Community Roundtable March 2021, or link version 2

{{yt|1=watch?v=y7TiougaEJc Community Roundtable March 2021}}, or {{yt|watch?v=y7TiougaEJc link version 2}} 


For links with the youtu.be/ format, you can use the {{yt.be}} template instead, or add 1=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: Roll20 Crash Course - Rolling Dice


Normal YT links if you don't use the template: Roll20 Crash course