Template:Template shortcut: Difference between revisions

    From Nonbinary Wiki
    (Update via sandbox/testcases (parameter whitespace removal, "Redirect/s" option))
    (div instead of single-cell layout table (mirrors changes to Module:Shortcut))
    Line 1: Line 1:
    <table class="shortcutbox shortcutbox-template plainlinks noprint"
    <div role="note" class="shortcutbox shortcutbox-template plainlist plainlinks noprint"
          style="{{#switch:{{{clear|}}} |true=clear:{{{float|right}}}; |left|right|both=clear:{{{clear|}}}; |#default=}}<!--
        style="{{#switch:{{{clear|}}} |true=clear:{{{float|right}}}; |left|right|both=clear:{{{clear|}}}; |#default=}}<!--
              -->{{#ifeq:{{{float|}}}|left |float:left;margin:{{{top|0.3em}}} 1.0em 0.3em 0.3em; |float:right;margin:{{{top|0.3em}}} 0.3em 0.3em 1.0em;}}<!--
            -->{{#ifeq:{{{float|}}}|left |float:left;margin:{{{top|0.3em}}} 1.0em 0.3em 0.3em; |float:right;margin:{{{top|0.3em}}} 0.3em 0.3em 1.0em;}}<!--
              -->border:1px solid #aaa;background:#fff;padding:3px;text-align:center;"><!--
            -->border:1px solid #aaa;background:#fff;padding:0.4em 0.6em;text-align:center;font-size:85%;font-weight:bold"><!--
      --><tr><th style="font-size:85%;border:none;background:transparent;"> {{#if:{{{redirect|}}} |Redirect |Shortcut}}{{#if:{{{2|}}}|s}}
      -->{{#if:{{{redirect|}}} |Redirect |Shortcut}}{{#if:{{{2|}}}|s}}
    <div class="plainlist" style="font-size:120%;font-family:monospace;">
    <div style="font-size:120%;font-family:monospace;">
    <!--- Note: {{#if:true...}} in the following removes whitespace accompanying a parameter: --->
    <!--- Note: {{#if:true...}} in the following removes whitespace accompanying a parameter: --->
    * &#123;&#123;{{{pre|}}}{{#ifexist:Template:{{{1}}}  |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}]  |[[Template:{{{1|{{PAGENAME}}}}}|{{#if:true|{{{1|{{PAGENAME}}}}}}}]]}}&#125;&#125;<!--
    * &#123;&#123;{{{pre|}}}{{#ifexist:Template:{{{1}}}  |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}]  |[[Template:{{{1|{{PAGENAME}}}}}|{{#if:true|{{{1|{{PAGENAME}}}}}}}]]}}&#125;&#125;<!--
    Line 28: Line 28:
                     -->}}<!--
                     -->}}<!--
    --></div><!--
    --></div><!--
    --></th></tr>
    --></div><noinclude>{{Documentation}}</noinclude>
    </table><noinclude>{{Documentation}}</noinclude>

    Revision as of 10:20, 22 July 2016

    Template documentation[create]