Template:Template shortcut: Difference between revisions

Copied new code from /sandbox. Major cleanup and some fixes. No real change in appearance.
(allow it to float elsewhere)
(Copied new code from /sandbox. Major cleanup and some fixes. No real change in appearance.)
Line 1:
<table class="shortcutbox shortcutbox-template plainlinks noprint" style="
<table style="border: 1px solid #999; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; float: {{{float|right}}}" class="noprint plainlinks template-template_shortcut">
{{#ifeq:{{{float|}}}|left
<th class="noprint" align="center" valign="top"><small>Shortcut{{#if:{{{2|}}}|s}}:<!--
| float:left; margin: .3em 1em .3em .3em;
--><br />&#123;&#123;{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]&#125;&#125;<!--
| float:right; margin: .3em .3em .3em 1em;
-->{{#if:{{{2|}}}|<br />&#123;&#123;{{{pre2|}}}[{{fullurl:Template:{{#if:{{{2}}}|{{{2}}}|[]}}|redirect=no}} {{{2}}}]&#125;&#125;}}<!--
}}
-->{{#if:{{{3|}}}|<br />&#123;&#123;{{{pre3|}}}[{{fullurl:Template:{{#if:{{{3}}}|{{{3}}}|[]}}|redirect=no}} {{{3}}}]&#125;&#125;}}
border:1px solid #aaa; background:#fff; padding:3px; text-align:center;">
</small></th>
<tr><th classstyle="noprint"border:none; align="center" valign="topbackground:transparent;"><small>Shortcut{{#if:{{{2|}}}|s}}:<!--
</table><noinclude>{{clear}}{{template doc}}</noinclude>
--><br /> &#123;&#123;{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]&#125;&#125;<!--
-->{{#if:{{{2|}}}|<br /> &#123;&#123;{{{pre2|}}}[{{fullurl:Template:{{#if:{{{2}}}|{{{2}}}|[]}}|redirect=no}} {{{2}}}]&#125;&#125;}}<!--
-->{{#if:{{{3|}}}|<br /> &#123;&#123;{{{pre3|}}}[{{fullurl:Template:{{#if:{{{3}}}|{{{3}}}|[]}}|redirect=no}} {{{3}}}]&#125;&#125;}}
</small></th>
</table><noinclude>
 
{{Documentation}}
</noinclude>