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