Difference between revisions of "Template:Columns/doc"
Jump to navigation
Jump to search
m (→Example) |
m |
||
| Line 2: | Line 2: | ||
=== Usage === | === Usage === | ||
Use this template to create a flexible, multi-column list, with [[Template:Cols link]].<br/> | Use this template to create a flexible, multi-column list, with [[Template:Cols link]].<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]. | + | 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%. (Nb: See more List-style-type options at [https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type Moz. Dev. Network].) |
Examples: | Examples: | ||
* [[Foreign Policy Centre#Connections|Foreign Policy Centre]] "Partners and Members" | * [[Foreign Policy Centre#Connections|Foreign Policy Centre]] "Partners and Members" | ||
* [[Conservatives for Britain]] | * [[Conservatives for Britain]] | ||
| + | * [[Patrick Minford]], using "timeline" option | ||
The parameters are: | The parameters are: | ||
| Line 20: | Line 21: | ||
=== Examples === | === 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]] | ||
| + | |||
| + | ==== Plain Vanilla ==== | ||
<pre> | <pre> | ||
{{Columns|width=15em|lst=square|content= | {{Columns|width=15em|lst=square|content= | ||
| Line 42: | Line 45: | ||
<li>Greville Howard</li> | <li>Greville Howard</li> | ||
{{Cols link|Gerald Howarth|Sir Gerald Howarth}} | {{Cols link|Gerald Howarth|Sir Gerald Howarth}} | ||
| + | }} | ||
| + | |||
| + | ==== Timeline ==== | ||
| + | <pre> | ||
| + | {{Columns|width=30em|lst=none|class=timeline|content= | ||
| + | <li><small>Apr.2016</small>{{img|Economists-for-Free-Trade.png|81|25}} Co-founded {{em|Economists for Brexit}}, now morphed into [[Economists for Free Trade]].</li> | ||
| + | <li><small> </small>{{img|Centre-for-Policy-Studies-opt.svg|25|25}} Council, [[Centre for Policy Studies]].</li> | ||
| + | <li><small>2011-</small>{{img|Reform-opt.svg|31|25}} Advisory Council, [[Reform]]<ref name="wbm-2011.10.26"/></li> | ||
| + | ... ... | ||
| + | }} | ||
| + | </pre> | ||
| + | {{Columns|width=30em|lst=none|class=timeline|content= | ||
| + | <li><small>Apr.2016</small>{{img|Economists-for-Free-Trade.png|81|25}} Co-founded {{em|Economists for Brexit}}, now morphed into [[Economists for Free Trade]].</li> | ||
| + | <li><small> </small>{{img|Centre-for-Policy-Studies-opt.svg|25|25}} Council, [[Centre for Policy Studies]].</li> | ||
| + | <li><small>2011-</small>{{img|Reform-opt.svg|31|25}} Advisory Council, [[Reform]]<ref name="wbm-2011.10.26"/></li> | ||
}} | }} | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 10:53, 16 August 2018
Contents
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%. (Nb: See more List-style-type options at Moz. Dev. Network.)
Examples:
- Foreign Policy Centre "Partners and Members"
- Conservatives for Britain
- Patrick Minford, using "timeline" option
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
Plain Vanilla
{{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}}
... ...
}}
- Board Members
- Nigel Lawson , President
- David Campbell Bannerman
- Steve Baker , Co-Chair
- Michelin 45x20px
- Steve Bell
- Lord Forsyth
- Liam Fox
- Greville Howard
- Sir Gerald Howarth
Timeline
{{Columns|width=30em|lst=none|class=timeline|content=
<li><small>Apr.2016</small>{{img|Economists-for-Free-Trade.png|81|25}} Co-founded {{em|Economists for Brexit}}, now morphed into [[Economists for Free Trade]].</li>
<li><small> </small>{{img|Centre-for-Policy-Studies-opt.svg|25|25}} Council, [[Centre for Policy Studies]].</li>
<li><small>2011-</small>{{img|Reform-opt.svg|31|25}} Advisory Council, [[Reform]]<ref name="wbm-2011.10.26"/></li>
... ...
}}
- Apr.2016
Co-founded Economists for Brexit, now morphed into Economists for Free Trade. -
Council, Centre for Policy Studies.
- 2011-
Advisory Council, Reform[1]
- ^ Cite error: Invalid
<ref>tag; no text was provided for refs namedwbm-2011.10.26