Difference between revisions of "Template:EmbedVideo"
From Animation Luzern Wiki
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| − | {{#ev:{{{service}}}|{{{id}}}|{{{ | + | {{#ev:{{{service}}}|{{{id}}}|{{{dimensions|1076}}}|{{{alignment|center}}}|}} |
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
| + | == Usage == | ||
| + | <nowiki> | ||
| + | {{EmbedVideo|service=vimeo|id=12345678}} | ||
| + | </nowiki> | ||
| + | == Arguments == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 10: | 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 16: | 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 dimensions", |
| − | " | + | "example": "800, 800x450", |
| − | " | + | "default": "1076" |
}, | }, | ||
"alignment": { | "alignment": { | ||
"type": "string", | "type": "string", | ||
| − | + | "description": "The horizontal alignment", | |
| − | "description": "The alignment | + | "example": "center, left, right", |
| − | "example": "center, left, right" | + | "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 |