Template:Video: Difference between revisions
From Business Heroes Food Truck Simulation
Wikiworks743 (talk | contribs) No edit summary |
Wikiworks743 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="video-wrapper">{{#evu: {{{url|}}}|service={{{service|youtube}}}|urlargs={{#if:{{{start|}}}{{{end|}}}|start={{{start|}}}&end={{{end|}}}}}|autoresize= | <includeonly><div class="video-wrapper">{{#evu: {{{url|}}}|service={{{service|youtube}}}|urlargs={{#if:{{{start|}}}{{{end|}}}|start={{{start|}}}&end={{{end|}}}}}|autoresize=true|alignment=center|description={{{description|}}} }}</div></includeonly><noinclude> | ||
;Code | ;Code | ||
<pre> | <pre> | ||
Line 41: | Line 41: | ||
"description": "The timestamp to stop at, seconds.", | "description": "The timestamp to stop at, seconds.", | ||
"type": "number" | "type": "number" | ||
} | } | ||
}, | }, | ||
Line 58: | Line 48: | ||
"description", | "description", | ||
"start", | "start", | ||
"end | "end" | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 00:23, 20 December 2022
- Code
{{video |url=https://www.youtube.com/watch?v=A5c5KzR4gwc |description=Copyright of Stanford University |start=5 |end=65 }}
- Result
To simplify video embedding.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video URL | url | The video URL. | URL | required |
Description | description | The second unnamed parameter is video caption. | Unbalanced wikitext | suggested |
Start from, sec | start | The timestamp to start at, seconds. | Number | optional |
Play until, sec | end | The timestamp to stop at, seconds. | Number | optional |