Difference between revisions of "Template:EmbedVideo"

From Animation Luzern Wiki
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#ev:{{{service}}}|{{{id}}}|{{{dimensions}}}|{{{alignment}}}|}}
+
{{#ev:{{{service}}}|{{{id}}}|{{{dimension}}}|{{{alignment}}}|}}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
Line 8: Line 8:
 
"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.",
 +
                        "example": "18335678, 3r1n63u773r"
 
},
 
},
"dimensions": {
+
"dimension": {
"type": "string"
+
"type": "string",
 +
                        "required": true,
 +
                        "description": "The dimension of the video.",
 +
                        "example": "800, 800x450"
 
},
 
},
 
"alignment": {
 
"alignment": {
"type": "string"
+
"type": "string",
 +
                        "required": true,
 +
                        "description": "The alignment of the video.",
 +
                        "example": "center, left, right"
 
}
 
}
 
}
 
}

Revision as of 12:56, 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
empty
Example
800, 800x450
Auto value
empty
Stringrequired
Alignmentalignment

The alignment of the video.

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