Difference between revisions of "Template:Video"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "{| class="navbox collapsible {{#if:{{{expand|}}}||collapsed}}" style="text-align: left; border: 0px; margin-top: 0.2em;{{#ifeq: {{{3|dumb}}} |smart|| width:{{{width|{{{3|100%}...")
 
m
Line 1: Line 1:
−
{| class="navbox collapsible {{#if:{{{expand|}}}||collapsed}}" style="text-align: left; border: 0px; margin-top: 0.2em;{{#ifeq: {{{3|dumb}}} |smart|| width:{{{width|{{{3|100%}}}}}};}} max-width: {{{max_width|100%}}}; {{#if:{{{min_width|}}}|min-width: {{{min_width|}}}; |}}{{#if:{{{noborder|}}}||border: solid {{{border_size|1px}}} {{{border_color|silver}}};}}"
+
<table class="mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="{{#if:{{{float|}}}|float:{{{float|}}};|}} margin-top:0.2em; text-align:center; border:1px solid {{{border-color|#c0c0c0}}}; {{#ifeq:{{{3|dumb}}}|smart||width:{{{width|{{{3|100%}}}}}};}} max-width:{{{max-width|100%}}}; {{#if:{{{min-width|}}}|min-width:{{{min-width|}}};|}}">
−
|-
+
<tr>
−
! style="background-color: {{{color|#f2dfce}}}; text-align:center;" |{{{reason|{{{1|Extended content}}}}}}{{#if: {{{closer|{{{2|}}}}}}|&nbsp;— [[User:{{{closer|{{{2}}}}}}|{{{closer|{{{2}}}}}}]]}}
+
<th style="padding:0.2em 0; border-bottom:1px solid {{{border-color|#c0c0c0}}}; background-color:{{{bg-color|#f2dfce}}};">Why are GMOs Bad?</th></tr>
−
|-
+
<tr><td style="padding:8px; background-color:transparent;">
−
| style="padding: 8px; background-color: {{{bg_color|white}}};" |
+
<center>YouTube video in here</center>
−
<noinclude>
+
</td></tr>
−
|}  <!-- Not a mistake, it is needed to close the table above. -->
+
</table><noinclude>{{doc2}}</noinclude>
−
{{doc2}}
 
−
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
−
</noinclude>
 

Revision as of 15:29, 14 March 2018

Why are GMOs Bad?
YouTube video in here

[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
}}