Template:YouTubeEmbed: Difference between revisions
m (Minor update.) |
(add top/bottom margin + caption parameter + option for video start time + templatedata) |
||
Line 1: | Line 1: | ||
<noinclude><big>This template requires staff approval for use in the mainspace, due to loading issues which embedded videos can cause. A list of mainspace pages (or groups of pages) which may have embedded video is located on the [[Template talk:YouTubeEmbed|talk page]] of this template. Additions to the list require approval of two staff members ranked administrator or higher.</big></noinclude> | <noinclude><big>This template requires staff approval for use in the mainspace, due to loading issues which embedded videos can cause. A list of mainspace pages (or groups of pages) which may have embedded video is located on the [[Template talk:YouTubeEmbed|talk page]] of this template. Additions to the list require approval of two staff members ranked administrator or higher.</big></noinclude> | ||
{| class="roundy" style="margin:auto; border: 2px solid #{{{colordark|{{{{{3|bulba}}} color dark}}}}}; background: #{{{color|{{{{{3|bulba}}} color}}}}};" | {| class="roundy" style="margin:10px auto; border: 2px solid #{{{colordark|{{{{{3|bulba}}} color dark}}}}}; background: #{{{color|{{{{{3|bulba}}} color}}}}};" | ||
|+ {{{caption|}}} | |||
| style="padding:0;" | | | style="padding:0;" | | ||
{| cellpadding="3" cellspacing="0" | {| cellpadding="3" cellspacing="0" | ||
Line 6: | Line 7: | ||
|} | |} | ||
|- | |- | ||
| width="425px" colspan="2" style="line-height:10px" | {{#Widget:YouTube|id={{{1|MvuqoVE6Ado}}}}} | | width="425px" colspan="2" style="line-height:10px" | {{#Widget:YouTube|id={{{1|MvuqoVE6Ado}}}|start={{{start|}}}}} | ||
|}<br style="clear:both;" | |}<br style="clear:both;">{{#ifeq: {{NAMESPACE}}||[[Category:Articles with accompanying video]]|}}<noinclude> | ||
---- | |||
[[Category:Video templates]] | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Video ID", | |||
"description": "Video ID from the YouTube url", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Channel", | |||
"description": "Channel Link from the URL", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"3": { | |||
"label": "Color scheme", | |||
"description": "Color template name for entire color scheme", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"4": { | |||
"label": "Second Color scheme", | |||
"description": "Optional: Secondary color for channel background", | |||
"type": "line", | |||
"default": "<3>" | |||
}, | |||
"colordark": { | |||
"label": "Color Dark", | |||
"description": "Override for the dark color in the color scheme", | |||
"type": "line", | |||
"default": "{{<3> color dark}}" | |||
}, | |||
"color": { | |||
"label": "Color Med", | |||
"description": "Override for the medium color in the color scheme", | |||
"type": "line", | |||
"default": "{{<3> color}}" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "Caption that will be shown above the table", | |||
"type": "string" | |||
}, | |||
"colorlight": { | |||
"label": "Color Light", | |||
"description": "Override for the Light color in the Colorscheme", | |||
"type": "line", | |||
"default": "{{<3> color light}}" | |||
}, | |||
"name": { | |||
"label": "Channel Name", | |||
"description": "Override for the Channel link display text", | |||
"type": "line", | |||
"suggested": true | |||
}, | |||
"start": { | |||
"label": "Start Time", | |||
"description": "Start time for the video", | |||
"type": "line" | |||
} | |||
}, | |||
"description": "This template is used to embed a YouTube video. Should only be used on approved pages.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"name", | |||
"3", | |||
"4", | |||
"start", | |||
"caption", | |||
"colorlight", | |||
"color", | |||
"colordark" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 19:59, 31 July 2024
This template requires staff approval for use in the mainspace, due to loading issues which embedded videos can cause. A list of mainspace pages (or groups of pages) which may have embedded video is located on the talk page of this template. Additions to the list require approval of two staff members ranked administrator or higher.
| |
This template is used to embed a YouTube video. Should only be used on approved pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Video ID | 1 | Video ID from the YouTube url | Line | required |
Channel | 2 | Channel Link from the URL | Line | required |
Channel Name | name | Override for the Channel link display text | Line | suggested |
Color scheme | 3 | Color template name for entire color scheme | Line | required |
Second Color scheme | 4 | Optional: Secondary color for channel background
| Line | optional |
Start Time | start | Start time for the video | Line | optional |
Caption | caption | Caption that will be shown above the table | String | optional |
Color Light | colorlight | Override for the Light color in the Colorscheme
| Line | optional |
Color Med | color | Override for the medium color in the color scheme
| Line | optional |
Color Dark | colordark | Override for the dark color in the color scheme
| Line | optional |