Difference between revisions of "Template:Template shortcut"
m (1 revision) |
(add optional clear parameter, with syntax that matches template:stack (see talk)) |
||
Line 1: | Line 1: | ||
− | < | + | <table class="shortcutbox shortcutbox-template plainlinks noprint" style=" |
− | + | {{#ifeq:{{{float|}}}|left | |
− | + | | float:left; margin: .3em 1em .3em .3em; | |
− | + | | float:right; margin: .3em .3em .3em 1em; | |
− | + | }}{{#switch:{{{clear|}}} | |
− | --> | + | | 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"> |
− | }}{{# | + | * {{{{{pre|}}}{{#ifexist: Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{{1}}}] | [[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]] }}}}<!-- |
− | }}{{# | + | -->{{#if:{{{2|}}}| |
− | }}{{# | + | * {{{{{pre2|}}}{{#ifexist: Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{{2}}}] | [[Template:{{{2}}}|{{{2}}}]] }}}}}}<!-- |
− | }}{{# | + | -->{{#if:{{{3|}}}| |
− | }}{{#if:{{{9|}}}| | + | * {{{{{pre3|}}}{{#ifexist: Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{{3}}}] | [[Template:{{{3}}}|{{{3}}}]] }}}}}}<!-- |
− | }}{{# | + | -->{{#if:{{{4|}}}| |
− | }}{{ | + | * {{{{{pre4|}}}{{#ifexist: Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{{4}}}] | [[Template:{{{4}}}|{{{4}}}]] }}}}}}<!-- |
− | }} | + | -->{{#if:{{{5|}}}| |
− | + | * {{{{{pre5|}}}{{#ifexist: Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{{5}}}] | [[Template:{{{5}}}|{{{5}}}]] }}}}}}<!-- | |
− | -->{{#if:{{{ | + | -->{{#if:{{{6|}}}| |
− | | {{#ifexist:{{{ | + | * {{{{{pre6|}}}{{#ifexist: Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{{6}}}] | [[Template:{{{6}}}|{{{6}}}]] |
− | + | }}}}}}<!-- | |
− | + | -->{{#if:{{{7|}}}| | |
− | + | * {{{{{pre7|}}}{{#ifexist: Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{{7}}}] | [[Template:{{{7}}}|{{{7}}}]] | |
− | }}<noinclude> | + | }}}}}}<!-- |
+ | -->{{#if:{{{8|}}}| | ||
+ | * {{{{{pre8|}}}{{#ifexist: Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{{8}}}] | [[Template:{{{8}}}|{{{8}}}]] | ||
+ | }}}}}}<!-- | ||
+ | -->{{#if:{{{9|}}}| | ||
+ | * {{{{{pre9|}}}{{#ifexist: Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{{9}}}] | [[Template:{{{9}}}|{{{9}}}]] | ||
+ | }}}}}}<!-- | ||
+ | -->{{#if:{{{10|}}}| | ||
+ | * {{{{{pre10|}}}{{#ifexist: Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{{10}}}] | [[Template:{{{10}}}|{{{10}}}]] | ||
+ | }}}}}}</div></th></tr></table><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
− | |||
</noinclude> | </noinclude> |
Revision as of 22:11, 23 June 2014
The above documentation is transcluded from Template:Template shortcut/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |