Difference between revisions of "Template:Columns/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m (→‎Example)
Line 18: Line 18:
 
</pre>
 
</pre>
  
−
=== Example ===
+
=== Examples ===
 
Note the use of the <code><nowiki>{{Cols hdr|Board Members}}</nowiki></code> template to create a heading: [[Template:Cols hdr]]
 
Note the use of the <code><nowiki>{{Cols hdr|Board Members}}</nowiki></code> template to create a heading: [[Template:Cols hdr]]
 
<pre>
 
<pre>

Revision as of 10:50, 16 August 2018

<< Template:Columns

Usage

Use this template to create a flexible, multi-column list, with Template:Cols link.
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.

Examples:

The parameters are:

{{{width}}}   - default  = 20em
{{{fsize}}}   - default  = 100%
{{{lst}}}     - default  = disc (options: [none|disc|circle|square|decimal])
{{{class}}}   - vspace   = adds 6px padding to the bottom of each <li>
              - timeline = removes the bullet, left-aligns the content. Eg. here: [[Patrick Minford]].
{{{content}}} - whatever content you want to put in here.

Examples

Note the use of the {{Cols hdr|Board Members}} template to create a heading: Template:Cols hdr

{{Columns|width=15em|lst=square|content=
{{Cols hdr|Board Members}}
{{Cols link|Nigel Lawson|txt=, President}}
{{Cols link|David Campbell Bannerman}}
{{Cols link|Steve Baker|txt=, Co-Chair}}
{{Cols link|Gerald Howarth|Sir Gerald Howarth}}
{{Cols link|Michelin|img=Michelin-Group-logo-vert-opt.svg|sz=45x20px}}
... ...
}}