(Created page with "<includeonly>{{#evt:service={{{service}}} |id={{{videourl}}} |dimensions={{{dimensions}}} |{{#if: {{{description|}}}|description={{{description}}}|}} |{{#if: {{{alignm...") Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly>{{#evt:service={{{service}}} | <includeonly>{{#ifeq: {{{hostingtype|}}}|external|{{#evt:service={{{service}}} | ||
|id={{{ | |id={{{videopath}}} | ||
|dimensions={{{dimensions}}} | |dimensions={{{dimensions}}} | ||
|{{#if: {{{description|}}}|description={{{description}}}|}} | |{{#if: {{{description|}}}|description={{{description}}}|}} | ||
|{{#if: {{{alignment|}}}|alignment={{{alignment}}}|}} | |{{#if: {{{alignment|}}}|alignment={{{alignment}}}|}} | ||
|{{#if: {{{container|}}}|container={{{container}}}|}} | |{{#if: {{{container|}}}|container={{{container}}}|}} | ||
|{{#if: {{{autoresize|}}}|autoresize={{{autoresize}}}|}} | |{{#if: {{{autoresize|}}}|autoresize={{{autoresize}}}|}} | ||
|{{#if: {{{valignment|}}}|valignment={{{valignment}}}|}} | |{{#if: {{{valignment|}}}|valignment={{{valignment}}}|}}}}|{{#ifeq: {{{hostingtype|}}}|wiki|[[File:{{{videopath}}}|{{#ifeq: {{{dimensions|}}}|{{{dimensions}}}x{{{dimensions}}}px|}}|{{#if: {{{alignment|}}}|{{{alignment|}}}|}}|{{#if: {{{container|}}}|thumb|}}|{{#if: {{{description|}}}|{{{description}}}|}}]]|error}} | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"hostingtype": { | |||
"label": "Hosting type", | |||
"description": "Indicates if the video is stored on the wiki or on a video streaming service.", | |||
"example": "external, wiki", | |||
"default": "external", | |||
"autovalue": "external", | |||
"required": true | |||
}, | |||
"service": { | |||
"label": "Service", | |||
"description": "Name of the video service (supported services only). For local videos use wiki ", | |||
"example": "youtube, wiki, vimeo, ted, facebook", | |||
"autovalue": "youtube", | |||
"required": true | |||
}, | |||
"videopath": { | |||
"label": "URL of the external video or file name of the internal video", | |||
"description": "Path to the video", | |||
"autovalue": "", | |||
"required": true | |||
}, | |||
"dimensions": { | |||
"label": "Dimensions", | |||
"description": "Dimensions in pixelsto size the container for the player.", | |||
"example": "480, 480x320", | |||
"default": "640" | |||
}, | |||
"alignment": { | |||
"label": "Alignment", | |||
"description": "The video can be placed left, center, right, or inline. Inline allows to add multiple videos in one row. In mobile view, the videos are automatically aligned vertically.", | |||
"example": "left, center, right, or inline" | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"description": "Shows a description below the player container.", | |||
"example": "Departure to Mars" | |||
}, | |||
"container": { | |||
"label": "Container", | |||
"description": "Determines the container type for the player. The value frame places the video player in a Mediawiki preview box.", | |||
"example": "frame" | |||
}, | |||
"autoresize": { | |||
"label": "Autoresize", | |||
"description": "Automatically adjusts the video size if the video would extend beyond the size of the container.", | |||
"example": "true, false", | |||
"default": "true" | |||
}, | |||
"valignment": { | |||
"label": "Vertical alignment", | |||
"description": "Aligns the vertical placement of the video either to the top, middle, bottom, or baseline of the parent element. Using this parameter forces the alignment parameter to be inline.", | |||
"example": "top, middle, bottom, baseline" | |||
} | |||
}, | |||
"description": "Embeds a single external video on the page." | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 18:26, 18 June 2020
Embeds a single external video on the page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Hosting type | hostingtype | Indicates if the video is stored on the wiki or on a video streaming service.
| Unknown | required |
Service | service | Name of the video service (supported services only). For local videos use wiki
| Unknown | required |
URL of the external video or file name of the internal video | videopath | Path to the video
| Unknown | required |
Dimensions | dimensions | Dimensions in pixelsto size the container for the player.
| Unknown | optional |
Alignment | alignment | The video can be placed left, center, right, or inline. Inline allows to add multiple videos in one row. In mobile view, the videos are automatically aligned vertically.
| Unknown | optional |
Description | description | Shows a description below the player container.
| Unknown | optional |
Container | container | Determines the container type for the player. The value frame places the video player in a Mediawiki preview box.
| Unknown | optional |
Autoresize | autoresize | Automatically adjusts the video size if the video would extend beyond the size of the container.
| Unknown | optional |
Vertical alignment | valignment | Aligns the vertical placement of the video either to the top, middle, bottom, or baseline of the parent element. Using this parameter forces the alignment parameter to be inline.
| Unknown | optional |