close
Sayahna Sayahna
Search

Difference between revisions of "Template:Template shortcut"


(support 10 shortcuts)
 
(Created page with "<!-- Putting anchors on page: --><div style="position: relative; top: -3em;">{{#if:{{{1|}}}|<span id="{{anchorencode:{{{1|}}}}}"></span> }}{{#if:{{{2|}}}|<span id="{{anchorenc...")
Line 1: Line 1:
<table class="shortcutbox shortcutbox-template plainlinks noprint" style="
+
<!--
{{#ifeq:{{{float|}}}|left
+
Putting anchors on page:
| float:left; margin: .3em 1em .3em .3em;
+
--><div style="position: relative; top: -3em;">{{#if:{{{1|}}}|<span id="{{anchorencode:{{{1|}}}}}"></span> }}{{#if:{{{2|}}}|<span id="{{anchorencode:{{{2|}}}}}"></span> }}{{#if:{{{3|}}}|<span id="{{anchorencode:{{{3|}}}}}"></span> }}{{#if:{{{4|}}}|<span id="{{anchorencode:{{{4|}}}}}"></span> }}{{#if:{{{5|}}}|<span id="{{anchorencode:{{{5|}}}}}"></span> }}</div>
| float:right; margin: .3em .3em .3em 1em;
+
<table class="shortcutbox noprint" style="float: right; border: 1px solid #aaa; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;" class="plainlist"><!--
}}
+
Adding the shortcut links:
border:1px solid #aaa; background:#fff; padding:3px; text-align:center;"><tr><th style="border:none; background:transparent;font-size:85%">Shortcut{{#if:{{{2|}}}|s}}:
+
--><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]:
<div class="plainlist" style="font-size:120%;font-family:monospace">
+
  {{#if:{{{1|}}}|<ul><li> [[{{{1}}}]]</li>
* &#123;&#123;{{{pre|}}}{{#ifexist: Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{{1}}}] | [[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]] }}&#125;&#125;<!--
+
}}{{#if:{{{2|}}}|<li> [[{{{2}}}]]</li>
-->{{#if:{{{2|}}}|
+
}}{{#if:{{{3|}}}|<li> [[{{{3}}}]]</li>
* &#123;&#123;{{{pre2|}}}{{#ifexist: Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{{2}}}] | [[Template:{{{2}}}|{{{2}}}]] }}&#125;&#125;}}<!--
+
}}{{#if:{{{4|}}}|<li> [[{{{4}}}]]</li>
-->{{#if:{{{3|}}}|
+
}}{{#if:{{{5|}}}|<li> [[{{{5}}}]]</li>
* &#123;&#123;{{{pre3|}}}{{#ifexist: Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{{3}}}] | [[Template:{{{3}}}|{{{3}}}]] }}&#125;&#125;}}<!--
+
}}{{#if:{{{6|}}}|<li> [[{{{6}}}]]</li>
-->{{#if:{{{4|}}}|
+
}}{{#if:{{{7|}}}|<li> [[{{{7}}}]]</li>
* &#123;&#123;{{{pre4|}}}{{#ifexist: Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{{4}}}] | [[Template:{{{4}}}|{{{4}}}]] }}&#125;&#125;}}<!--
+
}}{{#if:{{{8|}}}|<li> [[{{{8}}}]]</li>
-->{{#if:{{{5|}}}|
+
}}{{#if:{{{9|}}}|<li> [[{{{9}}}]]</li>
* &#123;&#123;{{{pre5|}}}{{#ifexist: Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{{5}}}] | [[Template:{{{5}}}|{{{5}}}]] }}&#125;&#125;}}<!--
+
}}{{#if:{{{10|}}}|<li> [[{{{10}}}]]</li>
-->{{#if:{{{6|}}}|
+
}}{{#if:{{{msg|}}}|<li> {{{msg}}}</li>
* &#123;&#123;{{{pre6|}}}{{#ifexist: Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{{6}}}] | [[Template:{{{6}}}|{{{6}}}]]
+
}}</ul></small></th></tr></table><!--
}}&#125;&#125;}}<!--
+
Reporting if the first parameter is not a valid non-bracketed shortcut name:
-->{{#if:{{{7|}}}|
+
-->{{#if:{{{1|}}}
* &#123;&#123;{{{pre7|}}}{{#ifexist: Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{{7}}}] | [[Template:{{{7}}}|{{{7}}}]]
+
| {{#ifexist:{{{1|}}}
}}&#125;&#125;}}<!--
+
  |  
-->{{#if:{{{8|}}}|
+
  | [[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]]
* &#123;&#123;{{{pre8|}}}{{#ifexist: Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{{8}}}] | [[Template:{{{8}}}|{{{8}}}]]
+
  }}
}}&#125;&#125;}}<!--
+
}}<noinclude>
-->{{#if:{{{9|}}}|
 
* &#123;&#123;{{{pre9|}}}{{#ifexist: Template:{{{9}}} |[{{fullurl:Template:{{{9}}}|redirect=no}} {{{9}}}] | [[Template:{{{9}}}|{{{9}}}]]
 
}}&#125;&#125;}}<!--
 
-->{{#if:{{{10|}}}|
 
* &#123;&#123;{{{pre10|}}}{{#ifexist: Template:{{{10}}} |[{{fullurl:Template:{{{10}}}|redirect=no}} {{{10}}}] | [[Template:{{{10}}}|{{{10}}}]]
 
}}&#125;&#125;}}</div></th></tr></table><noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 02:22, 22 March 2014

Shortcut:
Documentation icon Template documentation[view] [edit] [history] [purge]
  1. REDIRECT Template:Shortcut/doc