Template:Shortcut/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
m (Minor edit; attempted to rem a "</div>".)
Current revision (12:27, February 10, 2011) (edit) (undo)
m (Added __NOEDITSECTION__)
 
(One intermediate revision not shown.)
Line 2: Line 2:
{{documentation subpage}}
{{documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 +
__NOEDITSECTION__
{{tl|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:''' {{tl|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.
{{tl|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:''' {{tl|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.
Line 7: Line 8:
==Copy-and-paste==
==Copy-and-paste==
<pre>{{Shorcut|[[Foo]]}}</pre>
<pre>{{Shorcut|[[Foo]]}}</pre>
-
will result in (see the shortcut box to the right)...{{Shortcut|[[Foo]]}}{{Clear}}
 
===Variable===
===Variable===

Current revision

This is the documentation page for Template:Shortcut/doc.
When viewed directly, links using variables may appear broken; do not replace these with hard-coded page names or URLs.


This documentation is transcluded from Template:Shortcut/doc/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...
....so, give this due consideration when creating the shortcut.
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

Special pages

Personal tools
language