Difference between revisions of "Template:Video/doc"

From WikiCorporates
Jump to navigation Jump to search
m (GrayanOne moved page Template:VideoFancy/doc to Template:Video/doc without leaving a redirect)
m (→‎Usage)
Line 16: Line 16:
 
==== My favourite parameters example ====
 
==== My favourite parameters example ====
 
<pre>
 
<pre>
−
{{VideoFancy
+
{{Video
 
|If Slaughterhouses had Glass Walls&hellip;<br/>&mdash;Paul McCartney
 
|If Slaughterhouses had Glass Walls&hellip;<br/>&mdash;Paul McCartney
 
|{{#ev:youtube|p_UpyY2MIOc|350}}
 
|{{#ev:youtube|p_UpyY2MIOc|350}}
Line 27: Line 27:
 
==== All Parameters Example ====
 
==== All Parameters Example ====
 
<pre>
 
<pre>
−
{{VideoFancy
+
{{Video
 
|''Why are GMOs Bad?'' ([https://www.youtube.com/user/scishow ''SciShow''])
 
|''Why are GMOs Bad?'' ([https://www.youtube.com/user/scishow ''SciShow''])
 
|{{#ev:youtube|sH4bi60alZU}}
 
|{{#ev:youtube|sH4bi60alZU}}

Revision as of 14:30, 20 March 2018

Usage

This template can be used to hide content, whether it be text, video or whatever.
The parameters are:

{{{1}}}         - [not set]                    The box title
{{{2}}}         - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
{{{3}}}         - [not set]                    An extra table row/cell. Not set if not used.
{{{float}}}     - [not set | left | right]     default = not set
{{{expand}}}    - [collapsed | 1]              Set the box opening state; default = collapsed. Set to 1 to start up open
{{{width}}}     - [100%| smart | user-def]     Set the width. When set to "smart", allows it to resize when expanded.
{{{min-width}}} - [not set | user-def]         Set the minimum width. When set with "width=smart", sets the closed box size.
{{{bd-color}}}  - [#8488dc | user-def]         Set the border-color; default is #8488dc (pale purple)
{{{bg-color}}}  - [#f5f5ff | user-def]         Set the background-color; default is #f5f5ff (dark purple)

My favourite parameters example

{{Video
|If Slaughterhouses had Glass Walls…<br/>—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}}
|This is some extra text to put underneath the video.
|expand    = 1
|float     = right
|width     = smart
|min-width = 40%
|bg-color  = #f5f5ff
|bd-color  = #8488dc
}}