Template:Video Embed: Difference between revisions

From MKWii TAS Wiki
Jump to navigation Jump to search
m Boumi moved page Template:Youtube video to Template:Add Video without leaving a redirect: More generic than just Youtube
Add templatedata
Line 4: Line 4:
|alignment={{{align}}}
|alignment={{{align}}}
}}
}}
<noinclude>
<templatedata>
{
"params": {
"service": {
"label": "Streaming service",
"description": "Video service of the video you want to embed",
"example": "youtube",
"type": "string",
"suggestedvalues": [
"youtube",
"archiveorg",
"dailymotion",
"nico",
"rutube",
"twitch",
"vimeo"
],
"required": true
},
"url": {
"label": "URL",
"description": "URL of the embed video",
"example": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"type": "url",
"required": true
},
"align": {
"label": "Alignement",
"description": "How you want to align the video on the page",
"example": "left",
"type": "string",
"suggestedvalues": [
"left",
"center",
"right",
"inline"
],
"autovalue": "right"
}
},
"description": "Add an embed video"
}
</templatedata>
</noinclude>

Revision as of 18:05, 22 January 2023

VideoService "{{{service}}}" not recognized.


Add an embed video

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Streaming serviceservice

Video service of the video you want to embed

Suggested values
youtube archiveorg dailymotion nico rutube twitch vimeo
Example
youtube
Stringrequired
URLurl

URL of the embed video

Example
https://www.youtube.com/watch?v=dQw4w9WgXcQ
URLrequired
Alignementalign

How you want to align the video on the page

Suggested values
left center right inline
Example
left
Auto value
right
Stringoptional