Template:ArchiveVideo: Difference between revisions
Jump to navigation
Jump to search
(username removed) (fixed params) Tag: Reverted |
m (Reverted edits by Damniel Larson (talk) to last revision by DaWhiteLouise) Tag: Rollback |
||
Line 1: | Line 1: | ||
<div style="width: 100%; text-align: {{{alignment|center}}};"> | |||
<div style="display: inline-block; text-align: left;"> | |||
<div style="width: {{{width|640}}}px; margin: 20px auto; padding: 10px; border: 1px solid #ccc;"> | |||
{{#widget:Html5media|url={{{videoURL}}}|width={{{width|640}}}|height={{{height|360}}}}} | |||
<div style="text-align: center;"><small>{{{caption|}}}</small></div> | |||
</div> | |||
</div> | |||
</div> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"videoURL": { | |||
"type": "url", | |||
"required": true | |||
}, | |||
"width": { | |||
"autovalue": "640", | |||
"suggested": true, | |||
"type": "number", | |||
"suggestedvalues": [ | |||
"640" | |||
], | |||
"label": "Video Width" | |||
}, | |||
"height": { | |||
"type": "number", | |||
"suggestedvalues": [ | |||
"360" | |||
], | |||
"autovalue": "360", | |||
"suggested": true, | |||
"label": "Video Height" | |||
}, | |||
"caption": {}, | |||
"alignment": { | |||
"suggestedvalues": [ | |||
"center", | |||
"left", | |||
"right" | |||
], | |||
"required": true, | |||
"description": "center is heavily suggested, as aligning it left/right can mess with the formatting of the article", | |||
"default": "center" | |||
} | |||
}, | |||
"description": "Easily embed tony archive videos!", | |||
"paramOrder": [ | |||
"videoURL", | |||
"alignment", | |||
"width", | |||
"height", | |||
"caption" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> | |||
</div> |
Revision as of 22:30, 4 January 2024
Easily embed tony archive videos!
Parameter | Description | Type | Status | |
---|---|---|---|---|
videoURL | videoURL | no description | URL | required |
alignment | alignment | center is heavily suggested, as aligning it left/right can mess with the formatting of the article
| Unknown | required |
Video Width | width | no description
| Number | suggested |
Video Height | height | no description
| Number | suggested |
caption | caption | no description | Unknown | optional |