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: | Line 1: | ||
<table style=" | <table class="shortcutbox shortcutbox-template plainlinks noprint" style=" | ||
<th | {{#ifeq:{{{float|}}}|left | ||
--><br | | float:left; margin: .3em 1em .3em .3em; | ||
-->{{#if:{{{2|}}}|<br | | float:right; margin: .3em .3em .3em 1em; | ||
-->{{#if:{{{3|}}}|<br | }} | ||
</small | border:1px solid #aaa; background:#fff; padding:3px; text-align:center;"> | ||
</table><noinclude>{{ | <tr><th style="border:none; background:transparent;"><small>Shortcut{{#if:{{{2|}}}|s}}:<!-- | ||
--><br> {{{{{pre|}}}[{{fullurl:Template:{{{1|{{PAGENAME}}}}}|redirect=no}} {{{1|{{PAGENAME}}}}}]}}<!-- | |||
-->{{#if:{{{2|}}}|<br> {{{{{pre2|}}}[{{fullurl:Template:{{{2}}}|redirect=no}} {{{2}}}]}}}}<!-- | |||
-->{{#if:{{{3|}}}|<br> {{{{{pre3|}}}[{{fullurl:Template:{{{3}}}|redirect=no}} {{{3}}}]}}}} | |||
</small> | |||
</table><noinclude> | |||
{{Documentation}} | |||
</noinclude> |