Template:Template shortcut

Shortcut



This template displays one or more of a template's shortcuts (that is, redirects, also known as aliases, as in the box appearing at the right. is a shortcut to this template, , and can be used in its place, as it is in this documentation's source wikitext.

Usage
Place this template and its list of few to one, carefully selected shortcut(s) at the top of the template documentation page's wikitext, right underneath. In the saved, rendered text, those shortcuts will appear in this template's Shortcut(s) box, whose title will reflect the number of list items by automatically being singular or plural in form.

Which ones to display here
Although the template can show up to ten shortcuts, you are encouraged to choose well which ones to display in this template's box. Even if many redirects exist, two or three at the most is almost always enough. By keeping the number of redirects presented in the Shortcut box small, it makes it easier to remember them, and the documentation is kept well organized.

Where to list any others
List others in the Redirects section of the template documentation. Again, not all of them need to be listed; some shortcuts are there just for historical reasons, and others differ only in minor points such as white spaces or capitalization. Such shortcut-name variations are unnecessary to list at all—just list the standard, most common version of such a variation.

Optional parameters
This template has several optional parameters:


 * float – if set to "left", then the box will float to the left of the page, instead of the default float "right".
 * clear – if set to "right" (when float also is set to "right"), the box will be pushed to the right margin of the page, and prevent it from nest to the left of other right-floating elements.[clarification needed] Similarly, if set to "left" (when float also is set to "left"), the box will be pushed to the left margin of the page.
 * pre – can be used to show some text before the shortcut links, but within the braces. This is mostly used to add the text "subst:". This shows the proper syntax for using the template with substitution.
 * pre1, pre2 ... – like above, but adds the prefix only to the nth shortcut.

Examples of basic code
To display one template shortcut named :

Shortcut



To display three template shortcuts for named, , and :

Shortcuts



Example with the float parameter
Using  makes this template flow to the left of the page:

Shortcut



 Example with text ("subst:") within the braces
This is mostly used to add text to show how the template could be used with substitution.

Use  and   to show "subst:" before the shortcut links, but within the braces:

Shortcuts



If you use, it applies to all of the shortcuts:

Shortcuts