Template:Template shortcut: Difference between revisions
Content added Content deleted
(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: | ||
< |
<div role="note" class="shortcutbox shortcutbox-template plainlist 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:0.4em 0.6em;text-align:center;font-size:85%;font-weight:bold"><!-- |
|||
--> |
-->{{#if:{{{redirect|}}} |Redirect |Shortcut}}{{#if:{{{2|}}}|s}} |
||
<div |
<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: ---> |
||
* {{{{{pre|}}}{{#ifexist:Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}] |[[Template:{{{1|{{PAGENAME}}}}}|{{#if:true|{{{1|{{PAGENAME}}}}}}}]]}}}}<!-- |
* {{{{{pre|}}}{{#ifexist:Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{#if:true|{{{1}}}}}] |[[Template:{{{1|{{PAGENAME}}}}}|{{#if:true|{{{1|{{PAGENAME}}}}}}}]]}}}}<!-- |
||
Line 28: | Line 28: | ||
-->}}<!-- |
-->}}<!-- |
||
--></div><!-- |
--></div><!-- |
||
⚫ | |||
--></th></tr> |
|||
⚫ |