Template:Video: Difference between revisions

From Business Heroes Food Truck Simulation
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="video-wrapper">{{#evu: {{{url|}}}|service={{{service|youtube}}}|urlargs={{#if:{{{start|}}}{{{end|}}}|start={{{start|}}}&end={{{end|}}}}}|autoresize=true|alignment=center|description={{{description|}}} }}</div></includeonly><noinclude>
<includeonly><div class="video-wrapper">{{#evu: {{{url|}}} |urlargs={{{args|}}} |autoresize=true |alignment=center |description={{{description|}}} }}</div></includeonly><noinclude>
;Code
;Code
<pre>
<pre>
Line 5: Line 5:
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc
|description=Copyright of Stanford University
|description=Copyright of Stanford University
|start=05
|args=start=05&end=65
|end=65
}}
}}
</pre>
</pre>
Line 13: Line 12:
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc
|url=https://www.youtube.com/watch?v=A5c5KzR4gwc
|description=Copyright of Stanford University
|description=Copyright of Stanford University
|start=05
|args=start=05&end=65
|end=65
}}
}}
<templatedata>
<templatedata>
Line 32: 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"
}
}
},
},
Line 47: Line 40:
"url",
"url",
"description",
"description",
"start",
"args"
"end"
]
]
}
}
</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