Difference between revisions of "Template:Shortcut"

From MINR.ORG WIKI
(reverted per explanation on MZMcBride's talk page)
(Copying new code from the /sandbox. See talk page for code explanation.)
Line 1: Line 1:
<table class="noprint Template-Shortcut" style="border:1px solid #999; background:#fff; margin: .3em .3em .3em 1em; padding:3px; float:right"><th class="noprint" align="center" valign="top"><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]:<br />{{#ifexist:{{{1|}}}|[[{{{1}}}]]|{{{1|}}} }}{{#if:{{{2|}}}|<br />[[{{{2}}}]]}}{{#if:{{{3|}}}|<br />[[{{{3}}}]]}}{{#if:{{{4|}}}|<br />[[{{{4}}}]]}}{{#if:{{{5|}}}|<br />[[{{{5}}}]]}}</small></th></table><noinclude>
+
<table class="shortcutbox noprint" style="clear:right; float:right; border:1px solid #aaa; background:#fff; margin: .3em .3em .3em 1em; padding:3px; text-align:center;">
 +
<th style="border:none; background:transparent;"><!--
 +
Putting anchors on page:
 +
-->{{#if:{{{1|}}}|<span id="{{{1|}}}"></span> }}{{#if:{{{2|}}}|<span id="{{{2|}}}"></span> }}{{#if:{{{3|}}}|<span id="{{{3|}}}"></span> }}{{#if:{{{4|}}}|<span id="{{{4|}}}"></span> }}{{#if:{{{5|}}}|<span id="{{{5|}}}"></span> }}<!--
 +
Adding the shortcut links:
 +
--><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]:<br> {{#ifexist:{{{1|}}}|[[{{{1}}}]]|{{{1|}}} }}{{#if:{{{2|}}}|<br> [[{{{2}}}]] }}{{#if:{{{3|}}}|<br> [[{{{3}}}]]}}{{#if:{{{4|}}}|<br> [[{{{4}}}]] }}{{#if:{{{5|}}}|<br> [[{{{5}}}]] }}</small>
 +
</table><!--
 +
Reporting if the first parameter is not a valid non-bracketed shortcut name:
 +
-->{{#if:{{{1|}}}| {{#ifexist:{{{1|}}}||[[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]]}} }}<noinclude>
 +
 
 
{{pp-template|small=yes}}
 
{{pp-template|small=yes}}
{{documentation}}
+
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:12, 17 April 2008

Shortcut:

Template:Pp-template

Template documentation[create]