Template:Video: Difference between revisions
From Business Heroes Food Truck Simulation
			Wikiworks743 (talk | contribs) No edit summary  | 
				Wikiworks743 (talk | contribs)  No edit summary  | 
				||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="video-wrapper">{{#evu: {{{url|  | <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=  | |args=start=05&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  | ||
}}  | }}  | ||
<templatedata>  | <templatedata>  | ||
| Line 32: | Line 30: | ||
			"suggested": true  | 			"suggested": true  | ||
		},  | 		},  | ||
		"  | 		"args": {  | ||
			"label": "  | 			"label": "URL arguments",  | ||
			"description": "Other url arguments.",  | |||
			"type": "string"  | |||
			"description": "  | |||
			"type": "  | |||
		}  | 		}  | ||
	},  | 	},  | ||
	"description": "To simplify video embedding. We want all   | 	"description": "To simplify video embedding. We want all video containers to be centered and full width.",  | ||
	"paramOrder": [  | 	"paramOrder": [  | ||
		"url",  | 		"url",  | ||
		"description",  | 		"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 |