Difference between revisions of "Template:Cols link"

From WikiCorporates
Jump to navigation Jump to search
m
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<li>{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}{{#if:{{{lnk|}}}|, [[{{{lnk}}}]]}}{{#if:{{{txt|}}}|, {{{txt}}}}}{{#if:{{{img|}}}|[[File:{{{img}}}|{{{sz}}}]]}}{{#if:{{{png|}}}|{{img|png|w|h}}}}</li><noinclude>{{doc2}}</noinclude>
+
<li>{{#if:{{{1|}}}|{{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}|}}{{#if:{{{lnk|}}}|, [[{{{lnk}}}]]}} {{#if:{{{txt|}}}|{{{txt}}}}}{{#if:{{{img|}}}|&nbsp;&nbsp;&nbsp;[[File:{{{img}}}|{{{sz}}}]]}}{{#if:{{{png|}}}|{{img|{{{png}}}|{{{w}}}|{{{h}}}|float=none|ml=10px}}}}</li><noinclude>{{doc2}}</noinclude>

Latest revision as of 15:56, 14 October 2018

  • [edit] Documentation

    Ambox important.svg DO NOT USE; this template is being phased out.

    Usage

    Use this template within Template:Columns to create an entry.
    Note that the image has float=none set; and that it will have a default left margin of 10px.

    Example

    {{Columns|width=20em|lst=square|content=
    {{Cols hdr|Board Members}}
    {{Cols link|Nigel Lawson|txt=, President}}
    {{Cols link|Bill Cash}}
    {{Cols link|Gerald Howarth|Sir Gerald Howarth}}
    {{Cols link|Michelin|png=Michelin-Group-horiz.svg|w=105|h=20|txt=abc def ghi}}
    -- or --
    {{Cols link|Speedibake|png=Speedibake.png|w=99|h=20}}
    {{Cols link|txt=John Brown, [http://www.acme.com Acme Co.]}}
    ... ...
    }}