Difference between revisions of "Template:TblOneCell/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> {{{state}}} - [not set]...")
 
m
Line 1: Line 1:
 
=== Usage ===
 
=== Usage ===
  
−
This template can be used to hide content, whether it be text, video or whatever.<br/>
+
This table-based template can be used to hide content. For a good working example, see [[http://wikipolitiks.local/wiki/Foreign_Policy_Centre#People|Foreign Policy Centre]]
 +
 
 
The parameters are:
 
The parameters are:
 
<pre>
 
<pre>
−
{{{state}}}     - [not set]                    The box title
+
{{{state}}}   - [not set]                    If not set, the box will start up closed.
−
{{{title}}}     - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
+
{{{title}}}  - [not set]                    The title
−
{{{contents}}}  - [not set]                    An extra table row/cell. Not set if not used.
+
{{{content}}} - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
 
</pre>
 
</pre>
  
Line 12: Line 13:
 
<pre>
 
<pre>
 
{{TblOneCell
 
{{TblOneCell
−
|state = open
+
|state   = open
−
|title = Board of Directors 2018/2019
+
|title   = Board of Directors 2018/2019
−
|contents = * Chair: [[Audrey Glover|Dame Audrey Glover]]
+
|content =
 +
* Chair: [[Audrey Glover|Dame Audrey Glover]]
 
* Trustee: [[Gemma Doyle]]
 
* Trustee: [[Gemma Doyle]]
 
* Trustee: [[Principle Consulting|Becky Hug]]
 
* Trustee: [[Principle Consulting|Becky Hug]]

Revision as of 17:23, 14 March 2018

Usage

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

The parameters are:

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

All Parameters Example

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