Difference between revisions of "Template:FAQt/doc"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "=== Usage === This template can be used to hide content, whether it be text, video or whatever.<br/> The parameters are: <pre> {{{1}}} - [not set]...")
 
 
(8 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
<pre>
 
<pre>
 
{{{1}}}        - [not set]                    The box title
 
{{{1}}}        - [not set]                    The box title
−
{{{2}}}        - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
+
{{{2}}}        - [not set]                    Whatever content you want to put in here. 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
 
{{{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
 
{{{expand}}}    - [collapsed | 1]              Set the box opening state; default = collapsed. Set to 1 to start up open
Line 17: Line 16:
 
<pre>
 
<pre>
 
{{FAQt
 
{{FAQt
−
|If Slaughterhouses had Glass Walls&hellip;<br/>&mdash;Paul McCartney
+
|Paul Hackett, Director
−
|{{#ev:youtube|p_UpyY2MIOc|350}}
+
|{{lorum}}
−
|"If slaughterhouses had glass walls, everyone would be vegetarian." ''(discretion advised)''
+
}}
−
|float    = right
 
−
|width    = 350px
 
−
|expand    = 1}}
 
 
</pre>
 
</pre>
 +
{{FAQt|Paul Hackett, Director|{{Lorem ipsum}}}}
  
−
==== All Parameters Example ====
+
 
 +
=== All Parameters Example ===
 
<pre>
 
<pre>
 
{{FAQt
 
{{FAQt
−
|''Why are GMOs Bad?'' ([https://www.youtube.com/user/scishow ''SciShow''])
+
|Paul Hackett, Director
−
|{{#ev:youtube|sH4bi60alZU}}
+
|{{Lorem ipsum}}
−
|This is some extra text to put underneath the video.
 
 
|expand    = 1
 
|expand    = 1
 
|float    = right
 
|float    = right
Line 39: Line 36:
 
}}
 
}}
 
</pre>
 
</pre>
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
{{FAQt
 +
|Paul Hackett, Director
 +
|{{Lorem ipsum}}
 +
|expand    =
 +
|float    = left
 +
|width    = smart
 +
|min-width = 40%
 +
|bg-color  = #f5f5ff
 +
|bd-color  = #8488dc
 +
}}
 +
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Latest revision as of 21:40, 30 May 2020

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. The container is one table cell.
{{{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

{{FAQt
|Paul Hackett, Director
|{{lorum}}
}}
Paul Hackett, Director
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


All Parameters Example

{{FAQt
|Paul Hackett, Director
|{{Lorem ipsum}}
|expand    = 1
|float     = right
|width     = smart
|min-width = 40%
|bg-color  = #f5f5ff
|bd-color  = #8488dc
}}
Paul Hackett, Director
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.