Template:Video: Difference between revisions
From Business Heroes Food Truck Simulation
Wikiworks743 (talk | contribs) No edit summary |
Wikiworks743 (talk | contribs) No edit summary |
||
(17 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 | |||
}} | |||
</pre> | |||
;Result | |||
{{video | |||
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc | |||
|description=Copyright of Stanford University | |||
|args=start=05&end=65 | |||
}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"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": { | "description": { | ||
"label": "Description", | "label": "Description", | ||
"description": " | "description": "The second unnamed parameter is video caption.", | ||
"type": "unbalanced-wikitext", | "type": "unbalanced-wikitext", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "args": { | ||
"label": " | "label": "URL arguments", | ||
"description": "Other url arguments.", | |||
"type": "string" | |||
"description": " | |||
"type": "string | |||
} | } | ||
} | }, | ||
"description": "To simplify video embedding. We want all video containers to be centered and full width.", | |||
"paramOrder": [ | |||
"url", | |||
"description", | |||
"args" | |||
] | |||
} | } | ||
</templatedata></noinclude> | </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 |