close
Sayahna Sayahna
Search

Difference between revisions of "Template:Template shortcut"


(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...")
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
+
<table class="shortcutbox shortcutbox-template plainlinks noprint" style="
Putting anchors on page:
+
{{#ifeq:{{{float|}}}|left
--><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:left; margin: .3em 1em .3em .3em;
<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"><!--
+
| float:right; margin: .3em .3em .3em 1em;
Adding the shortcut links:
+
}}{{#switch:{{{clear|}}}
--><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]:
+
| true = clear:{{{float|right}}};
  {{#if:{{{1|}}}|<ul><li> [[{{{1}}}]]</li>
+
| left|right|both = clear:{{{clear|}}};
}}{{#if:{{{2|}}}|<li> [[{{{2}}}]]</li>
+
| #default=
}}{{#if:{{{3|}}}|<li> [[{{{3}}}]]</li>
+
}} 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}}:
}}{{#if:{{{4|}}}|<li> [[{{{4}}}]]</li>
+
<div class="plainlist" style="font-size:120%;font-family:monospace">
}}{{#if:{{{5|}}}|<li> [[{{{5}}}]]</li>
+
* &#123;&#123;{{{pre|}}}{{#ifexist: Template:{{{1}}} |[{{fullurl:Template:{{{1}}}|redirect=no}} {{{1}}}] | [[Template:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]] }}&#125;&#125;<!--
}}{{#if:{{{6|}}}|<li> [[{{{6}}}]]</li>
+
-->{{#if:{{{2|}}}|
}}{{#if:{{{7|}}}|<li> [[{{{7}}}]]</li>
+
* &#123;&#123;{{{pre2|}}}{{#ifexist: Template:{{{2}}} |[{{fullurl:Template:{{{2}}}|redirect=no}} {{{2}}}] | [[Template:{{{2}}}|{{{2}}}]] }}&#125;&#125;}}<!--
}}{{#if:{{{8|}}}|<li> [[{{{8}}}]]</li>
+
-->{{#if:{{{3|}}}|
}}{{#if:{{{9|}}}|<li> [[{{{9}}}]]</li>
+
* &#123;&#123;{{{pre3|}}}{{#ifexist: Template:{{{3}}} |[{{fullurl:Template:{{{3}}}|redirect=no}} {{{3}}}] | [[Template:{{{3}}}|{{{3}}}]] }}&#125;&#125;}}<!--
}}{{#if:{{{10|}}}|<li> [[{{{10}}}]]</li>
+
-->{{#if:{{{4|}}}|
}}{{#if:{{{msg|}}}|<li> {{{msg}}}</li>
+
* &#123;&#123;{{{pre4|}}}{{#ifexist: Template:{{{4}}} |[{{fullurl:Template:{{{4}}}|redirect=no}} {{{4}}}] | [[Template:{{{4}}}|{{{4}}}]] }}&#125;&#125;}}<!--
}}</ul></small></th></tr></table><!--
+
-->{{#if:{{{5|}}}|
Reporting if the first parameter is not a valid non-bracketed shortcut name:
+
* &#123;&#123;{{{pre5|}}}{{#ifexist: Template:{{{5}}} |[{{fullurl:Template:{{{5}}}|redirect=no}} {{{5}}}] | [[Template:{{{5}}}|{{{5}}}]] }}&#125;&#125;}}<!--
-->{{#if:{{{1|}}}
+
-->{{#if:{{{6|}}}|
| {{#ifexist:{{{1|}}}
+
* &#123;&#123;{{{pre6|}}}{{#ifexist: Template:{{{6}}} |[{{fullurl:Template:{{{6}}}|redirect=no}} {{{6}}}] | [[Template:{{{6}}}|{{{6}}}]]
  |  
+
}}&#125;&#125;}}<!--
  | [[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]]
+
-->{{#if:{{{7|}}}|
  }}
+
* &#123;&#123;{{{pre7|}}}{{#ifexist: Template:{{{7}}} |[{{fullurl:Template:{{{7}}}|redirect=no}} {{{7}}}] | [[Template:{{{7}}}|{{{7}}}]]
}}<noinclude>
+
}}&#125;&#125;}}<!--
 +
-->{{#if:{{{8|}}}|
 +
* &#123;&#123;{{{pre8|}}}{{#ifexist: Template:{{{8}}} |[{{fullurl:Template:{{{8}}}|redirect=no}} {{{8}}}] | [[Template:{{{8}}}|{{{8}}}]]
 +
}}&#125;&#125;}}<!--
 +
-->{{#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>

Latest revision as of 07:26, 22 August 2014

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