Template:ArchiveVideo: Difference between revisions

From Tony Chase
Jump to navigation Jump to search
m (Protected "Template:ArchiveVideo" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(Makes these collapsible, will add an automatic titling later if I figure it out)
Line 2: Line 2:
<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: {{{width|640}}}px; margin: 20px auto; padding: 10px; border: 1px solid #ccc;">
<div class="mw-collapsible mw-collapsed">
<div class="mw-collapsible-title" style="display: block;"><b>{{{title|No title provided}}}</b></div>
<div class="mw-collapsible-content">
{{#widget:Html5media|url={{{videoURL}}}|width={{{width|640}}}|height={{{height|360}}}}}
{{#widget:Html5media|url={{{videoURL}}}|width={{{width|640}}}|height={{{height|360}}}}}
</div>
<div style="text-align: center;"><small>{{{caption|}}}</small></div>
<div style="text-align: center;"><small>{{{caption|}}}</small></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 33: Line 44:
"label": "Video Height"
"label": "Video Height"
},
},
"caption": {},
"caption": {
"description": "This is heavily suggested",
"suggested": true
},
"alignment": {
"alignment": {
"suggestedvalues": [
"suggestedvalues": [
Line 43: Line 57:
"description": "center is heavily suggested, as aligning it left/right can mess with the formatting of the article",
"description": "center is heavily suggested, as aligning it left/right can mess with the formatting of the article",
"default": "center"
"default": "center"
},
"title": {
"label": "Title",
"description": "This is heavily suggested, there will be automatic titles later on when I get around to it",
"required": true,
"suggested": true
}
}
},
},
"description": "Easily embed tony archive videos!",
"description": "Easily embed tony archive videos!",
"paramOrder": [
"paramOrder": [
"title",
"videoURL",
"videoURL",
"caption",
"alignment",
"alignment",
"width",
"width",
"height",
"height"
"caption"
]
]
}
}

Revision as of 04:11, 16 January 2024

No title provided



Easily embed tony archive videos!

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Titletitle

This is heavily suggested, there will be automatic titles later on when I get around to it

Unknownrequired
videoURLvideoURL

no description

URLrequired
captioncaption

This is heavily suggested

Unknownsuggested
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