Template:YouTubeEmbed: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Minor update.)
mNo edit summary
 
(One intermediate revision by one other user not shown)
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 {{bp|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;"><noinclude>[[Category:Video templates]]</noinclude>{{#ifeq: {{NAMESPACE}}||[[Category:Articles with accompanying video]]|}}
|}<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>

Latest revision as of 01:21, 16 August 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.

By Bulbagarden



This template is used to embed a YouTube video. Should only be used on approved pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Video ID1

Video ID from the YouTube url

Linerequired
Channel2

Channel Link from the URL

Linerequired
Channel Namename

Override for the Channel link display text

Linesuggested
Color scheme3

Color template name for entire color scheme

Linerequired
Second Color scheme4

Optional: Secondary color for channel background

Default
<3>
Lineoptional
Start Timestart

Start time for the video

Lineoptional
Captioncaption

Caption that will be shown above the table

Stringoptional
Color Lightcolorlight

Override for the Light color in the Colorscheme

Default
{{<3> color light}}
Lineoptional
Color Medcolor

Override for the medium color in the color scheme

Default
{{<3> color}}
Lineoptional
Color Darkcolordark

Override for the dark color in the color scheme

Default
{{<3> color dark}}
Lineoptional