Difference between revisions of "Template:Video/doc"

From WikiCorporates
Jump to navigation Jump to search
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<small><< [[Template:Video]]</small>
+
{{Breadcrumbs|[[Template:Video]]|Documentation}}
 +
Great animation artists: [https://kurzgesagt.org/ Kurzgesagt], CGP Grey.
  
−
Great animation artists: [https://kurzgesagt.org/ Kurzgesagt], CGP Grey.
+
This template uses the [https://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo] extension from MediaWiki.<br/>
 +
{{FixMe|The MW extension has been completely rewritten. This template needs to be updated accordingly. }}
  
 
=== Usage ===
 
=== Usage ===
−
 
+
<div>The parameters are:</div>
−
This template can be used to hide content, whether it be text, video or whatever.<br/>
 
−
The parameters are:
 
 
<pre>
 
<pre>
−
{{{1}}}        - [not set]                    The box title
+
{{{1}}}        - The box title
−
{{{2}}}        - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
+
{{{2}}}        - Video parameters
−
{{{3}}}        - [not set]                    An extra table row/cell. Not set if not used.
+
{{{3}}}        - Some descriptive text underneath the video.
−
{{{float}}}    - [not set | left | right]     default = not set
+
{{{float}}}    - [not set | left | right].  Optional
−
{{{expand}}}    - [collapsed | 1]             Set the box opening state; default = collapsed. Set to 1 to start up open
+
{{{expand}}}    - [collapsed | 1]           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.
+
{{{width}}}    - [100% | smart | user-def] Set the width. "smart" resizes the box when opened.
−
{{{min-width}}} - [not set | user-def]         Set the minimum width. When set with "width=smart", sets the closed box size.
+
{{{min-width}}} - [not set | user-def]       Set min. width. "width=smart" sets the closed box size.
−
{{{bd-color}}}  - [#8488dc | user-def]         Set the border-color; default is #8488dc (pale purple)
+
{{{bd-color}}}  - [#8488dc | user-def]       Set border-color; default = #8488dc (pale purple)
−
{{{bg-color}}}  - [#f5f5ff | user-def]         Set the background-color; default is #f5f5ff (dark purple)
+
{{{bg-color}}}  - [#f5f5ff | user-def]       Set the background-color; default = #f5f5ff (pale grey)
 
</pre>
 
</pre>
−
==== My favourite parameters example ====
+
==== A standard parameters example ====
 
<pre>
 
<pre>
 
{{Video
 
{{Video
−
|If Slaughterhouses had Glass Walls&hellip;<br/>&mdash;Paul McCartney
+
|If Slaughterhouses Had Glass Walls&hellip; &mdash;Paul McCartney
 
|{{#ev:youtube|p_UpyY2MIOc|350}}
 
|{{#ev:youtube|p_UpyY2MIOc|350}}
 
|"If slaughterhouses had glass walls, everyone would be vegetarian." ''(discretion advised)''
 
|"If slaughterhouses had glass walls, everyone would be vegetarian." ''(discretion advised)''
−
|float     = right
+
|float = right
−
|width     = 350px
+
|width = 350px
−
|expand   = 1}}
+
|expand = 1
 +
}}
 
</pre>
 
</pre>
  
Line 32: Line 33:
 
<pre>
 
<pre>
 
{{Video
 
{{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}}
−
|This is some extra text to put underneath the video.
+
|Some descriptive text to put underneath the video.
−
|expand    = 1
 
 
|float    = right
 
|float    = right
 
|width    = smart
 
|width    = smart
Line 41: Line 41:
 
|bg-color  = #f5f5ff
 
|bg-color  = #f5f5ff
 
|bd-color  = #8488dc
 
|bd-color  = #8488dc
 +
|expand    = 1
 
}}
 
}}
 
</pre>
 
</pre>
  
−
 
+
<includeonly>[[Category:WikiCorporates templates]]</includeonly>
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 

Latest revision as of 20:25, 15 December 2020

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