Template:ArchiveVideo: Difference between revisions

From Tony Chase
Jump to navigation Jump to search
mNo edit summary
(Undo revision 1180 by Schmoney schase (talk))
Tag: Undo
 
(14 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<div style="width: 100%; text-align: {{{alignment|center}}};">
<div style="border: 1px solid #ccc; padding: 10px; max-width: {{{width|640}}}px; margin: 0 auto; text-align: {{{alignment|center}}}">
<div style="display: inline-block; text-align: left;">
    {{#widget:Html5media|url={{{videoURL}}}|width={{{width|640}}}|height={{{height|360}}}}}
<div style="width: {{{width|640}}}px; margin: 20px auto; padding: 10px; border: 1px solid #ccc;">
    <center><small>{{{caption|}}}</small></center>
<div class="{{{collapsible?|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}}}}}
</div>
<div style="text-align: center;"><small>{{{caption|}}}</small></div>
</div>
</div>
</div>
</div>
</div>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 19: Line 26:
"suggestedvalues": [
"suggestedvalues": [
"640"
"640"
]
],
"label": "Video Width"
},
},
"height": {
"height": {
Line 27: Line 35:
],
],
"autovalue": "360",
"autovalue": "360",
"suggested": true,
"label": "Video Height"
},
"caption": {
"description": "This is heavily suggested",
"suggested": true
"suggested": true
},
},
"alignment": {
"alignment": {
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"Center",
"center",
"Left",
"left",
"Right"
"right"
],
],
"default": "Center",
"required": true,
"autovalue": "Center",
"description": "center is heavily suggested, as aligning it left/right can mess with the formatting of the article",
"required": true
"default": "center"
},
},
"caption": {
"title": {
"type": "string",
"label": "Title",
"description": "This is heavily suggested, there will be automatic titles later on when I get around to it",
"required": true,
"suggested": true
"suggested": true
},
"collapsible?": {
"description": "Remove \"mw-collpased\" if you do not want it automatically collapsed",
"suggestedvalues": [
"mw-collapsible mw-collapsed",
"mw-collapsible"
],
"autovalue": "mw-collapsible mw-collapsed"
}
}
},
},
"description": "Easily embed tony archive videos!"
"description": "Easily embed tony archive videos!",
"paramOrder": [
"title",
"videoURL",
"caption",
"alignment",
"width",
"height",
"collapsible?"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
</div>
</div>

Latest revision as of 06:20, 3 February 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
collapsible?collapsible?

Remove "mw-collpased" if you do not want it automatically collapsed

Suggested values
mw-collapsible mw-collapsed mw-collapsible
Auto value
mw-collapsible mw-collapsed
Unknownoptional