Difference between revisions of "Template:Shortcut"

From WikiChem
Jump to: navigation, search
(remove header)
(Importing from http://en.wikipedia.org/w/index.php?title=Template:Shortcut&oldid=268284820)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>This template is primarily used on Wikipedia guideline and policy pages to show the shortest alias of a given page. For example, [[WP:SHORT]] redirects to [[Wikipedia:Shortcut]]
+
<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;"><!--
 +
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>[[WikiChem:Shortcuts|Shortcut{{#if:{{{2|}}}|s}}]]: {{#if:{{{1|}}}|<br> [[{{{1}}}]] }}{{#if:{{{2|}}}|<br> [[{{{2}}}]] }}{{#if:{{{3|}}}|<br> [[{{{3}}}]] }}{{#if:{{{4|}}}|<br> [[{{{4}}}]] }}{{#if:{{{5|}}}|<br> [[{{{5}}}]] }}</small></th></tr></table><!--
 +
Reporting if the first parameter is not a valid non-bracketed shortcut name:
 +
-->{{#if:{{{1|}}}
 +
| {{#ifexist:{{{1|}}}
 +
  |
 +
  | [[Category:Shortcut box first parameter needs fixing|{{PAGENAME}}]]
 +
  }}
 +
}}<noinclude>
  
Please '''do not use''' this template on other templates, e.g. to state that the shortcut to [[Template:Foo]] is in fact <nowiki>{{Foo}}</nowiki>. There's no need to state the obvious like that, '''each''' template uses its own name as a shortcut, by default.
+
{{Documentation}}
[[Category:Wikipedia header templates|{{PAGENAME}}]]
 
[[Category:Pages copied from EN wikipedia]]
 
 
 
[[als:Vorlage:Shortcut]]
 
[[de:Vorlage:Shortcut]]
 
[[eo:Ŝablono:Mallongigo]]
 
[[he:תבנית:קיצור דרך]]
 
[[hu:Sablon:Rövidítés]]
 
[[sl:Predloga:Bližnjica]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 16:14, 13 August 2009

Shortcut:
[edit] [purge] Template-info-500px.png Template documentation


Usage

This template is primarily used on WikiChem guideline and policy pages to show the shortest alias of a given page. For example, WC:SHORT redirects to WikiChem:Shortcuts

Please do not use this template on other templates, e.g. to state that the shortcut to Template:Foo is in fact {{Foo}}. There's no need to state the obvious like that, each template uses its own name as a shortcut, by default.

Parameters

Examples

See also

Error creating thumbnail: Unable to save thumbnail to destination
Wikipedia-logo.png This template was originally imported from Wikipedia, specifically this version of the template "Template:Shortcut". Please see the history page on Wikipedia for the original authors. This WikiChem template may have been modified since it was imported. It is licensed under the Creative Commons Attribution–Share Alike 3.0 Unported license.