shortcut: {{R to project}}
Template:R to project namespace: Difference between revisions
Jump to navigation
Jump to search
m remove {{under discussion inline|talkpage=Template talk:R_to_project_namespace#RfC:_Should_we_categorize_redirects_to_the_same_namespace?}} |
Richardpruen (talk | contribs) m 1 revision imported: template update |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{This is a redirect/rcat}} | <noinclude>{{This is a redirect/rcat}} | ||
</noinclude>{{Redirect template | </noinclude>{{#if: {{#invoke:redirect|isRedirect|{{FULLPAGENAME}}}}{{#ifeq:{{FULLPAGENAME}}|Template:R to project namespace|yes|}} |{{Redirect template | ||
|id=R to project namespace | |id=R to project namespace | ||
|name=To a project page | |name=To a project page | ||
|from=''any'' page '''inside''' or '''outside''' of [[Wikipedia:Project namespace|project (Wikipedia: or WP:) space]] | |from=''any'' page '''inside''' or '''outside''' of [[Wikipedia:Project namespace|project (Wikipedia: or WP:) space]] | ||
|to=any page in the project [[Wikipedia:Namespace|namespace]] | |to=any page in the project [[Wikipedia:Namespace|namespace]] | ||
|info=The above category link leads to a list of redirects from inside project space. | |info=The above category link leads to a list of redirects from inside project space. Redirects from outside project space are automatically sorted to '''{{cat|Redirects to project namespace}}'''. | ||
|wikipedia category=Redirects to Wikipedia project pages | |wikipedia category={{#ifeq:{{{nocat}}}|yes||Redirects to Wikipedia project pages}} | ||
|other category=Redirects to project | |other category={{#ifeq:{{{nocat}}}|yes||{{{other category|Redirects to project namespace}}}}} | ||
|printworthy=no | |printworthy=no | ||
}}<noinclude> | }}<includeonly>{{#ifeq: {{BASEPAGENAME}}|R to project namespace||{{#ifeq: {{NAMESPACE:{{#invoke:redirect|main|{{FULLPAGENAME}}}}}}|{{ns:4}}||{{info|image=Stop hand nuvola.svg|{{error|The above template is being used incorrectly. Please remove it from this redirect.}}}}[[category:Pages with incorrectly transcluded templates]]}}}}</includeonly>}}<noinclude> | ||
<!-- Place categories on /doc subpage; interwikis go to Wikidata. --> | <!-- Place categories on /doc subpage; interwikis go to Wikidata. --> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 14:52, 10 December 2024
When used with the "Redirect category shell" (Rcat shell) template:
|
- Template {{Redirect category shell}} may be used to add one or more rcat templates, along with their parameters and categories, to a redirect. For more information see the documentation page below.
When used by itself:
- To a project page: This is a redirect from any page inside or outside of project (Wikipedia: or WP:) space to any page in the project namespace. The above category link leads to a list of redirects from inside project space. Redirects from outside project space are automatically sorted to Category:Redirects to project namespace.
This template is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be substituted nor used to tag soft redirects. |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as the standard installation of Twinkle adds and removes this template. Thank you! |
Purpose
This redirect category (rcat) template sorts redirect pages into one of two categories:
- Category:Redirects to project space – for pseudo-namespace redirects (PNRs) (for example, MOS:) and cross-namespace redirects (CNRs), or
- Category:Redirects to Wikipedia project pages – for project namespace redirects (for example, Wikipedia: or its shortcut, WP:) to other project pages
This rcat template also populates the following:
- 3. Category:Unprintworthy redirects – only redirects from main-article namespace (mainspace)
- In 2003, efforts were begun to support the Wikimedia Foundation's goal of increasing access and availability of Wikipedia articles in printed versions. Mainspace redirects that target pages in the Wikipedia project namespace are not suitable for a printed version. In other words, they are unprintworthy.
Please do not alter the printworthy settings of this rcat without first notifying the Version 1.0 Editorial Team, who are responsible for any and all materials, including redirects, that go into a printed version of Wikipedia.
Usage
Use this rcat template in any namespace including project (Wikipedia) namespace.
- Apply this rcat template to a redirect page by using the following wikitext:
#REDIRECT [[Wikipedia:(target page name)]] {{Rcat shell| {{R to project namespace}} }}
- and when the redirect is in article mainspace, printworthiness should also be tagged:
#REDIRECT [[Wikipedia:(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 [[Wikipedia:(target page name)]] {{R to project namespace}}
- This is in accord with instructions found at Wikipedia:REDCAT.
- Use this rcat template to tag any redirect page to a page in the project (Wikipedia: or WP:) 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.
Aliases
- Also known as... – list of templates that redirect here and may also be used
See also
Redirects to other namespaces family:
Note: three rcat templates in italics also sort redirects from within their namespaces.