Template:Template shortcut: Difference between revisions

    m (Changed protection level of Template:Template shortcut: Highly visible template: reduce protection ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
    (add optional clear parameter, with syntax that matches template:stack (see talk))
    Line 3: Line 3:
    | float:left; margin: .3em 1em .3em .3em;
    | float:left; margin: .3em 1em .3em .3em;
    | float:right; margin: .3em .3em .3em 1em;
    | float:right; margin: .3em .3em .3em 1em;
    }}
    }}{{#switch:{{{clear|}}}
    border:1px solid #aaa; background:#fff; padding:3px; text-align:center;"><tr><th style="border:none; background:transparent;font-size:85%">Shortcut{{#if:{{{2|}}}|s}}:
    | true = clear:{{{float|right}}};
    | left|right|both = clear:{{{clear|}}};
    | #default=
    }} border:1px solid #aaa; background:#fff; padding:3px; text-align:center;"><tr><th style="border:none; background:transparent;font-size:85%">Shortcut{{#if:{{{2|}}}|s}}:
    <div class="plainlist" style="font-size:120%;font-family:monospace">
    <div class="plainlist" style="font-size:120%;font-family:monospace">
    * &#123;&#123;{{{pre|}}}{{#ifexist: Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{{1}}}] | [[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]] }}&#125;&#125;<!--
    * &#123;&#123;{{{pre|}}}{{#ifexist: Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{{1}}}] | [[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]] }}&#125;&#125;<!--