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>{{#evu:{{{ | <includeonly>{{#evu: {{{url|}}}|service={{{service|youtube}}}|urlargs={{#if:{{{start|}}}{{{end|}}}|start={{{start|}}}&end={{{end|}}}}}|autoresize={{{autoresize|true}}}|alignment={{{alignment|center}}}|description={{{description|}}} }}</includeonly><noinclude> | ||
;Code | ;Code | ||
<pre> | <pre> | ||
{{video | {{video | ||
|https://www.youtube.com/watch?v=A5c5KzR4gwc | |url=https://www.youtube.com/watch?v=A5c5KzR4gwc | ||
|Copyright of Stanford University | |description=Copyright of Stanford University | ||
|start=5 | |start=5 | ||
|end=65 | |end=65 | ||
Line 11: | Line 11: | ||
;Result | ;Result | ||
{{video | {{video | ||
|https://www.youtube.com/watch?v=A5c5KzR4gwc | |url=https://www.youtube.com/watch?v=A5c5KzR4gwc | ||
|Copyright of Stanford University | |description=Copyright of Stanford University | ||
|start=05 | |start=05 | ||
|end=65 | |end=65 | ||
Line 19: | Line 19: | ||
{ | { | ||
"params": { | "params": { | ||
" | "url": { | ||
"label": "Video URL", | "label": "Video URL", | ||
"description": "The | "description": "The video URL.", | ||
"type": "url", | "type": "url", | ||
"suggested": true | "suggested": true, | ||
"required": true | |||
}, | }, | ||
" | "description": { | ||
"label": "Description", | "label": "Description", | ||
"description": "The second unnamed parameter is video caption.", | "description": "The second unnamed parameter is video caption.", | ||
Line 54: | Line 55: | ||
"description": "To simplify video embedding.", | "description": "To simplify video embedding.", | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "url", | ||
" | "description", | ||
"start", | "start", | ||
"end", | "end", |
Revision as of 23:48, 19 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 |
Autoresize | autoresize | no description
| Boolean | optional |
Alignment | alignment | no description
| String | optional |