Difference between revisions of "Template:Columns/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m
Line 17: Line 17:
  
 
=== Example ===
 
=== Example ===
−
Note the use of the <code><nowiki>{{ColumnsHdr|Board Members}}</nowiki></code> template to create a heading.
+
Note the use of the <code><nowiki>{{Cols hdr|Board Members}}</nowiki></code> template to create a heading.
 
<pre>
 
<pre>
 
{{Columns|width=15em|lst=square|content=
 
{{Columns|width=15em|lst=square|content=
 
{{Cols hdr|Board Members}}
 
{{Cols hdr|Board Members}}
−
<li>Nigel Lawson, President</li>
+
{{Cols link|Nigel Lawson|txt=President}}
−
<li>David Campbell Bannerman, Co-Chair</li>
+
{{Cols link|David Campbell Bannerman}}
−
<li>Steve Baker, Co-Chair</li>
+
{{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}}
 
... ...
 
... ...
 
}}
 
}}
Line 29: Line 31:
 
{{Columns|width=15em|lst=square|content=
 
{{Columns|width=15em|lst=square|content=
 
{{Cols hdr|Board Members}}
 
{{Cols hdr|Board Members}}
−
<li>Nigel Lawson, President</li>
+
{{Cols link|Nigel Lawson|txt=President}}
−
<li>David Campbell Bannerman</li>
+
{{Cols link|David Campbell Bannerman}}
−
<li>Steve Baker, Co-Chair</li>
+
{{Cols link|Steve Baker|txt=Co-Chair}}
−
<li>Michael Ancram</li>
+
{{Cols link|Michelin|img=Michelin-Group-logo-vert-opt.svg|sz=45x20px}}
−
<li>David Campbell Bannerman</li>
 
 
<li>Steve Bell</li>
 
<li>Steve Bell</li>
−
<li>Lord Blencathra</li>
 
−
<li>Bill Cash</li>
 
−
<li>Howard Flight</li>
 
 
<li>Lord Forsyth</li>
 
<li>Lord Forsyth</li>
 
<li>Liam Fox</li>
 
<li>Liam Fox</li>
−
<li>Lord Hamilton</li>
 
−
<li>Daniel Hannan</li>
 
 
<li>Greville Howard</li>
 
<li>Greville Howard</li>
−
<li>Sir Gerald Howarth</li>
+
{{Cols link|Gerald Howarth|Sir Gerald Howarth}}
 
}}
 
}}
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>
 
<includeonly>[[Category:WikiPolitiks templates]]</includeonly>

Revision as of 11:37, 10 June 2018

< Template

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.

Examples:

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 {{Cols hdr|Board Members}} template to create a heading.

{{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}}
... ...
}}