• Home
  • Random
  • Recent changes
  • Special pages
  • Community portal
  • Preferences
  • About Spectrum Entertainment Wiki
  • Disclaimers
Spectrum Entertainment Wiki
  • Talk
  • Contributions
  • Create account
  • Log in

Template:Incorrect redirect template/sandbox

Template Discussion
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Incorrect redirect template
Stop hand orange.svgThe above rcat should only be used to categorize redirects that are in the {{{1}}} namespace.
This is the template sandbox page for Template:Incorrect redirect template (diff).
Template documentation[view] [edit] [history] [purge]
This template should not be substituted.
Shortcut
  • {{IRT}}
WarningThis template is used on many 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.

Contents

  • 1 Usage
  • 2 1st parameter
    • 2.1 Example 1
  • 3 2nd parameter
    • 3.1 Example 2
  • 4 3rd parameter
    • 4.1 Example 3
  • 5 See also

Usage

This template is for use in other templates in conjunction with namespace detection. It adds pages to Category:Pages with templates in the wrong namespace. This template has been designed to ignore pages that are not redirects.

1st parameter

The 1st parameter inserts text in the message to specify in which namespace the redirect in question should (or should not) be categorized.

Example 1

{{Ombox
| type = notice
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]}}}}</includeonly>
produces:
Example text.
Stop hand orange.svgThe above rcat should only be used to categorize redirects that are in the help namespace.
In the above example, transcluding the message box will categorize redirects in the help namespace into Category:Example category, and for pages outside the help namespace will produce this template's error message beneath the message box and populate Category:Pages with templates in the wrong namespace instead of Category:Example category.

2nd parameter

The 2nd parameter inserts text in the message to specify a second namespace in which the redirect in question should (or should not) be categorized.

Example 2

{{Ombox
| type = notice
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]|[[WP:Mainspace|main]]}}}}</includeonly>
produces:
Example text.
Stop hand orange.svgThe above rcat should only be used to categorize redirects that are in the help namespace or the main namespace.
In the above example, transcluding the message box will categorize pages in the help namespace or the main namespace into Category:Example category, and for pages outside the help namespace or mainspace will produce this template's error message beneath the message box and populate Category:Pages with templates in the wrong namespace instead of Category:Example category.

3rd parameter

This parameter is used when the text should read "...should only be used to categorize redirects that are outside ..." (instead of "in" ...).

Example 3

{{Ombox
| type = notice
| image = [[File:Stop hand orange.svg|50px]]
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]||outside}}}}</includeonly>
Note: Two pipes together are used to yield an "empty" 2nd parameter.
produces:
Example text.
Stop hand orange.svgThe above rcat should only be used to categorize redirects that are outside the help namespace.
In the above example, transcluding the message box will categorise pages outside the help namespace into Category:Example category, and for pages that are in the help namespace will produce this template's error message beneath the message box and populate Category:Pages with templates in the wrong namespace instead of Category:Example category. If a second namespace must be specified, then turn the empty 2nd parameter into a namespace link:
Example 3.1
{{Ombox
| type = notice
| image = [[File:Stop hand orange.svg|50px]]
| text = Example text.
}}<includeonly>{{Help other|[[Category:Example category]]|{{Incorrect redirect template|[[Help:help|help]]|[[WP:Mainspace|main]]|outside}}}}</includeonly>
produces:
Example text.
Stop hand orange.svgThe above rcat should only be used to categorize redirects that are outside the help namespace and the main namespace.
Also note that "or" is changed to "and" (help namespace "and" the main namespace).

See also

  • {{Incorrect namespace}}
  • {{Single namespace}}
  • v
  • t
  • e
Rcat functional index
Grammar,
punctuation,
and spelling
Abbreviation
  • {{R to acronym}}
  • {{R from acronym}}
  • {{R to initialism}}
  • {{R from initialism}}
  • {{R from numeronym}}
  • {{Template:R from Bluebook abbreviation}}
  • {{Template:R from ISO 4 abbreviation}}
  • {{Template:R from MathSciNet abbreviation}}
  • {{Template:R from NLM abbreviation}}
Capitalisation
  • {{R from CamelCase}}
  • {{R from other capitalisation}}
  • {{R from miscapitalisation}}
Grammar &
punctuation
  • {{R from modification}}
  • {{R from rearrangement}}
  • {{R from plural}}
  • {{R to plural}}
  • {{Template:R from alternative spelling}}
  • {{R from alternative hyphenation}}
  • {{R from alternative spacing}}
Parts of speech
  • {{R from adjective}}
  • {{R from adverb}}
  • {{R from common noun}}
  • {{R from gerund}}
  • {{R from proper noun}}
  • {{R from verb}}
Spelling
  • {{R from alternative spelling}}
  • {{R from alternative transliteration}}
  • {{R from American English}}
  • {{R from ASCII-only}}
  • {{R to ASCII-only}}
  • {{R from British English}}
  • {{R from diacritic}}
  • {{R to diacritic}}
  • {{R from ligature}}
  • {{R to ligature}}
  • {{R from misspelling}}
  • {{R from stylization}}
Alternative
names
General
  • {{R from alternative language}}
    • language codes
  • {{R from alternative name}}
  • {{R from ambiguous sort name}}
  • {{R from antonym}}
  • {{R from colloquial name}}
  • {{R from former name}}
  • {{R from incomplete name}}
  • {{R from incorrect name}}
  • {{R from less specific name}}
  • {{R from long name}}
  • {{R from more specific name}}
  • {{R from non-neutral name}}
  • {{R from numerals}}
  • {{R from Roman numerals}}
  • {{R from portmanteau}}
  • {{R from short name}}
  • {{R from sort name}}
  • {{R from synonym}}
