Difference between revisions of "Template:Video"
Jump to navigation
Jump to search
m (GrayanOne moved page Template:VideoFancy to Template:Video without leaving a redirect) |
m |
||
| Line 6: | Line 6: | ||
<td style="padding:5px; background-color:transparent;"><center>{{{2}}}</center></td> | <td style="padding:5px; background-color:transparent;"><center>{{{2}}}</center></td> | ||
</tr> | </tr> | ||
| − | {{#if:{{{3|}}}|<tr><td>{{{3}}}</td></tr>}} | + | {{#if:{{{3|}}}|<tr><td style="font-size:85%;">{{{3}}}</td></tr>}} |
</table><noinclude>{{doc2}}</noinclude> | </table><noinclude>{{doc2}}</noinclude> | ||
Latest revision as of 15:55, 28 March 2018
| {{{1}}} |
|---|
[edit] Documentation
< Template:Video < Documentation
Great animation artists: Kurzgesagt, CGP Grey.
This template uses the EmbedVideo extension from MediaWiki.
FixMe: The MW extension has been completely rewritten. This template needs to be updated accordingly.
Usage
The parameters are:
{{{1}}} - The box title
{{{2}}} - Video parameters
{{{3}}} - Some descriptive text underneath the video.
{{{float}}} - [not set | left | right]. Optional
{{{expand}}} - [collapsed | 1] Opening state; default = collapsed. Set to 1 to start up open
{{{width}}} - [100% | smart | user-def] Set the width. "smart" resizes the box when opened.
{{{min-width}}} - [not set | user-def] Set min. width. "width=smart" sets the closed box size.
{{{bd-color}}} - [#8488dc | user-def] Set border-color; default = #8488dc (pale purple)
{{{bg-color}}} - [#f5f5ff | user-def] Set the background-color; default = #f5f5ff (pale grey)
A standard parameters example
{{Video
|If Slaughterhouses Had Glass Walls… —Paul McCartney
|{{#ev:youtube|p_UpyY2MIOc|350}}
|"If slaughterhouses had glass walls, everyone would be vegetarian." ''(discretion advised)''
|float = right
|width = 350px
|expand = 1
}}
All Parameters Example
{{Video
|''Why are GMOs Bad?'' (''[https://www.youtube.com/user/scishow ''SciShow'']'')
|{{#ev:youtube|sH4bi60alZU}}
|Some descriptive text to put underneath the video.
|float = right
|width = smart
|min-width = 40%
|bg-color = #f5f5ff
|bd-color = #8488dc
|expand = 1
}}