Difference between revisions of "Template:Template shortcut"

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

Revision as of 17:52, 24 April 2008

Template documentation[create]