Template:YoutubeVideo: Difference between revisions

From Tony Chase
Jump to navigation Jump to search
(ArchiveVideo no work no mo)
 
m (@Core just seeing if it's possible to ping people this way)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width: 100%; text-align: {{{alignment|center}}};">
<div style="width: 100%; text-align: {{#if: {{{alignment|}}}|{{{alignment}}}|center}};">
<div style="display: inline-block; text-align: left;">
<div style="display: inline-block; text-align: left;">
<div style="width: {{{width|640}}}px; margin: 20px auto; padding: 10px; border: 1px solid #ccc;">
<div style="width: {{#if: {{{width|}}}|{{{width}}}px|640px}}; margin: 20px auto; padding: 10px; border: 1px solid #ccc;">
<iframe width="{{{width|640}}}" height="{{{height|360}}}" src="https://www.youtube.com/embed/{{{videoID}}}" frameborder="0" allowfullscreen></iframe>
{{{videoURL|<youtube>https://www.youtube.com/watch?v=izF0hqzC8Gg</youtube>}}}
<div style="text-align: center;"><small>{{{caption|}}}</small></div>
<div style="text-align: center;"><small>{{{caption|}}}</small></div>
</div>
</div>
</div>
</div>
</div>
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 13: Line 14:
"videoURL": {
"videoURL": {
"type": "url",
"type": "url",
"required": true
"required": true,
"example": "<youtube>izF0hqzC8Gg</youtube> or <youtube>https://www.youtube.com/watch?v=izF0hqzC8Gg</youtube>"
},
},
"width": {
"width": {
Line 45: Line 47:
}
}
},
},
"description": "Easily embed tony archive videos!",
"description": "Stylishly embed youtube videos!",
"paramOrder": [
"paramOrder": [
"videoURL",
"videoURL",

Latest revision as of 04:30, 16 January 2024


Stylishly embed youtube videos!

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
videoURLvideoURL

no description

Example
<youtube>izF0hqzC8Gg</youtube> or <youtube>https://www.youtube.com/watch?v=izF0hqzC8Gg</youtube>
URLrequired
alignmentalignment

center is heavily suggested, as aligning it left/right can mess with the formatting of the article

Suggested values
center left right
Default
center
Unknownrequired
Video Widthwidth

no description

Suggested values
640
Auto value
640
Numbersuggested
Video Heightheight

no description

Suggested values
360
Auto value
360
Numbersuggested
captioncaption

no description

Unknownoptional