Template:Video: Difference between revisions

From Business Heroes Food Truck Simulation
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#evu: {{{1|}}}|description={{{2|}}}|urlargs={{#if:{{{start|}}}{{{end|}}}|start={{{start|}}}&end={{{end|}}}}}|autoresize={{{autoresize|true}}}|alignment={{{alignment|center}}}}}</includeonly><noinclude>
<includeonly><div class="video-wrapper">{{#evu: {{{url|}}} |urlargs={{{args|}}} |autoresize=true |alignment=center |description={{{description|}}} }}</div></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
|args=start=05&end=65
|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=5
|args=start=05&end=65
|end=65
}}
}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"url": {
"label": "Video URL",
"label": "Video URL",
"description": "The first unnamed parameter is video URL.",
"description": "The video URL.",
"type": "url",
"type": "url",
"suggested": true
"suggested": true,
"required": true
},
},
"2": {
"description": {
"label": "Description",
"label": "Description",
"description": "The second unnamed parameter is video caption.",
"description": "The second unnamed parameter is video caption.",
Line 31: Line 30:
"suggested": true
"suggested": true
},
},
"start": {
"args": {
"label": "Start from, sec",
"label": "URL arguments",
"description": "The timestamp to start at, seconds.",
"description": "Other url arguments.",
"type": "number"
"type": "string"
},
"end": {
"label": "Play until, sec",
"description": "The timestamp to stop at, seconds.",
"type": "number"
},
"autoresize": {
"label": "Autoresize",
"type": "boolean",
"default": "true"
},
"alignment": {
"label": "Alignment",
"type": "string",
"default": "center"
}
}
},
},
"description": "To simplify video embedding.",
"description": "To simplify video embedding. We want all video containers to be centered and full width.",
"paramOrder": [
"paramOrder": [
"1",
"url",
"2",
"description",
"start",
"args"
"end",
"autoresize",
"alignment"
]
]
}
}
</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
Copyright of Stanford University

To simplify video embedding. We want all video containers to be centered and full width.

Template parameters

ParameterDescriptionTypeStatus
Video URLurl

The video URL.

URLrequired
Descriptiondescription

The second unnamed parameter is video caption.

Unbalanced wikitextsuggested
URL argumentsargs

Other url arguments.

Stringoptional