Template:Shortcut: Difference between revisions
No edit summary |
No edit summary |
||
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>[[ | --><small>[[AEWiki: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: | Reporting if the first parameter is not a valid non-bracketed shortcut name: | ||
-->{{#if:{{{1|}}} | -->{{#if:{{{1|}}} |
Latest revision as of 03:03, 4 February 2023
This is the documentation for {{shortcut}} and its sister templates.
{{shortcut-l}} flows to the left of the page and {{shortcut}} flows to the right.
Usage[edit source]
These templates are mainly used on pages and talk pages in the AEWiki, Help and Portal namespaces. These templates inform about the shortcuts available to the page they are on. For example, MW:SHORT redirects to AEWiki:Shortcut and therefore AEWiki:Shortcut has a shortcut box listing MW:SHORT.
The point of these templates is not to list every single redirect (indeed, that's what Special:Whatlinkshere is for); for any given page, instead they should list only one or two common and easily-remembered redirects.
These templates can take up to 5 shortcuts as parameters.
For policy pages you can use {{policy shortcut}} which takes up to 10 shortcuts as parameters.
Examples[edit source]
Code | Result |
---|---|
{{Shortcut|MW:SHORT}}
|
|
{{Shortcut|MW:V|MW:VERIFY|MW:SOURCE}}
|
Anchors[edit source]
These boxes automatically adds anchors. If a shortcut box with the shortcut AE:SHORT is placed on the page AEWiki:Shortcut then the link AEWiki:Shortcut#AE:SHORT will take you to the position in the page where that shortcut box is placed.
For instance, try this link: Template:Shortcut#AE:SHORT
Thus if you make a shortcut for a section of a page then you can use the anchor in the shortcut redirect. Like this:
#REDIRECT [[Pagename#AE:SHORT]] {{R from shortcut}}
See also[edit source]
- AEWiki:Shortcut – The how-to guide and guideline about how and when to create shortcuts and shortcut boxes. A must-read for anyone handling shortcuts.
- {{shortcut-l}} – For left aligned normal shortcuts.
- {{policy shortcut}} – For shortcuts to sections of policy pages.
- {{template shortcut}} – Use this one to show the names of shortcuts/redirects to a template.