Difference between revisions of "Template:EmbedVideo"

From Animation Luzern Wiki
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#ev:{{{service}}}|{{{id}}}|{{{dimension}}}|{{{alignment}}}|}}
+
{{#ev:{{{service}}}|{{{id}}}|{{{dimension|800}}}|{{{alignment|center}}}|}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Line 21: Line 21:
 
"dimension": {
 
"dimension": {
 
"type": "string",
 
"type": "string",
                        "required": true,
 
 
                         "description": "The dimension of the video.",
 
                         "description": "The dimension of the video.",
                         "example": "800, 800x450"
+
                         "example": "800, 800x450",
 +
                        "default": "800"
 
},
 
},
 
"alignment": {
 
"alignment": {
 
"type": "string",
 
"type": "string",
                        "required": true,
 
 
                         "description": "The alignment of the video.",
 
                         "description": "The alignment of the video.",
                         "example": "center, left, right"
+
                         "example": "center, left, right",
 +
                        "default": "center"
 
}
 
}
 
}
 
}

Revision as of 13:08, 10 August 2018


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.

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

The dimension of the video.

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

The alignment of the video.

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