YTLink: Difference between revisions
From Rabbi Blog
(Created page with "<noinclude> == Usage == {{YTLink|id=VIDEO_ID|text=DISPLAY_TEXT|time=TIMECODE|bracket=0_OR_1}} * '''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. Category:Templates </noinclude><includeonly>{{#if: {{{bracket|}}} | [ | }}[https://www.youtube.com/watch?v=({{{1|{{{id}}}}}}){{#if: {{{3|{{{time|}}}}}} | &t={{{3|{...") |
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= | </noinclude><includeonly>{{#if: {{{bracket|}}} | [ | }}[https://www.youtube.com/watch?v={{{1|{{{id}}}}}}{{#if: {{{3|{{{time|}}}}}} | &t={{{3|{{{time}}}}}} }} {{{2|{{{text}}}}}}]{{#if: {{{bracket|}}} | ] | }}</includeonly> | ||
Revision as of 10:26, 6 May 2026
Usage
- 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.