Difference between revisions of "Template:Template shortcut"
Jump to navigation
Jump to search
(add optional clear parameter, with syntax that matches template:stack (see talk)) |
Dmarcadmin (talk | contribs) m (37 revisions imported) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <table class="shortcutbox shortcutbox-template plainlinks noprint" style=" | + | <table class="shortcutbox shortcutbox-template plainlinks noprint" |
− | {{# | + | 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;}}<!-- |
− | | | + | -->border:1px solid #aaa;background:#fff;padding:3px;text-align:center;"><!-- |
− | + | --><tr><th style="font-size:85%;border:none;background:transparent;"> {{#if:{{{redirect|}}} |Redirect |Shortcut}}{{#if:{{{2|}}}|s}} | |
− | | | + | <div class="plainlist" style="font-size:120%;font-family:monospace;"> |
− | + | <!--- Note: {{#if:true...}} in the following removes whitespace accompanying a parameter: ---> | |
− | + | * {{{{{pre|}}}{{#ifexist:Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}] |[[Template:{{{1|{{PAGENAME}}}}}|{{#if:true|{{{1|{{PAGENAME}}}}}}}]]}}}}<!-- | |
− | }} border:1px solid #aaa; background:#fff; padding:3px; text-align:center;">< | + | -->{{#if:{{{2|}}} | |
− | <div class="plainlist" style="font-size:120%;font-family:monospace"> | + | * {{{{{pre2|}}}{{#ifexist:Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{#if:true|{{{2}}}}}] |[[Template:{{{2}}}|{{#if:true|{{{2}}}}}]]}}}}<!-- |
− | + | -->}}{{#if:{{{3|}}} | | |
− | -->{{#if:{{{2|}}}| | + | * {{{{{pre3|}}}{{#ifexist:Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{#if:true|{{{3}}}}}] |[[Template:{{{3}}}|{{#if:true|{{{3}}}}}]]}}}}<!-- |
− | * {{{{{pre2|}}}{{#ifexist: Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{{2}}}] | [[Template:{{{2}}}|{{{2}}}]] }}}} | + | -->}}{{#if:{{{4|}}} | |
− | -->{{#if:{{{3|}}}| | + | * {{{{{pre4|}}}{{#ifexist:Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{#if:true|{{{4}}}}}] |[[Template:{{{4}}}|{{#if:true|{{{4}}}}}]]}}}}<!-- |
− | * {{{{{pre3|}}}{{#ifexist: Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{{3}}}] | [[Template:{{{3}}}|{{{3}}}]] }}}} | + | -->}}{{#if:{{{5|}}} | |
− | -->{{#if:{{{4|}}}| | + | * {{{{{pre5|}}}{{#ifexist:Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{#if:true|{{{5}}}}}] |[[Template:{{{5}}}|{{#if:true|{{{5}}}}}]]}}}}<!-- |
− | * {{{{{pre4|}}}{{#ifexist: Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{{4}}}] | [[Template:{{{4}}}|{{{4}}}]] }}}} | + | -->}}{{#if:{{{6|}}} | |
− | -->{{#if:{{{5|}}}| | + | * {{{{{pre6|}}}{{#ifexist:Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{#if:true|{{{6}}}}}] |[[Template:{{{6}}}|{{#if:true|{{{6}}}}}]]}}}}<!-- |
− | * {{{{{pre5|}}}{{#ifexist: Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{{5}}}] | [[Template:{{{5}}}|{{{5}}}]] }}}} | + | -->}}{{#if:{{{7|}}} | |
− | -->{{#if:{{{6|}}}| | + | * {{{{{pre7|}}}{{#ifexist:Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{#if:true|{{{7}}}}}] |[[Template:{{{7}}}|{{#if:true|{{{7}}}}}]]}}}}<!-- |
− | * {{{{{pre6|}}}{{#ifexist: Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{{6}}}] | [[Template:{{{6}}}|{{{6}}}]] | + | -->}}{{#if:{{{8|}}} | |
− | }}}} | + | * {{{{{pre8|}}}{{#ifexist:Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{#if:true|{{{8}}}}}] |[[Template:{{{8}}}|{{#if:true|{{{8}}}}}]]}}}}<!-- |
− | -->{{#if:{{{7|}}}| | + | -->}}{{#if:{{{9|}}} | |
− | * {{{{{pre7|}}}{{#ifexist: Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{{7}}}] | [[Template:{{{7}}}|{{{7}}}]] | + | * {{{{{pre9|}}}{{#ifexist:Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{#if:true|{{{9}}}}}] |[[Template:{{{9}}}|{{#if:true|{{{9}}}}}]]}}}}<!-- |
− | }}}} | + | -->}}{{#if:{{{10|}}} | |
− | -->{{#if:{{{8|}}}| | + | * {{{{{pre10|}}}<!-- |
− | * {{{{{pre8|}}}{{#ifexist: Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{{8}}}] | [[Template:{{{8}}}|{{{8}}}]] | + | -->{{#ifexist:Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{#if:true|{{{10}}}}}] |[[Template:{{{10}}}|{{#if:true|{{{10}}}}}]]}}}}<!-- |
− | }}}} | + | -->}}<!-- |
− | -->{{#if:{{{9|}}}| | + | --></div><!-- |
− | * {{{{{pre9|}}}{{#ifexist: Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{{9}}}] | [[Template:{{{9}}}|{{{9}}}]] | + | --></th></tr> |
− | }}}} | + | </table><noinclude>{{Documentation}}</noinclude> |
− | -->{{#if:{{{10|}}}| | ||
− | * {{{{{pre10|}}}{{#ifexist: Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{{10}}}] | [[Template:{{{10}}}|{{{10}}}] | ||
− | |||
− | {{Documentation}} | ||
− | </noinclude> |
Latest revision as of 03:40, 17 July 2015
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}