Template:Automatic redirect categories/doc

Template page

Usage

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

Namespaces

Applied to redirects from any namespace to a specific namespace

Type Usage Template Examples
OODA WIKI (project) namespace
  • For:
  • Not for:
    • a page in the OODA WIKI namespace to a page outside of the OODA WIKI namespace
{{R to project namespace}} OODA WIKI:MOS → OODA WIKI:Manual of Style
MOS:ABBR → OODA WIKI:Manual of Style (abbreviations)
Help:IPA → OODA WIKI: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)
OODA WIKI: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
OODA WIKI:0 → Portal:Contents

Applied to only cross-namespace redirects

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:OODA WIKI adminship (CAT:A is in the Main namespace)
Category:A → Category:OODA WIKI adminship
Draft namespace
  • For:
  • Not for:
    • a page in the draft namespace to any page
{{R to draft namespace}} OODA WIKI: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
OODA WIKI:Edit conflict → OODA WIKI 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}} OODA WIKI: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

Disambiguation pages

Protection levels

Other

Programming

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