Template:Shortcut: Difference between revisions
m (1 revision: import from en.wikipedia) |
m (Text replacement - "<[bB][rR]>" to "<br />") |
||
Line 3: | Line 3: | ||
-->{{#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> }}<!-- | -->{{#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: | Adding the shortcut links: | ||
--><small>[[Wikipedia: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></th></tr></table><!-- | --><small>[[Wikipedia: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></th></tr></table><!-- | ||
Reporting if the first parameter is not a valid non-bracketed shortcut name: | Reporting if the first parameter is not a valid non-bracketed shortcut name: | ||
-->{{#if:{{{1|}}} | -->{{#if:{{{1|}}} |
Latest revision as of 11:23, 5 October 2015
Template:Template doc page transcluded
Usage
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. The point of this template is not to list every single redirect (indeed, that's what Special:Whatlinkshere is for); for any given page, it should list only one or two common and easily-remembered redirects.
Don't 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, by default every template uses its own name as a shortcut.
Template usage
Please use {{template shortcut}} to indicate convenient template redirects, which is specifically intended for that purpose.