Jump to content

Template:Template shortcut: Difference between revisions

update style to match {{shortcut}}, per talk
(div instead of single-cell layout table (mirrors changes to Module:Shortcut))
(update style to match {{shortcut}}, per talk)
Line 1: Line 1:
<div role="note" class="shortcutbox shortcutbox-template plainlist plainlinks noprint"
<div role="note" class="shortcutbox shortcutbox-left plainlist plainlinks noprint" style="<!--
    style="{{#switch:{{{clear|}}} |true=clear:{{{float|right}}}; |left|right|both=clear:{{{clear|}}}; |#default=}}<!--
-->{{#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;}}<!--
-->float: {{#ifeq:{{{float|}}}|left|left|right}};<!--
        -->border:1px solid #aaa;background:#fff;padding:0.4em 0.6em;text-align:center;font-size:85%;font-weight:bold"><!--
-->margin: {{{top|0em}}} {{#ifeq:{{{float|}}}|left|1em 0em 0em|0em 0em 1em}};<!--
-->{{#if:{{{redirect|}}} |Redirect |Shortcut}}{{#if:{{{2|}}}|s}}
-->border: 1px solid #aaa; background: #fff; padding: 0.3em 0.6em 0.2em 0.6em; text-align: center; font-size: 85%; font-weight: bold;"><!--
<div style="font-size:120%;font-family:monospace;">
 
<!--- Note: {{#if:true...}} in the following removes whitespace accompanying a parameter: --->
Adding the shortcut links:
* &#123;&#123;{{{pre|}}}{{#ifexist:Template:{{{1}}}  |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}]  |[[Template:{{{1|{{PAGENAME}}}}}|{{#if:true|{{{1|{{PAGENAME}}}}}}}]]}}&#125;&#125;<!--
--><div style="display: inline-block; border-bottom: 1px solid #aaa; line-height: 1.5em; font-weight: normal; margin-bottom: .2em;">{{#if:{{{redirect|}}} |Redirect |Shortcut}}{{#if:{{{2|}}}|s}}</div> {{bulleted list
-->{{#if:{{{2|}}} |
    | {{#if: {{{1|<noinclude>{{PAGENAME}}</noinclude>}}} | &#123;&#123;{{{pre|}}}{{#ifexist:Template:{{{1}}}  |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}]  |[[Template:{{{1|<noinclude>{{PAGENAME}}</noinclude>}}}|{{#if:true|{{{1|<noinclude>{{PAGENAME}}</noinclude>}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre2|}}}{{#ifexist:Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{#if:true|{{{2}}}}}]  |[[Template:{{{2}}}|{{#if:true|{{{2}}}}}]]}}&#125;&#125;<!--
 
-->}}{{#if:{{{3|}}} |
--> | {{#if:{{{2|}}} | &#123;&#123;{{{pre2|}}}{{#ifexist:Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{#if:true|{{{2}}}}}]  |[[Template:{{{2}}}|{{#if:true|{{{2}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre3|}}}{{#ifexist:Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{#if:true|{{{3}}}}}]  |[[Template:{{{3}}}|{{#if:true|{{{3}}}}}]]}}&#125;&#125;<!--
 
  -->}}{{#if:{{{4|}}} |
--> | {{#if:{{{3|}}} | &#123;&#123;{{{pre3|}}}{{#ifexist:Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{#if:true|{{{3}}}}}]  |[[Template:{{{3}}}|{{#if:true|{{{3}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre4|}}}{{#ifexist:Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{#if:true|{{{4}}}}}]  |[[Template:{{{4}}}|{{#if:true|{{{4}}}}}]]}}&#125;&#125;<!--
 
    -->}}{{#if:{{{5|}}} |
--> | {{#if:{{{4|}}} | &#123;&#123;{{{pre4|}}}{{#ifexist:Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{#if:true|{{{4}}}}}]  |[[Template:{{{4}}}|{{#if:true|{{{4}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre5|}}}{{#ifexist:Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{#if:true|{{{5}}}}}]  |[[Template:{{{5}}}|{{#if:true|{{{5}}}}}]]}}&#125;&#125;<!--
 
      -->}}{{#if:{{{6|}}} |
--> | {{#if:{{{5|}}} | &#123;&#123;{{{pre5|}}}{{#ifexist:Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{#if:true|{{{5}}}}}]  |[[Template:{{{5}}}|{{#if:true|{{{5}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre6|}}}{{#ifexist:Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{#if:true|{{{6}}}}}]  |[[Template:{{{6}}}|{{#if:true|{{{6}}}}}]]}}&#125;&#125;<!--
 
        -->}}{{#if:{{{7|}}} |
--> | {{#if:{{{6|}}} | &#123;&#123;{{{pre6|}}}{{#ifexist:Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{#if:true|{{{6}}}}}]  |[[Template:{{{6}}}|{{#if:true|{{{6}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre7|}}}{{#ifexist:Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{#if:true|{{{7}}}}}]  |[[Template:{{{7}}}|{{#if:true|{{{7}}}}}]]}}&#125;&#125;<!--
 
          -->}}{{#if:{{{8|}}} |
--> | {{#if:{{{7|}}} | &#123;&#123;{{{pre7|}}}{{#ifexist:Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{#if:true|{{{7}}}}}]  |[[Template:{{{7}}}|{{#if:true|{{{7}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre8|}}}{{#ifexist:Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{#if:true|{{{8}}}}}]  |[[Template:{{{8}}}|{{#if:true|{{{8}}}}}]]}}&#125;&#125;<!--
 
            -->}}{{#if:{{{9|}}} |
--> | {{#if:{{{8|}}} | &#123;&#123;{{{pre8|}}}{{#ifexist:Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{#if:true|{{{8}}}}}]  |[[Template:{{{8}}}|{{#if:true|{{{8}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre9|}}}{{#ifexist:Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{#if:true|{{{9}}}}}]  |[[Template:{{{9}}}|{{#if:true|{{{9}}}}}]]}}&#125;&#125;<!--
 
              -->}}{{#if:{{{10|}}} |
--> | {{#if:{{{9|}}} | &#123;&#123;{{{pre9|}}}{{#ifexist:Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{#if:true|{{{9}}}}}]  |[[Template:{{{9}}}|{{#if:true|{{{9}}}}}]]}}&#125;&#125; }}<!--
* &#123;&#123;{{{pre10|}}}<!--
 
  -->{{#ifexist:Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{#if:true|{{{10}}}}}]  |[[Template:{{{10}}}|{{#if:true|{{{10}}}}}]]}}&#125;&#125;<!--
--> | {{#if:{{{10|}}} | &#123;&#123;{{{pre10|}}}{{#ifexist:Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{#if:true|{{{10}}}}}]  |[[Template:{{{10}}}|{{#if:true|{{{10}}}}}]]}}&#125;&#125; }}<!--
                -->}}<!--
 
--></div><!--
-->}}<!--
--></div><noinclude>{{Documentation}}</noinclude>
--></div><noinclude>{{Documentation}}</noinclude>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.