Difference between revisions of "Template:User video"
Jump to navigation
Jump to search
(Created page with "<includeonly> {{#ev:youtube|{{#if:{{{1|}}}|{{{1|}}}|300}}<div class="thumbcaption">CAPTION 1</div></div> </includeonly> {{User video|000000}}") |
|||
(14 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{#ev:youtube | + | <div class="thumbinner" style="display:inline-block;">{{#ev:youtube|{{{1|}}}|300}}<div class="thumbcaption">{{{2|}}}</div></div> |
− | </includeonly> | + | </includeonly><noinclude> |
+ | {{Documentation|content= | ||
+ | == Usage == | ||
+ | This template embeds a YouTube video. It has the following parameters | ||
− | {{User video| | + | <pre> |
+ | {{User video | ||
+ | | <id of the video> | ||
+ | | <caption> | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | == Example == | ||
+ | <pre> | ||
+ | {{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}} | ||
+ | </pre> | ||
+ | {{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}} | ||
+ | |||
+ | }}[[Category:Templates]]</noinclude> |
Latest revision as of 12:35, 31 July 2023
This page is protected. Level: Sysop users and above. Until: Indefinitely. |
Template documentation
Usage
This template embeds a YouTube video. It has the following parameters
{{User video | <id of the video> | <caption> }}
Example
{{user video|DJmYKKzC0uA|RimWorld Pre-Alpha Trailer}}
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |