Difference between revisions of "Template:Columns/doc"
Jump to navigation
Jump to search
m (→Example) |
m |
||
| Line 1: | Line 1: | ||
=== Usage === | === Usage === | ||
Use this template to create a flexible, multi-column list.<br/> | Use this template to create a flexible, multi-column list.<br/> | ||
| − | If used without parameters, it will produce a flexible, multi-column, 20em column-width list, with a list-style-type of disc, and a font-size of 100%.<br/> | + | If used without parameters, it will produce a flexible, multi-column, 20em column-width list, with a list-style-type of disc, and a font-size of 100%. See more List-style-type options at [https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type Moz. Dev. Network].<br/> |
See [[Foreign Policy Centre#Connections|Foreign Policy Centre]] "Partners and Members" for an in-use example. | See [[Foreign Policy Centre#Connections|Foreign Policy Centre]] "Partners and Members" for an in-use example. | ||
| Line 8: | Line 8: | ||
{{{width}}} - default = 20em | {{{width}}} - default = 20em | ||
{{{fsize}}} - default = 100% | {{{fsize}}} - default = 100% | ||
| − | {{{lst}}} - default = disc (options: [none|disc|circle|square|decimal]) | + | {{{lst}}} - default = disc (options: [none|disc|circle|square|decimal]) |
{{{content}}} - whatever content you want to put in here. | {{{content}}} - whatever content you want to put in here. | ||
</pre> | </pre> | ||
=== Example === | === Example === | ||
| + | Note the use of the <nowiki>{{columnsHdr|Board Members}}</nowiki> template to create a heading. | ||
<pre> | <pre> | ||
{{columns|width=15|lst=square|content= | {{columns|width=15|lst=square|content= | ||
| + | {{columnsHdr|Board Members}} | ||
<li>Nigel Lawson, President</li> | <li>Nigel Lawson, President</li> | ||
<li>David Campbell Bannerman, Co-Chair</li> | <li>David Campbell Bannerman, Co-Chair</li> | ||
| Line 22: | Line 24: | ||
</pre> | </pre> | ||
{{columns|width=15|lst=square|content= | {{columns|width=15|lst=square|content= | ||
| + | <li style="list-style-type:none; font-weight:bold; margin-left:-1.2em;">Board Members</li> | ||
<li>Nigel Lawson, President</li> | <li>Nigel Lawson, President</li> | ||
<li>David Campbell Bannerman</li> | <li>David Campbell Bannerman</li> | ||
Revision as of 19:51, 27 April 2018
Usage
Use this template to create a flexible, multi-column list.
If used without parameters, it will produce a flexible, multi-column, 20em column-width list, with a list-style-type of disc, and a font-size of 100%. See more List-style-type options at Moz. Dev. Network.
See Foreign Policy Centre "Partners and Members" for an in-use example.
The parameters are:
{{{width}}} - default = 20em
{{{fsize}}} - default = 100%
{{{lst}}} - default = disc (options: [none|disc|circle|square|decimal])
{{{content}}} - whatever content you want to put in here.
Example
Note the use of the {{columnsHdr|Board Members}} template to create a heading.
{{columns|width=15|lst=square|content=
{{columnsHdr|Board Members}}
<li>Nigel Lawson, President</li>
<li>David Campbell Bannerman, Co-Chair</li>
<li>Steve Baker, Co-Chair</li>
... ...
}}