Difference between revisions of "Template:YouTube"
Dinoguy1000 (talk | contribs) (copy with tweaks from <https://minecraft.gamepedia.com/Template:YouTube>) |
Dinoguy1000 (talk | contribs) (set rel=0 to stop showing videos from other channels in the related videos feature (it used to disable that feature entirely, which would've been much nicer for our usage)) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{ #ev: youtube | {{{1}}} | {{ #if: {{{width|}}} | {{{width}}} }} | {{{align|}}} }}</includeonly><noinclude> | + | <includeonly>{{ #ev: youtube | {{{1}}} | {{ #if: {{{width|}}} | {{{width}}} }} | {{{align|}}} ||| rel=0 }}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
<!-- Put categories/interwiki on the documentation page --> | <!-- Put categories/interwiki on the documentation page --> | ||
</noinclude> | </noinclude> |
Revision as of 05:42, 22 February 2019
This template should be used to embed YouTube videos.
Usage
{{yt|videoid|width=|start=}}
Examples
Default width (640px): {{yt|MmB9b5njVbA}}
Custom width: {{yt|MmB9b5njVbA|width=720}}
Custom start time: {{yt|MmB9b5njVbA|start=30}}
See also
- {{dailymotion}}