Difference between revisions of "Template:TblOneCell/doc"
Jump to navigation
Jump to search
m (→All Parameters Example) |
m (→All Parameters Example) |
||
| Line 19: | Line 19: | ||
|width = 80% | |width = 80% | ||
|state = open | |state = open | ||
| − | |mtop = | + | |mtop = 1em |
|title = Board of Directors 2018/2019 | |title = Board of Directors 2018/2019 | ||
|content = | |content = | ||
| Line 29: | Line 29: | ||
Gives: | Gives: | ||
| − | {{TblOneCell|title=Board of Directors 2018/2019|width=80%|state=open|mtop= | + | {{TblOneCell|title=Board of Directors 2018/2019|width=80%|state=open|mtop=1em|content = |
* Chair: [[Audrey Glover|Dame Audrey Glover]] | * Chair: [[Audrey Glover|Dame Audrey Glover]] | ||
* Trustee: [[Gemma Doyle]] | * Trustee: [[Gemma Doyle]] | ||
Revision as of 05:42, 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 - Optional; defaults to 100% | state - Optional; default start-up state = closed | mtop - Optional; default top margin = 0 | 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
|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 |
|