Difference between revisions of "Template:TblOneCell/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 27: Line 27:
  
 
Gives:
 
Gives:
−
{{TblOneCell|title=Board of Directors 2018/2019||width=80%|state=open|content =
+
{{TblOneCell|title=Board of Directors 2018/2019|width=80%|state=open|content =
 
* Chair: [[Audrey Glover|Dame Audrey Glover]]
 
* Chair: [[Audrey Glover|Dame Audrey Glover]]
 
* Trustee: [[Gemma Doyle]]
 
* Trustee: [[Gemma Doyle]]
 
* Trustee: [[Principle Consulting|Becky Hug]]
 
* Trustee: [[Principle Consulting|Becky Hug]]
 
}}
 
}}
 +
 +
Orig:
 +
<table class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="width:80%; padding:0px; text-align:left; border:1px solid #8488dc; border-collapse:collapse;">
 +
<tr><td style="padding:0.1em 0.8em; text-align:left; font-size:87%; border-bottom:1px solid #8488dc; background-color:#f5f5ff;"><span style="font-size:115%; font-weight:bold;">Board of Directors 2018/2019</span></td>
 +
</tr>
 +
<tr><td style="padding:0.3em 0; background-color:#ffffff;">
 +
* Chair: [[Audrey Glover|Dame Audrey Glover]]
 +
* Trustee: [[Gemma Doyle]]
 +
* Trustee: [[Principle Consulting|Becky Hug]]
 +
</td></tr>
 +
</table><noinclude>{{doc2}}</noinclude>
 +
  
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 05:07, 1 May 2019

<< Template:TblOneCell

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

Orig:

Board of Directors 2018/2019

[create] Documentation