Actions

Template

YTLink: Difference between revisions

From Rabbi Blog

mNo edit summary
mNo edit summary
Line 8: Line 8:
* '''bracket''' (optional): Set to 1 to wrap the text in square brackets.
* '''bracket''' (optional): Set to 1 to wrap the text in square brackets.
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>{{#if: {{{bracket|}}} | [ | }}[https://www.youtube.com/watch?v={{{1|{{{id}}}}}}{{#if: {{{3|{{{time|}}}}}} | &t={{{3|{{{time}}}}}} }} {{{2|{{{text}}}}}}]{{#if: {{{bracket|}}} | ] | }}</includeonly>
</noinclude><includeonly>{{#if: {{{4|{{{bracket|}}}}}} | [ | }}[https://www.youtube.com/watch?v={{{1|{{{id}}}}}}{{#if: {{{3|{{{time|}}}}}} | &t={{{3|{{{time}}}}}} }} {{{2|{{{text}}}}}}]{{#if: {{{4|{{{bracket|}}}}}} | ] | }}</includeonly>

Revision as of 10:29, 6 May 2026

Usage

[DISPLAY_TEXT]

  • id: The string after "v=" in the URL.
  • text: The clickable text.
  • time (optional): The timecode (e.g., 1m30s or 90).
  • bracket (optional): Set to 1 to wrap the text in square brackets.