Difference between revisions of "LinkYoutube"
From Sega Retro
(Created page with "<includeonly><span style="white-space: nowrap"><span style="margin-right: 4px;">{{icon|YoutubeIcon.png|YouTube|}}</span>[https://www.youtube.com/{{ #if: {{{video|}}} | watch?v...") |
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><span style="white-space: nowrap"><span style="margin-right: 4px;">{{icon| | + | <includeonly><span style="white-space: nowrap"><span style="margin-right: 4px;">{{icon|Logo-youtube.svg|YouTube|}}</span>[https://www.youtube.com/{{ #if: {{{video|}}} | watch?v={{{video|}}}{{ #if: {{{time|}}} | &t={{{time|}}} }} | {{ #if: {{{channel|}}} | channel/{{{channel|}}} | act=idx }} }} {{{title|}}}]</span></includeonly><noinclude> |
For use with YouTube videos and channels. Usage examples: | For use with YouTube videos and channels. Usage examples: | ||
* <nowiki>{{LinkYoutube|video=b3byA9Uaun0|title=Some video}}</nowiki> | * <nowiki>{{LinkYoutube|video=b3byA9Uaun0|title=Some video}}</nowiki> | ||
Line 9: | Line 9: | ||
* <nowiki>{{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}}</nowiki> | * <nowiki>{{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}}</nowiki> | ||
: Result: {{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}} | : Result: {{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}} | ||
− | [[Category: | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Latest revision as of 13:08, 1 January 2022
For use with YouTube videos and channels. Usage examples:
- {{LinkYoutube|video=b3byA9Uaun0|title=Some video}}
- Result: Some video
- {{LinkYoutube|video=b3byA9Uaun0|time=90|title=Some video, 1 minute and 30 seconds in}}
- {{LinkYoutube|video=b3byA9Uaun0|time=1m30s|title=Some video, 1 minute and 30 seconds in}}
- {{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}}
- Result: Some channel