Actions

Template

Difference between revisions of "LinkYoutube"

From Sonic Retro

m (Text replace - "Category:Link Templates" to "Category:Link templates")
Line 1: Line 1:
[[Image:YoutubeIcon.png]] [http://www.youtube.com/watch?v={{{video}}} {{{title}}}]<noinclude>
+
<includeonly><span style="white-space: nowrap"><span style="margin-right: 4px;">{{icon|YoutubeIcon.png|YouTube||background=#303018}}</span>[https://www.youtube.com/{{ #if: {{{video|}}} | watch?v={{{video}}} | {{ #if: {{{channel|}}} | channel/{{{channel}}} | act=idx }} }} {{{title}}}]</span></includeonly><noinclude>
For use with youtube videos.
+
For use with YouTube videos. Usage examples:
 +
* <nowiki>{{LinkYoutube|video=b3byA9Uaun0|title=Some video}}</nowiki>
 +
: Result: {{LinkYoutube|video=b3byA9Uaun0|title=Some video}}
 +
* <nowiki>{{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}}</nowiki>
 +
: Result: {{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}}
 
[[Category:Link templates|LinkYoutube]]
 
[[Category:Link templates|LinkYoutube]]
 
</noinclude>
 
</noinclude>

Revision as of 06:47, 27 September 2019

For use with YouTube videos. Usage examples:

  • {{LinkYoutube|video=b3byA9Uaun0|title=Some video}}
Result:
YouTube
Some video
  • {{LinkYoutube|channel=UCRxqIxbsOzg1MespnTbtLzA|title=Some channel}}
Result:
YouTube
Some channel