Difference between revisions of "Template:EmbedVideo"
From Animation Luzern Wiki
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | {{#ev:{{{service}}}|{{{id}}}|{{{ | + | {{#ev:{{{service}}}|{{{id}}}|{{{dimensions|1076}}}|{{{alignment|center}}}|}} |
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| Line 15: | Line 15: | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
| − | "description": "The name of the service | + | "description": "The name of the service", |
"example": "vimeo, youtube" | "example": "vimeo, youtube" | ||
}, | }, | ||
| Line 21: | Line 21: | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
| − | "description": "The id of the video | + | "description": "The id of the video at the service", |
"example": "18335678, 3r1n63u773r" | "example": "18335678, 3r1n63u773r" | ||
}, | }, | ||
| − | " | + | "dimensions": { |
"type": "string", | "type": "string", | ||
| − | "description": "The | + | "description": "The dimensions", |
"example": "800, 800x450", | "example": "800, 800x450", | ||
"default": "1076" | "default": "1076" | ||
| Line 32: | Line 32: | ||
"alignment": { | "alignment": { | ||
"type": "string", | "type": "string", | ||
| − | "description": "The alignment | + | "description": "The horizontal alignment", |
"example": "center, left, right", | "example": "center, left, right", | ||
"default": "center" | "default": "center" | ||
Latest revision as of 00:24, 10 December 2018
Usage
{{EmbedVideo|service=vimeo|id=12345678}}
Arguments
Template for the EmbedVideo extension. see https://www.mediawiki.org/wiki/Extension:EmbedVideo
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Service | service | The name of the service
| String | required |
| Id | id | The id of the video at the service
| String | required |
| Dimensions | dimensions | The dimensions
| String | optional |
| Alignment | alignment | The horizontal alignment
| String | optional |