Difference between revisions of "Template:TblOneCell/doc"
Jump to navigation
Jump to search
m |
m (→All Parameters Example) |
||
| Line 23: | Line 23: | ||
}} | }} | ||
</pre> | </pre> | ||
| + | |||
| + | Gives: | ||
| + | {{TblOneCell|title=Board of Directors 2018/2019||width=80%|state=open|content = | ||
| + | * Chair: [[Audrey Glover|Dame Audrey Glover]] | ||
| + | * Trustee: [[Gemma Doyle]] | ||
| + | * Trustee: [[Principle Consulting|Becky Hug]] | ||
| + | }} | ||
| + | |||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 04:33, 1 May 2019
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 to 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]]
}}
Gives:
Board of Directors 2018/2019 |
|