Template:Video: Difference between revisions
From Business Heroes Food Truck Simulation
Wikiworks743 (talk | contribs) (Created page with "<includeonly>{{#evu: {{{1|}}} |description={{{description|}}} |urlargs={{#if:{{{start|}}}{{{end|}}}|start={{{start|}}}&end={{{end|}}}}} |autoresize={{{autoresize|true}}} |alignment={{{alignment|center}}} }}</includeonly><noinclude> </noinclude>") |
Wikiworks743 (talk | contribs) No edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#evu: {{{ | <includeonly><div class="video-wrapper">{{#evu: {{{url|}}} |urlargs={{{args|}}} |autoresize=true |alignment=center |description={{{description|}}} }}</div></includeonly><noinclude> | ||
;Code | |||
<pre> | |||
{{video | |||
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc | |||
}}</ | |description=Copyright of Stanford University | ||
|args=start=05&end=65 | |||
</noinclude> | }} | ||
</pre> | |||
;Result | |||
{{video | |||
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc | |||
|description=Copyright of Stanford University | |||
|args=start=05&end=65 | |||
}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"url": { | |||
"label": "Video URL", | |||
"description": "The video URL.", | |||
"type": "url", | |||
"suggested": true, | |||
"required": true | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "The second unnamed parameter is video caption.", | |||
"type": "unbalanced-wikitext", | |||
"suggested": true | |||
}, | |||
"args": { | |||
"label": "URL arguments", | |||
"description": "Other url arguments.", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "To simplify video embedding. We want all video containers to be centered and full width.", | |||
"paramOrder": [ | |||
"url", | |||
"description", | |||
"args" | |||
] | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 00:33, 20 December 2022
- Code
{{video |url=https://www.youtube.com/watch?v=A5c5KzR4gwc |description=Copyright of Stanford University |args=start=05&end=65 }}
- Result
To simplify video embedding. We want all video containers to be centered and full width.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video URL | url | The video URL. | URL | required |
Description | description | The second unnamed parameter is video caption. | Unbalanced wikitext | suggested |
URL arguments | args | Other url arguments. | String | optional |