Template:Video: Difference between revisions
From Business Heroes Food Truck Simulation
Wikiworks743 (talk | contribs) No edit summary |
Wikiworks743 (talk | contribs) No edit summary |
||
(13 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> | ||
}}</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= | |args=start=05&end=65 | ||
}} | }} | ||
</pre> | </pre> | ||
;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= | |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": { | ||
"label": "Description", | "label": "Description", | ||
"description": "The second unnamed parameter is video caption.", | "description": "The second unnamed parameter is video caption.", | ||
Line 36: | Line 30: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "args": { | ||
"label": " | "label": "URL arguments", | ||
"description": " | "description": "Other url arguments.", | ||
"type": "string" | |||
"type": "string | |||
} | } | ||
}, | }, | ||
"description": "To simplify video embedding.", | "description": "To simplify video embedding. We want all video containers to be centered and full width.", | ||
"paramOrder": [ | "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 |