Template:Template shortcut: Difference between revisions

div instead of single-cell layout table (mirrors changes to Module:Shortcut)
(Update via sandbox/testcases (parameter whitespace removal, "Redirect/s" option))
(div instead of single-cell layout table (mirrors changes to Module:Shortcut))
Line 1:
<tablediv 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:3px0.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}}
<div class="plainlist" style="font-size:120%;font-family:monospace;">
<!--- 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;<!--
Line 28:
-->}}<!--
--></div><!--
--></tablediv><noinclude>{{Documentation}}</noinclude>
--></th></tr>
</table><noinclude>{{Documentation}}</noinclude>