Difference between revisions of "Template:Video/doc"

From WikiCorporates
Jump to navigation Jump to search
m (GrayanOne moved page Template:Video-Fancy/doc to Template:VideoFancy/doc without leaving a redirect)
m
Line 1: Line 1:
 
=== Usage ===
 
=== Usage ===
  
−
This template can be used to hide content, whether it be text, video or whatever. Parameters are:
+
This template can be used to hide content, whether it be text, video or whatever.<br/>
−
 
+
The parameters are:
−
*{{{expand}}} - if it's not empty, the collapse will be opened at start and can be closed later
+
<pre>
−
*{{{color}}} and {{{bg_color}}} - sets the colors.
+
{{{float}}}     - [not set | left | right]    default = not set
−
*{{{width}}} - sets the width, when set to "smart" allows it to resize when the content is expanded.
+
{{{expand}}}   - [collapsed | 1]              Set the box opening state; default = collapsed. Set to 1 to start up open
−
*{{{min_width}}} - sets the minimum width. When set with "width=smart", sets the closed box size.
+
{{{width}}}     - [100%| smart | user-def]    Set the width. When set to "smart", allows it to resize when expanded.
−
*{{{noborder}}} - if not empty, removes the border.
+
{{{min-width}}} - [not set | user-def]        Set the minimum width. When set with "width=smart", sets the closed box size.
−
*{{{border_size}}} and {{{border_color}}} - sets the border parameters.
+
{{{bd-color}}} - [#f2dfce | user-def]        Set the border-color; default is #f2dfce
−
 
+
{{{bg-color}}}  - [#c0c0c0 | user-def]        Set the background-color; default is #c0c0c0 (silver)
−
 
+
{{{title}}}     - [not set]                    The box title
−
 
+
{{{content}}}   - [not set]                    Whatever you want to put in here. Note it's all one table cell.
−
 
+
{{{extra}}}    - [not set]                    An extra table row/cell. Not set if not used.
 +
</pre>
  
 +
=== All Parameters Example ===
 +
{{VideoFancy|
 +
|expand    =
 +
|float    = right
 +
|width    = smart
 +
|min-width = 40%
 +
|bg-color  = #f2dfce
 +
|bd-color  = #c0c0c0
 +
|title = ''Why are GMOs Bad?'' ([https://www.youtube.com/user/scishow ''SciShow''])
 +
|video = {{#ev:youtube|sH4bi60alZU}}
 +
|extra = This is some extra text to put underneath the video.
 +
}}
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 16:32, 14 March 2018

Usage

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

{{{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}}}  - [#f2dfce | user-def]         Set the border-color; default is #f2dfce
{{{bg-color}}}  - [#c0c0c0 | user-def]         Set the background-color; default is #c0c0c0 (silver)
{{{title}}}     - [not set]                    The box title
{{{content}}}   - [not set]                    Whatever you want to put in here. Note it's all one table cell.
{{{extra}}}     - [not set]                    An extra table row/cell. Not set if not used.

All Parameters Example

Template:VideoFancy