Difference between revisions of "Template:TblOneCell/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 5: Line 5:
 
The parameters are:
 
The parameters are:
 
<pre>
 
<pre>
−
{{{state}}}   - [not set]                    If not set, the box will start up closed.
+
{{{width}}}   - If not set, defaults t 100%
−
{{{title}}}   - [not set]                    The title
+
{{{state}}}    - If not set, the box will start up closed.
−
{{{content}}} - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
+
{{{title}}}   - The title
 +
{{{content}}} - Whatever content you want to put in here. Note the container is one table cell.
 
</pre>
 
</pre>
  
Line 13: Line 14:
 
<pre>
 
<pre>
 
{{TblOneCell
 
{{TblOneCell
 +
|width  = 80%
 
|state  = open
 
|state  = open
 
|title  = Board of Directors 2018/2019
 
|title  = Board of Directors 2018/2019

Revision as of 14:07, 15 March 2018

Usage

This table-based template can be used to hide content. For a good working example, see Foreign Policy Centre

The parameters are:

{{{width}}}    - If not set, defaults t 100%
{{{state}}}    - If not set, the box will start up closed.
{{{title}}}    - The title
{{{content}}}  - Whatever content you want to put in here. Note the container is one table cell.

All Parameters Example

{{TblOneCell
|width   = 80%
|state   = open
|title   = Board of Directors 2018/2019
|content =
* Chair: [[Audrey Glover|Dame Audrey Glover]]
* Trustee: [[Gemma Doyle]]
* Trustee: [[Principle Consulting|Becky Hug]]
}}