Jump to content

Template:Automatic redirect categories/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This is a template to automatically detect and apply various redirect categories. It applies the following:

Namespaces

[edit]

Applied to redirects from any namespace to a specific namespace

[edit]
Type Usage Template Examples
Wikipedia (project) namespace
  • For:
  • Not for:
    • a page in the Wikipedia namespace to a page outside of the Wikipedia namespace
{{R to project namespace}} Wikipedia:MOS → Wikipedia:Manual of Style
MOS:ABBR → Wikipedia:Manual of Style (abbreviations)
Help:IPA → Wikipedia:IPA
Help namespace
  • For:
  • Not for:
    • a page in the help namespace to a page outside of the help namespace
{{R to help namespace}} Help:Magic word → Help:Magic words
H:R → Help:Redirect (H:R is in the Main namespace)
Wikipedia:Thumbnail → Help:Files
Portal namespace
  • For:
  • Not for:
    • a page in the portal namespace to a page outside of the portal namespace
{{R to portal namespace}} Portal:Beatles → Portal:The Beatles
P:ENG → Portal:England
Wikipedia:0 → Portal:Contents

Applied to only cross-namespace redirects

[edit]
Type Usage Template Examples
Category namespace
  • For:
  • Not for:
    • a page in the category namespace to any page
{{R to category namespace}} CAT:A → Category:Wikipedia adminship (CAT:A is in the Main namespace)
Category:A → Category:Wikipedia adminship
Draft namespace
  • For:
  • Not for:
    • a page in the draft namespace to any page
{{R to draft namespace}} Wikipedia:Wikiproject Dacia/Drafts/Arcina → Draft:Arcina
Draft:Beatles → Draft:The Beatles
Main namespace
  • For:
  • Not for:
    • a page in the main namespace to any page
{{R to main namespace}} Template:DSM IV TR → Diagnostic and Statistical Manual of Mental Disorders
Beatles → The Beatles
Talk namespaces
  • For:
  • Not for:
    • a page in a talk namespace to any page
{{R to talk page}} Help:Table → Talk:Library
Wikipedia:Edit conflict → Wikipedia talk:Edit conflict
User talk:Simon → User:Simon ({{R to user namespace}})
User talk:Jimbo → Talk:Genius
Template namespace
  • For:
  • Not for:
    • a page in the template namespace to any page
{{R to template namespace}} T:S → Template:Strikethrough (T:S is in the Main namespace.)
Template:R from → Template:R template index
User namespace
  • For:
  • Not for:
    • a page in the user namespace to any page
{{R to user namespace}} Wikipedia:MOS → User:Jimbo Wales
User talk:Tricky Ed → User:SuperEditor

User:SuperEditor → User talk:Tricky Ed ({{R to talk page}})
User:SuperEditor → User:Tricky Ed
User:Jimbo Wales/Workpage → User:Jimbo Wales

Subpages

[edit]

Disambiguation pages

[edit]

Protection levels

[edit]

Other

[edit]

Programming

[edit]

This template uses Module:RedirectData to detect the namespace that is redirected to.