Information:Shortcut: Difference between revisions
imported>Deadfire m updating |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 1: | Line 1: | ||
{{Other uses| | {{Other uses|BattleIntelligence:Keyboard shortcuts}} | ||
{{pp-semi-vandalism|small=yes}}{{pp-move-indef}} | {{pp-semi-vandalism|small=yes}}{{pp-move-indef}} | ||
{{Information page|BTW:SC|BTW:SHORT|BTW:THIS|I:SHORT}} | {{Information page|BTW:SC|BTW:SHORT|BTW:THIS|I:SHORT}} | ||
A '''shortcut''' is a specialized type of [[ | A '''shortcut''' is a specialized type of [[BattleIntelligence:Redirect|redirect page]] that provides an abbreviated [[Help:Wikilinks|Wikilinks]] to an administrative page or one of its sections, usually from the [[BattleIntelligence:Project namespace|BattleIntelligence namespace]] or [[BattleIntelligence:Help namespace|Help namespace]]. These shortcuts' abbreviations in all-caps text are commonly used (linked or unlinked) on community pages and talk pages, but should not be used in articles themselves. If there are one or more shortcuts for a page or section, one or more will usually be chosen to be displayed in an information box on the right labelled ''Shortcut'' or ''Shortcuts'', as can be seen at the top of this page. | ||
Shortcuts are created for the convenience of editors. It is possible to create a shortcut for any page at all. | Shortcuts are created for the convenience of editors. It is possible to create a shortcut for any page at all. | ||
| Line 10: | Line 10: | ||
Lists of available shortcuts can be found using [[Special:PrefixIndex]]: | Lists of available shortcuts can be found using [[Special:PrefixIndex]]: | ||
* Namespace related: | * Namespace related: | ||
** [[Special:PrefixIndex/BTW:|BTW:]] - | ** [[Special:PrefixIndex/BTW:|BTW:]] - BattleIntelligence | ||
** [[Special:PrefixIndex/G:|G:]] - Guidelines | ** [[Special:PrefixIndex/G:|G:]] - Guidelines | ||
** [[Special:PrefixIndex/H:|H:]] - Help | ** [[Special:PrefixIndex/H:|H:]] - Help | ||
| Line 18: | Line 18: | ||
* Short form related: | * Short form related: | ||
** [[Special:PrefixIndex/CAT:|CAT:]] - Catagory | ** [[Special:PrefixIndex/CAT:|CAT:]] - Catagory | ||
** [[Special:PrefixIndex/MOS:|MOS:]] - | ** [[Special:PrefixIndex/MOS:|MOS:]] - BattleIntelligence:Manual of Style | ||
** [[Special:PrefixIndex/WP:|WP:]] - WikiProject | ** [[Special:PrefixIndex/WP:|WP:]] - WikiProject | ||
== How to use a | == How to use a BattleIntelligence shortcut == | ||
A | A BattleIntelligence shortcut can be entered into the BattleIntelligence search box to quickly bring you to a project page. For example, you can type '''BTW:R''' or '''H:R''' into the search box and then press the enter key (or click the magnifying glass icon), to get to the '''BattleIntelligence:Redirect''' page, instead of having to type in the complete phrase. | ||
Alternatively, you can use a shortcut in the [[w:URL|URL]] in your browser's address bar. For example, you are currently viewing the ''' | Alternatively, you can use a shortcut in the [[w:URL|URL]] in your browser's address bar. For example, you are currently viewing the '''BattleIntelligence:Shortcut''' page. The URL for this page is <span class="plainlinks">{{canonicalurl:BattleIntelligence:Shortcut}}</span>. You could then get from here to the '''BattleIntelligence:Redirect''' page by replacing '''BattleIntelligence:Shortcut''' with '''BTW:R''' in the address bar, followed by pressing the enter key. (If your browser has relative URL entry, simply prefix the shortcut with <kbd>./</kbd> instead of having to edit the existing URL.) | ||
Shortcuts are presented in all capital letters; however, the search box is [[w:case-insensitive|case-insensitive]]. For example, in the search box, you can type '''btw:r''', instead of '''BTW:R'''. However, when using the URL method (or when making [[Help:Link|links]]) it is necessary to match the capitalization of the shortcut itself. | Shortcuts are presented in all capital letters; however, the search box is [[w:case-insensitive|case-insensitive]]. For example, in the search box, you can type '''btw:r''', instead of '''BTW:R'''. However, when using the URL method (or when making [[Help:Link|links]]) it is necessary to match the capitalization of the shortcut itself. | ||
| Line 32: | Line 32: | ||
{{shortcut|BTW:LINKBOXES}} | {{shortcut|BTW:LINKBOXES}} | ||
Small link boxes, listing the names of the page's shortcuts, appear at the top of many pages, especially those on policies and guidelines. A shortcut link box can be added to a page, by placing the template '''{{Tlx|shortcut|BTW:<x>}}''' (for [[ | Small link boxes, listing the names of the page's shortcuts, appear at the top of many pages, especially those on policies and guidelines. A shortcut link box can be added to a page, by placing the template '''{{Tlx|shortcut|BTW:<x>}}''' (for [[BattleIntelligence:Project namespace|project namespace]]) or '''{{Tlx|shortcut|H:<x>}}''' (for Help pages) at the top of the page's text, while editing. For template redirects, '''{{tlx|Template shortcut}}''' is used instead. | ||
The point of these template boxes is not to list every single redirect for any given page (that's what [[Special:WhatLinksHere]] is for). Instead, they generally should list only the most common and easily remembered redirects. | The point of these template boxes is not to list every single redirect for any given page (that's what [[Special:WhatLinksHere]] is for). Instead, they generally should list only the most common and easily remembered redirects. | ||
[[ | [[BattleIntelligence:Policies and guidelines|Guideline]] pages with shortcuts pointing to them typically use '''{{Tlx|guideline|BTW:<x>}}''' or the '''{{tl|subcat guideline}}''' template, such as on this page, instead of the shortcut template '''{{Tlx|shortcut}}'''. Another frequently used template is: '''{{Tlx|MoS-guideline|MOS:<x>}}'''. | ||
To learn more about the different shortcut box templates and their functions, see documentation at {{tl|shortcut}}. Among other things, there are templates for making boxes flow to the left and now, anchors are automatically added, making it much simpler to link to a page section. | To learn more about the different shortcut box templates and their functions, see documentation at {{tl|shortcut}}. Among other things, there are templates for making boxes flow to the left and now, anchors are automatically added, making it much simpler to link to a page section. | ||
| Line 48: | Line 48: | ||
:{{code|PREFIX:SUFFIX}} | :{{code|PREFIX:SUFFIX}} | ||
In the above form, the prefix is typically one of the prefixes in the following section, and the suffix is an [[w:Acronym and initialism|acronym]] or [[ | In the above form, the prefix is typically one of the prefixes in the following section, and the suffix is an [[w:Acronym and initialism|acronym]] or [[BattleIntelligence:Manual of Style (abbreviations)|abbreviation]] of the redirect target. However quite a lot are simply [[BTW:BAD]]. | ||
Shortcuts that do not follow the above naming convention are discouraged, and are typically deleted. Before creating a shortcut, use [[Special:PrefixIndex]] to ensure that the same prefix is not being used for different purposes. | Shortcuts that do not follow the above naming convention are discouraged, and are typically deleted. Before creating a shortcut, use [[Special:PrefixIndex]] to ensure that the same prefix is not being used for different purposes. | ||
| Line 55: | Line 55: | ||
{{hatnote|Note: The following is an example. The shortcut BTW:TS already exists.}} | {{hatnote|Note: The following is an example. The shortcut BTW:TS already exists.}} | ||
When creating a shortcut, consider that many shortcuts are [[w:Acronym and initialism|acronyms or initialisms]]; others are [[ | When creating a shortcut, consider that many shortcuts are [[w:Acronym and initialism|acronyms or initialisms]]; others are [[BattleIntelligence:Manual of Style (abbreviations)|abbreviations]] or single but memorable words from a longer page title. Say you want to create the shortcut {{code|BTW:SHORT}} to the existing page [[BattleIntelligence:Shortcut]]. | ||
#Create the new page [[BTW:SHORT]], without yet publishing it. | #Create the new page [[BTW:SHORT]], without yet publishing it. | ||
#Place the following in said page: <code><syntaxhighlight lang="wikitext">#REDIRECT [[ | #Place the following in said page: <code><syntaxhighlight lang="wikitext">#REDIRECT [[BattleIntelligence:Shortcut]] | ||
{{R from shortcut}}</syntaxhighlight></code> | {{R from shortcut}}</syntaxhighlight></code> | ||
#*The resulting shortcut will be [[BTW:SHORT]]. | #*The resulting shortcut will be [[BTW:SHORT]]. | ||
| Line 70: | Line 70: | ||
{{R from shortcut}}</syntaxhighlight> | {{R from shortcut}}</syntaxhighlight> | ||
The template {{tlx|R from shortcut}} must always be included in this kind of redirect. It records that the redirect is a shortcut, and auto-categorizes it into [[:Category:Redirects from shortcuts]]. {{crossref|(See [[ | The template {{tlx|R from shortcut}} must always be included in this kind of redirect. It records that the redirect is a shortcut, and auto-categorizes it into [[:Category:Redirects from shortcuts]]. {{crossref|(See [[BattleIntelligence:Template index/Redirect pages]] for more information on categories of redirects.)}} | ||
== Limitations == | == Limitations == | ||
| Line 78: | Line 78: | ||
== See also == | == See also == | ||
* [[ | * [[BattleIntelligence:Redirect]] | ||
* [[Meta:Meta:Shortcut]] (m:WM:WM), shortcuts on Meta | * [[Meta:Meta:Shortcut]] (m:WM:WM), shortcuts on Meta | ||
* [[Meta:Special:URLShortener]], for creating global shortcuts to WMF project pages | * [[Meta:Special:URLShortener]], for creating global shortcuts to WMF project pages | ||
* [[:Category:Redirects from shortcuts]] | * [[:Category:Redirects from shortcuts]] | ||
{{ | {{BattleIntelligence policies and guidelines}} | ||
[[Category: | [[Category:BattleIntelligence features]] | ||
[[Category:Information pages]] | [[Category:Information pages]] | ||
Latest revision as of 21:13, 30 April 2025
This is an information page. It is not one of BattleIntelligence's policies or guidelines, but rather intends to describe some aspect(s) of BattleIntelligence's norms, customs, technicalities, or practices. It may reflect varying levels of consensus and vetting. |
A shortcut is a specialized type of redirect page that provides an abbreviated Wikilinks to an administrative page or one of its sections, usually from the BattleIntelligence namespace or Help namespace. These shortcuts' abbreviations in all-caps text are commonly used (linked or unlinked) on community pages and talk pages, but should not be used in articles themselves. If there are one or more shortcuts for a page or section, one or more will usually be chosen to be displayed in an information box on the right labelled Shortcut or Shortcuts, as can be seen at the top of this page.
Shortcuts are created for the convenience of editors. It is possible to create a shortcut for any page at all.
Quick reference
Lists of available shortcuts can be found using Special:PrefixIndex:
- Namespace related:
How to use a BattleIntelligence shortcut
A BattleIntelligence shortcut can be entered into the BattleIntelligence search box to quickly bring you to a project page. For example, you can type BTW:R or H:R into the search box and then press the enter key (or click the magnifying glass icon), to get to the BattleIntelligence:Redirect page, instead of having to type in the complete phrase.
Alternatively, you can use a shortcut in the URL in your browser's address bar. For example, you are currently viewing the BattleIntelligence:Shortcut page. The URL for this page is https://battleint.net/index.php/BattleIntelligence:Shortcut. You could then get from here to the BattleIntelligence:Redirect page by replacing BattleIntelligence:Shortcut with BTW:R in the address bar, followed by pressing the enter key. (If your browser has relative URL entry, simply prefix the shortcut with ./ instead of having to edit the existing URL.)
Shortcuts are presented in all capital letters; however, the search box is case-insensitive. For example, in the search box, you can type btw:r, instead of BTW:R. However, when using the URL method (or when making links) it is necessary to match the capitalization of the shortcut itself.
Link boxes
Small link boxes, listing the names of the page's shortcuts, appear at the top of many pages, especially those on policies and guidelines. A shortcut link box can be added to a page, by placing the template {{shortcut|BTW:<x>}} (for project namespace) or {{shortcut|H:<x>}} (for Help pages) at the top of the page's text, while editing. For template redirects, {{Template shortcut}} is used instead.
The point of these template boxes is not to list every single redirect for any given page (that's what Special:WhatLinksHere is for). Instead, they generally should list only the most common and easily remembered redirects.
Guideline pages with shortcuts pointing to them typically use {{guideline|BTW:<x>}} or the {{subcat guideline}} template, such as on this page, instead of the shortcut template {{shortcut}}. Another frequently used template is: {{MoS-guideline|MOS:<x>}}.
To learn more about the different shortcut box templates and their functions, see documentation at {{shortcut}}. Among other things, there are templates for making boxes flow to the left and now, anchors are automatically added, making it much simpler to link to a page section.
Shortcut names
Shortcut names are almost always in uppercase.
A shortcut is typically named using the following convention:
PREFIX:SUFFIX
In the above form, the prefix is typically one of the prefixes in the following section, and the suffix is an acronym or abbreviation of the redirect target. However quite a lot are simply BTW:BAD.
Shortcuts that do not follow the above naming convention are discouraged, and are typically deleted. Before creating a shortcut, use Special:PrefixIndex to ensure that the same prefix is not being used for different purposes.
How to create a shortcut
When creating a shortcut, consider that many shortcuts are acronyms or initialisms; others are abbreviations or single but memorable words from a longer page title. Say you want to create the shortcut BTW:SHORT to the existing page BattleIntelligence:Shortcut.
- Create the new page BTW:SHORT, without yet publishing it.
- Place the following in said page:
#REDIRECT [[BattleIntelligence:Shortcut]] {{R from shortcut}}- The resulting shortcut will be BTW:SHORT.
- Place the template
{{shortcut|BTW:SHORT}}below the heading you created the shortcut for. - Publish the shortcut page.
- Finally, check if it works.
If you're creating a shortcut to a category, you need to insert an additional colon (":") at the beginning of the link, as in the following.
#REDIRECT [[:Category:Redirects from shortcuts]]
{{R from shortcut}}The template {{R from shortcut}} must always be included in this kind of redirect. It records that the redirect is a shortcut, and auto-categorizes it into Category:Redirects from shortcuts.
Limitations
Redirects (including shortcuts) to pages on other projects and special pages won't work—this formerly supported feature was abused and hence it has been disabled. The software will display the redirect page instead of redirecting the user to the target.
Some redirects to other projects and special pages use the template {{soft redirect}}; however, shortcuts that are soft redirects will appear in the pool of pages that are selected by Special:Random. Soft redirects are categorised into Category:Soft redirects.
See also
- BattleIntelligence:Redirect
- Meta:Meta:Shortcut (m:WM:WM), shortcuts on Meta
- Meta:Special:URLShortener, for creating global shortcuts to WMF project pages
- Category:Redirects from shortcuts