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

Template parameters

ParameterDescriptionTypeStatus
Serviceservice

The name of the service

Default
empty
Example
vimeo, youtube
Auto value
empty
Stringrequired
Idid

The id of the video at the service

Default
empty
Example
18335678, 3r1n63u773r
Auto value
empty
Stringrequired
Dimensionsdimensions

The dimensions

Default
1076
Example
800, 800x450
Auto value
empty
Stringoptional
Alignmentalignment

The horizontal alignment

Default
center
Example
center, left, right
Auto value
empty
Stringoptional