Difference between revisions of "Template:EmbedVideo"

From Animation Luzern Wiki
 
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#ev:{{{service}}}|{{{id}}}|{{{dimension|1076}}}|{{{alignment|center}}}|}}
+
{{#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"
 
},
 
},
"dimension": {
+
"dimensions": {
 
"type": "string",
 
"type": "string",
                         "description": "The dimension of the video.",
+
                         "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 of the video.",
+
                         "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

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