Template:Shortcut
From MeritBadgeDotOrg
(formatting) |
(formatting) |
||
Line 1: | Line 1: | ||
- | {{{1{{{1|}}}|<table style="border: 1px solid #999; background: #E0FFFF; margin: .25em .25em .25em .25em; padding: 3px; float: right" class="noprint"><th id="shortcut" align="center" valign="top"><small> | + | {{{1{{{1|}}}|<table style="border: 1px solid #999; background: #E0FFFF; margin: .25em .25em .25em .25em; padding: 3px; float: right" class="noprint"><th id="shortcut" align="center" valign="top"><small>Shortcut:<br />{{{1|}}}</small></table>}}}<includeonly>[[Category:Shortcuts|{{PAGENAME}}]]</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
[[Category:Templates|{{PAGENAME}}]]</noinclude> | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Current revision
- This documentation is transcluded from Template:Shortcut/doc.
This template may have a sandbox (edit) and testcases for editors to experiment.
{{Shortcut}} is used to display a short alias for the given page. Shortcuts should be created and used sparingly, lest they loose their standing. The point of this template is not to list all redirects. (See Special:Whatlinkshere and Special:Listredirects.) Instead, shortcuts should only display one (no more than two) very short, common and easily-remembered aliases, which (internally) makes use of redirects. Note: {{Shortcut}} does not create the shortcut itself; it only displays the shortcut in a standardized format on the destination page. The variable parameter is the alias link to the desired destination page.
Contents |
Usage
Copy-and-paste
{{Shorcut|[[Foo]]}}
Variable
The variable in this use of this template is the alias link you want displayed... e.g., [[Foo]]. Remember, this variable is a reference to an internal link, so... don't forget to place the internal link brackets ( [[ and ]] ) around the the text in order to create the link.
Examples
In the Main (a.k.a., Article) namespace:
- Frequently-accessed article pages...
- Or, shortening long page titles...
In other namespaces, specifically... Category, Help and MeritBadgeDotOrg (a.k.a., Project):
![]() | Unless approved an Administrator, shortcuts should not be created/used in User or Talk namespaces. |
Notes
- 1. Using shortcuts (in the search box) is not case-sensitive, but creating them is...
- 2. Do not use {{Shortcut}} on other templates, e.g. the shortcut to Template:Foo is, in fact, {{Foo}}. By default, every template uses its own name as a shortcut.
See also
Related templates
- {{Shortcutleft}} is identical to {{Shortcut}}, but displays on the left.
- {{Template shortcut}} is for template redirects, which is specifically written for that purpose.
Special pages
- Special:Listredirects — Lists all redirects on the entire site, whether they are shortcuts, or not.
- Special:Whatlinkshere — Only lists pages that link to the page you are currently viewing.