Difference between revisions of "Template:Shortcut"

From Pensapedia, the Pensacola encyclopedia
Jump to navigation Jump to search
 
m (Protected "Template:Shortcut" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{protected template}}</noinclude>{{{1{{{1|}}}|
+
<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;"><!--
<table style="border: 1px solid #999; background: #fff; margin: .5em .5em .5em 1em; padding: 5px; float: right" class="noprint">
+
Putting anchors on page:
<th id="shortcut" class="noprint" align="center" valign="top"><small>[[Pensapedia:Shortcut|Shortcut]]:<br />{{{1|}}}</small>
+
-->{{#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> }}<!--
</table>}}}<noinclude>
+
Adding the shortcut links:
 +
--><small>[[Pensapedia:Shortcut|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></table><!--
 +
Reporting if the first parameter is not a valid non-bracketed shortcut name:
 +
-->{{#if:{{{1|}}}
 +
| {{#ifexist:{{{1|}}}
 +
  |
 +
  | [[Category:Pensapedia shortcut box first parameter needs fixing|{{PAGENAME}}]]
 +
  }}
 +
}}<noinclude>
 
==Usage==
 
==Usage==
This template is primarily used on Pensapedia guideline and policy pages to show the shortest alias of a given page. For example, [[WP:SHORT]] redirects to [[Pensapedia:Shortcut]]
+
This template is primarily used on Pensapedia guideline and policy pages to show the shortest alias of a given page. For example, [[PP:SHORT]] redirects to [[Pensapedia:Shortcut]]
  
 
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.
 
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.
 
[[Category:Pensapedia header templates|{{PAGENAME}}]]
 
[[Category:Pensapedia header templates|{{PAGENAME}}]]
 +
</noinclude>

Latest revision as of 14:18, 25 April 2011

Shortcut:

Usage

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

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.