Template:R to main namespace/doc: Difference between revisions

Content deleted Content added
Usage: clarify
m Add namespace-specific categories
 
(31 intermediate revisions by 6 users not shown)
Line 1:
{{Documentation subpage}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
{{Substitution|not}}
{{Substitution|not|nor used to tag [[Wikipedia:Soft redirects|soft redirects]]}}
{{Tsh|R to main}}
{{Twinkle standard installation}}
{{Tsh|R to mainspace|R to main}}
__NOTOC__
===Purpose===
This redirect category template ([[WP:RCAT|Rcatrcat]]) automaticallytemplate sorts redirects into one category:
* [[:Category:{{Cat|Redirects to the main namespace]]}} – (for [[WP:CNR|cross-namespace redirects]])
 
=== Usage ===
{{hatnote|Use this rcat template in any [[wp:namespace|namespace]] '''except [[wp:Main namespace|main-article namespace]]''' (mainspace).}}
<code><nowiki>#REDIRECT [[(Target article page name)]] {{R to main namespace}}</nowiki></code>
* Apply this rcat to a redirect in the following manner:
:This is in accord with instructions found at [[Wikipedia:REDCAT]].
<syntaxhighlight lang="wikitext">
* Template {{tl|This is a redirect}} may also be used to add this and other appropriate Rcats to a redirect.
#REDIRECT [[(target article title)]]
* Use this Rcat on all redirects to an article in the main namespace from a page ''outside'' of the main namespace. This Rcat should never be used on a redirect in the main namespace to any other page.
 
* See [[Wikipedia:WikiProject Redirect/Style guide]] for details on redirect page layout.
{{Rcat shell|
* The Rcat {{tlx|Redirect to main namespace}} redirects here and may also be used.
** {{tl|R to main namespace}}
}}
</syntaxhighlight>
: Template {{tl|Rcat shell}} is an alias for the ''Redirect category shell'' template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redirect. For more information see the documentation on its template page. This rcat may also tag a redirect individually:
<syntaxhighlight lang="wikitext">
#REDIRECT [[(target article title)]]
 
** {{tl|R to helpmain namespace}}
</syntaxhighlight>
: This is in accord with instructions found at [[Wikipedia:REDCAT]].
* Use this Rcatrcat on all redirects tofrom an article in'''''outside''''' the [[WP:mainspace|main namespace]] fromto aan pagearticle ''outside''title ofin the main namespacemainspace. This Rcatrcat should ''never'' be used onto atag any redirect inthat theis main namespace to any otherin pagemainspace.
 
==== Aliases ====
* <span class="plainlinks">[{{fullurl:Special:WhatLinksHere/Template:R_to_main_namespace|hidetrans=1&hidelinks=1&limit=500}} Also known as...]</span> – list of templates that redirect here and may also be used
 
=== Printworthiness ===
{{info|image=Stop hand nuvola.svg|Please do not alter the printworthy settings of this rcat without first notifying the '''[[WP:Version 1.0 Editorial Team|Version 1.0 Editorial Team]]''', who are responsible for any and all materials, including redirects, that go into a printed version of ''Wikipedia''.}}
'''For information only:'''
* This rcat will only be used to categorize redirects outside mainspace, so printworthiness will not apply to any redirects tagged by this rcat. All redirects that are inside mainspace are either [[wp:printworthiness|printworthy {{black|or}} unprintworthy]]. In 2003, efforts were begun to support the [[Wikimedia Foundation]]'s goal of increasing access and availability of ''Wikipedia'' articles in {{diff|Wikipedia:Pushing to 1.0||1319195|printed versions}}. Some rcats automatically populate either {{Cat|Printworthy redirects}} or {{Cat|Unprintworthy redirects}} by default. Other rcats do not, and that means it is up to editors to choose which of those categories, ''Printworthy'' or ''Unprintworthy'', is appropriate and should be populated. The rcats that are used separately to populate those categories are:
:* {{tlx|R printworthy}} and
:* {{tlx|R unprintworthy}}
: Please click on each one for more details and guidance.
* Template {{tl|Redirect category shell}} will accept these rcats just like any other.
:: '''Examples:'''
<syntaxhighlight lang="wikitext">
{{Rcat shell|
{{R from surname}}
{{R from alternative name}}
{{R printworthy}}
}}
 
{{Rcat shell|
{{R from surname}}
{{R from alternative name}}
{{R unprintworthy}}
}}
</syntaxhighlight>
: Either {{tl|Redirect category shell}} or its alias/shortcut, {{tl|Rcat shell}}, may be used.
 
===TemplateData===
{{TemplateData header}}
<templatedata>
{
"params": {},
"description": "This is a redirect category is for redirects from a page outside the main-article namespace (mainspace) to an article in mainspace."
}
</templatedata>
 
===See also===
{{Rcat see also}}
* {{tl|Redirect to other namespace}}
** {{tl|R to project namespace}}
** {{tl|R to main namespace}}
** {{tl|R to help namespace}}
** {{tl|R to category namespace}}
** {{tl|R to portal namespace}}
** {{tl|R to talk page}}
** {{tl|R to template namespace}}
** {{tl|R to user namespace}}
* {{tl|R template index}} for shortlist of commonly used Rcats
* [[Wikipedia:Template messages/Redirect pages]] for complete listing
 
<includeonly>{{Sandbox other||
<!-- Categories go herebelow this line, andplease; interwikis go into Wikidata, thank you! -->
[[Category:All redirectRedirect templates|Main]]
[[Category:Redirects to the main namespace| ]]
[[Category:Templates for redirects to specific namespaces|Main]]
[[Category:Unknown namespace redirect templates]]}}</includeonly> <noinclude>
</includeonly>
[[Category:Redirect category template documentation pages|Main]]
</noinclude>