People
  • {{R from birth name}}
  • {{R from given name}}
  • {{R to joint biography}}
  • {{R from married name}}
  • {{R from name with title}}
  • {{R from person}}
  • {{R from personal name}}
  • {{R from pseudonym}}
  • {{R from surname}}
Technical
  • {{R from CAS Registry Number}}
  • {{R from citation identifier}}
  • {{R from drug trade name}}
  • {{R from filename}}
  • {{R from Java package name}}
  • {{R from chemical formula}}
  • {{R from gene symbol}}
  • {{R from technical name}}
  • {{R to technical name}}
Organisms
  • {{R to scientific name}}
  • {{R from scientific name}}
  • {{R from alternative scientific name}}
  • {{R from scientific abbreviation}}
  • {{R to monotypic taxon}}
  • {{R from monotypic taxon}}
  • {{R taxon with possibilities}}
Geography
  • {{R from name and country}}
  • {{R from more specific geographic name}}
  • {{R from postal code}}
Navigation
aids
Navigation
  • {{R to anchor}}
  • {{R avoided double redirect}}
  • {{R from category navigation}}
  • {{R from file metadata link}}
  • {{R to list entry}}
  • {{R mentioned in hatnote}}
  • {{R to section}}
  • {{R from shortcut}}
  • {{R from ambiguous term}}
  • {{R to disambiguation page}}
  • {{R from incomplete disambiguation}}
  • {{R from incorrect disambiguation}}
  • {{R from other disambiguation}}
  • {{R from predictable disambiguation}}
  • {{R from unnecessary disambiguation}}
Merge, duplicate & move
  • {{R from draft}}
  • {{R from duplicated article}}
  • {{R with history}}
  • {{R from merge}}
  • {{R from move}}
  • {{R with old history}}
  • {{R from remote talk page}}
  • {{R to category namespace}}
  • {{R to draft namespace}}
  • {{R to help namespace}}
  • {{R to main namespace}}
  • {{R to portal namespace}}
  • {{R to project namespace}}
  • {{R to talk page}}
  • {{R to template namespace}}
  • {{R to user namespace}}
Media
General
  • {{R from book}}
  • {{R from film}}
  • {{R from upcoming film}}
  • {{R from journal}}
  • {{R from meme}}
  • {{R from work}}
Music
  • {{Template:R from album}}
  • {{R from hook line}}
  • {{R from lyric}}
  • {{R from song}}
  • {{R from cover song}}
  • {{R from band name}}
Television
  • {{R from television episode}}
  • {{R from television program}}
Fiction
  • {{R from fictional character}}
  • {{R from fictional element}}
  • {{R from fictional location}}
Comics
  • {{R comics with possibilities}}
  • {{R comics from alternative name}}
  • {{R comics to list entry}}
  • {{R comics from merge}}
  • {{R comics naming convention}}
  • {{R comics from related word}}
  • {{R comics to section}}
Miscellaneous
Related
information
  • {{R to article without mention}}
  • {{R to decade}}
  • {{R to century}}
  • {{R from domain name}}
    • {{R from second-level domain}}
    • {{R from top-level domain}}
  • {{R from gender}}
  • {{R from legislation}}
  • {{R from list topic}}
  • {{R from member}}
  • {{R from phrase}}
  • {{R to related topic}}
  • {{R from related word}}
  • {{R from relative}}
    • {{R from spouse}}
  • {{R from school}}
  • {{R from subtopic}}
  • {{R to subtopic}}
  • {{R from team}}
  • {{R from Unicode character}}
  • {{R from Unicode code}}
  • {{R from emoji}}
With possibilities
  • {{R with possibilities}}
    • Category:Template redirects with possibilities
  • {{R category with possibilities}}
ISO codes
  • {{Template:R from ISO 4 abbreviation}}
  • {{R from ISO 639 code}}
  • {{R from ISO 3166 code}}
  • {{R from ISO 4217 code}}
  • {{R from ISO 15924 code}}
Printworthiness
  • Printability
  • {{R printworthy}}
  • {{R unprintworthy}}
    • e.g. {{R with possibilities}} is printworthy by default; {{R from misspelling}} is unprintworthy by default; some have no default
Protection
  • {{R extended-protected}}
  • {{R fully protected}}
  • {{R semi-protected}}
  • {{R template-protected}}
  • {{R from high-use template}}
Tools
  • Category:Miscellaneous redirects
  • Protection policy
  • {{R from template-generated category}}
  • {{Redirect category shell}}
  • {{Talk page of redirect}}
Wikidata
  • {{Wikidata redirect}}
  • Redirect Complete alphanumeric index
    • for the full list of rcat templates
  • Category Category
  • WikiProject WikiProject Redirect
  • Wikipedia page Categorizing redirects
The above documentation is transcluded from Template:Incorrect redirect template/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://spectrumentertainment.miraheze.org/w/index.php?title=Template:Incorrect_redirect_template/sandbox&oldid=24116"
Last edited on 19 January 2022, at 20:49
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
Spectrum Entertainment Wiki
  • This page was last edited on 19 January 2022, at 20:49.
  • Content is available under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) unless otherwise noted.
  • Privacy policy
  • About Spectrum Entertainment Wiki
  • Disclaimers
  • Terms of Use
  • Donate to Miraheze
  • Mobile view