Difference between revisions of "Template:TblOneCell/doc"

From WikiCorporates
Jump to navigation Jump to search
m
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
__NOTOC__
 +
{{Msgbox|text=Use with care; content within the closed template is not visible to an in-page text search.}}
 +
 
=== Usage ===
 
=== Usage ===
−
 
 
This table-based template can be used to hide content. For a good working example, see [[Foreign Policy Centre#People|Foreign Policy Centre]]
 
This table-based template can be used to hide content. For a good working example, see [[Foreign Policy Centre#People|Foreign Policy Centre]]
  
 
The parameters are:
 
The parameters are:
 
<pre>
 
<pre>
−
{{{state}}}  - [not set]                    If not set, the box will start up closed.
+
| width    - Optional; defaults to 100%
−
{{{title}}}  - [not set]                    The title
+
| state   - Optional; default start-up state = closed
−
{{{content}}} - [not set]                    Whatever content you want to put in here. Note the container is one table cell.
+
| mtop    - Optional; default top margin = 0
 +
| title    - The title; in bold + will show in the TOC
 +
-- OR --
 +
| text    - The title, in bold + will *not* show in the TOC
 +
| content - Whatever content you want to put in here. Note the container is one table cell.
 +
</pre>
 +
 
 +
==== Simple Example ====
 +
<pre>
 +
{{TblOneCell|title=Structure|mtop=1em|hdr=h3|content=
 +
... ...
 +
}}
 
</pre>
 
</pre>
 +
Gives:
 +
{{TblOneCell|title=Structure|mtop=1em|hdr=h3|content=
 +
... ...
 +
}}
  
−
=== All Parameters Example ===
+
==== All Parameters Example ====
 
<pre>
 
<pre>
 
{{TblOneCell
 
{{TblOneCell
 +
|width  = 80%
 
|state  = open
 
|state  = open
 +
|mtop    = 1em
 
|title  = Board of Directors 2018/2019
 
|title  = Board of Directors 2018/2019
 
|content =
 
|content =
Line 21: Line 40:
 
}}
 
}}
 
</pre>
 
</pre>
−
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
+
 
 +
Gives:
 +
{{TblOneCell|title=Board of Directors 2018/2019|width=80%|state=open|mtop=1em|content=
 +
* Chair: [[Audrey Glover|Dame Audrey Glover]]
 +
* Trustee: [[Gemma Doyle]]
 +
* Trustee: [[Principle Consulting|Becky Hug]]
 +
}}
 +
<includeonly>[[Category:WikiCorporates templates]]</includeonly>

Latest revision as of 15:05, 30 May 2020

Information icon4.svg Use with care; content within the closed template is not visible to an in-page text search.

Usage

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

The parameters are:

| width    - Optional; defaults to 100%
| state    - Optional; default start-up state = closed
| mtop     - Optional; default top margin = 0
| title    - The title; in bold + will show in the TOC
-- OR --
| text     - The title, in bold + will *not* show in the TOC
| content  - Whatever content you want to put in here. Note the container is one table cell.

Simple Example

{{TblOneCell|title=Structure|mtop=1em|hdr=h3|content=
... ...
}}

Gives:

Structure

... ...

All Parameters Example

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

Gives:

Board of Directors 2018/2019