Template:R to project namespace/doc: Difference between revisions
Appearance
imported>Deadfire m updating |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --> | <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --> | ||
{{Substitution|not|nor used to tag [[ | {{Substitution|not|nor used to tag [[BattleIntelligence:Soft redirects|soft redirects]]}} | ||
{{tsh|r to project}} | {{tsh|r to project}} | ||
| Line 8: | Line 8: | ||
This redirect category ([[BTW:RCAT|rcat]]) template sorts redirect pages into one of two categories: | This redirect category ([[BTW:RCAT|rcat]]) template sorts redirect pages into one of two categories: | ||
# {{Cat|Redirects to project namespace}} – for pseudo-namespace redirects (PNRs) (for example, MOS:) and cross-namespace redirects (CNRs), or | # {{Cat|Redirects to project namespace}} – for pseudo-namespace redirects (PNRs) (for example, MOS:) and cross-namespace redirects (CNRs), or | ||
# {{Cat|Redirects to | # {{Cat|Redirects to BattleIntelligence project pages}} – for [[BTW:PRJ|project namespace]] redirects (for example, BattleIntelligence: or its shortcut, BTW:) to other project pages | ||
This rcat template also populates the following: | This rcat template also populates the following: | ||
: 3. {{Cat|Unprintworthy redirects}} – only redirects from [[BTW:NS0|main-article namespace (mainspace)]] | : 3. {{Cat|Unprintworthy redirects}} – only redirects from [[BTW:NS0|main-article namespace (mainspace)]] | ||
=== Usage === | === Usage === | ||
{{hatnote|Use this rcat template in '''any [[BTW:namespace|namespace]] including [[BTW:PRJ|project ( | {{hatnote|Use this rcat template in '''any [[BTW:namespace|namespace]] including [[BTW:PRJ|project (BattleIntelligence)]] namespace'''.}} | ||
* Apply this rcat template to a redirect page by using the following [[Help:Link|wikitext]]: | * Apply this rcat template to a redirect page by using the following [[Help:Link|wikitext]]: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
#REDIRECT [[ | #REDIRECT [[BattleIntelligence:(target page name)]] | ||
{{Rcat shell| | {{Rcat shell| | ||
| Line 24: | Line 24: | ||
: and ''when the redirect is in article mainspace'', printworthiness should also be tagged: | : and ''when the redirect is in article mainspace'', printworthiness should also be tagged: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
#REDIRECT [[ | #REDIRECT [[BattleIntelligence:(target page name)]] | ||
{{Rcat shell| | {{Rcat shell| | ||
| Line 33: | Line 33: | ||
: Template {{tl|Rcat shell}} is an alias for the ''Redirect category shell'' template, which may be used to add as many appropriate rcat templates and their parameters as needed to a redirect, usually from one to seven. For more information, see the documentation on its template page. This rcat may also tag a redirect individually: | : Template {{tl|Rcat shell}} is an alias for the ''Redirect category shell'' template, which may be used to add as many appropriate rcat templates and their parameters as needed to a redirect, usually from one to seven. For more information, see the documentation on its template page. This rcat may also tag a redirect individually: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
#REDIRECT [[ | #REDIRECT [[BattleIntelligence:(target page name)]] | ||
{{R to project namespace}} | {{R to project namespace}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Use this rcat template to tag any redirect page to a page in the [[BTW:PRJ|project ( | * Use this rcat template to tag any redirect page to a page in the [[BTW:PRJ|project (BattleIntelligence: or BTW:) namespace]], whether the redirect page itself is in project namespace or in any other namespace. These redirect pages will automatically be sorted as either inside or outside of project namespace. | ||
=== See also === | === See also === | ||
| Line 44: | Line 44: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | <!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> | ||
[[Category:Redirect templates|Project, | [[Category:Redirect templates|Project, BattleIntelligence]] | ||
[[Category:Redirects to project namespace| ]] | [[Category:Redirects to project namespace| ]] | ||
[[Category:Redirects to project pages| ]] | [[Category:Redirects to project pages| ]] | ||
[[Category:Templates for redirects to specific namespaces|Project, | [[Category:Templates for redirects to specific namespaces|Project, BattleIntelligence]] | ||
[[Category:Templates for unprintworthy redirects|Project, | [[Category:Templates for unprintworthy redirects|Project, BattleIntelligence]] | ||
[[Category:Unprintworthy redirects| ]] | [[Category:Unprintworthy redirects| ]] | ||
[[Category:Templates for redirects by namespaces]] | [[Category:Templates for redirects by namespaces]] | ||
[[Category:Other namespace redirect templates]]}}</includeonly> <noinclude> | [[Category:Other namespace redirect templates]]}}</includeonly> <noinclude> | ||
[[Category:Redirect category template documentation pages|Project, | [[Category:Redirect category template documentation pages|Project, BattleIntelligence]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 01:08, 1 May 2025
| This is a documentation subpage for Template:R to project namespace. It may contain usage information, categories and other content that is not part of the original template page. |
| This template should not be substituted nor used to tag soft redirects. |
Purpose
This redirect category (rcat) template sorts redirect pages into one of two categories:
- Category:Redirects to project namespace – for pseudo-namespace redirects (PNRs) (for example, MOS:) and cross-namespace redirects (CNRs), or
- Category:Redirects to BattleIntelligence project pages – for project namespace redirects (for example, BattleIntelligence: or its shortcut, BTW:) to other project pages
This rcat template also populates the following:
- 3. Category:Unprintworthy redirects – only redirects from main-article namespace (mainspace)
Usage
- Apply this rcat template to a redirect page by using the following wikitext:
#REDIRECT [[BattleIntelligence:(target page name)]]
{{Rcat shell|
{{R to project namespace}}
}}- and when the redirect is in article mainspace, printworthiness should also be tagged:
#REDIRECT [[BattleIntelligence:(target page name)]]
{{Rcat shell|
{{R to project namespace}}
{{R unprintworthy}}
}}- Template {{Rcat shell}} is an alias for the Redirect category shell template, which may be used to add as many appropriate rcat templates and their parameters as needed to a redirect, usually from one to seven. For more information, see the documentation on its template page. This rcat may also tag a redirect individually:
#REDIRECT [[BattleIntelligence:(target page name)]]
{{R to project namespace}}- Use this rcat template to tag any redirect page to a page in the project (BattleIntelligence: or BTW:) namespace, whether the redirect page itself is in project namespace or in any other namespace. These redirect pages will automatically be sorted as either inside or outside of project namespace.
See also
Redirects to other namespaces family:
- {{R to main namespace}}
- {{R to talk page}}
- {{R to user namespace}}
- {{R to project namespace}}
- {{R to template namespace}}
- {{R to help namespace}}
- {{R to category namespace}}
- {{R to policy namespace}}
- {{R to draft namespace}}
- {{R to portal namespace}}
- {{R to guideline namespace}}
- {{R to information namespace}}
Note: three rcat templates in italics also sort redirects from within their namespaces.