Template:Video/doc: Difference between revisions
Created page with " <templatedata> { "params": { "1": {}, "2": {}, "3": {}, "desc": {}, "box": {}, "size": {} }, "description": "Allows ease of use when using tags from Extension:..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Allows for a much more simpler way to embed a video onto a wiki page without having to understand the raw parameters from Extension:EmbedVideo. | |||
<templatedata> | ===Usage=== | ||
For usage info, see Template Data. | |||
{{TemplateData|<templatedata> | |||
{ | { | ||
"params": { | "params": { | ||
" | "desc": { | ||
" | "label": "Description", | ||
" | "description": "Display a description under the embed container. For line breaks use: ", | ||
" | "example": "desc=Example Description ", | ||
" | "type": "string" | ||
" | }, | ||
"box": { | |||
"label": "Container", | |||
"description": "Wrap the video player in a Mediawiki thumbnail box.", | |||
"example": "box=frame", | |||
"type": "string" | |||
}, | |||
"size": { | |||
"label": "Dimensions ", | |||
"description": "Dimensions in pixels to size the embed container. The standard format is width x height where either can be omitted, but the x must proceed height to indicate it as the height. Examples: 480, 480x320, x320. If the height is not provided it will be calculated automatically from the width and service default ratio.", | |||
"example": "size=480x320", | |||
"type": "string", | |||
"default": "640" | |||
}, | |||
"load": { | |||
"label": "Service", | |||
"description": "The video service to call.", | |||
"example": "load=youtube", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"id": { | |||
"label": "ID", | |||
"description": "The raw ID of the video or URL from the player page.", | |||
"example": "id=RmQVm0Rb2b4", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"align": { | |||
"label": "Alignment ", | |||
"description": "Align the placement of the video either to the left, centered, or to the right. Inline will allow multiple videos to display side by side without forced line breaks.", | |||
"example": "align=left|center|right|inline", | |||
"type": "string" | |||
} | |||
}, | }, | ||
"description": "Allows ease of use when using tags from Extension:EmbedVideo " | "description": "Allows ease of use when using tags from Extension:EmbedVideo ", | ||
"paramOrder": [ | |||
"load", | |||
"id", | |||
"align", | |||
"desc", | |||
"box", | |||
"size" | |||
], | |||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata>}} | ||
Latest revision as of 18:55, 9 October 2020
Allows for a much more simpler way to embed a video onto a wiki page without having to understand the raw parameters from Extension:EmbedVideo.
Usage
For usage info, see Template Data.
Data
| Show/hide template's data | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. Allows ease of use when using tags from Extension:EmbedVideo
|
|||||||||||||||||||||||||||||||||||