GoingBatty (talk | contribs) m fixed typo |
match current behaviour |
||
Line 11: | Line 11: | ||
:At [[Coffee 1]]: |
:At [[Coffee 1]]: |
||
:<code><nowiki>{{Correct title|Coffee #1|reason=#}}</nowiki></code> |
:<code><nowiki>{{Correct title|Coffee #1|reason=#}}</nowiki></code> |
||
{{selfref|1=The correct title of this article is '''Coffee #1'''. The omission of the [[number sign|#]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
{{selfref|1=The correct title of this article is '''''Coffee #1'''''. The omission of the [[number sign|#]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
||
:At [[The No.1s]]: |
:At [[The No.1s]]: |
||
:<code><nowiki>{{Correct title|The #1s|reason=#}}</nowiki></code> |
:<code><nowiki>{{Correct title|The #1s|reason=#}}</nowiki></code> |
||
{{selfref|1=The correct title of this article is '''The #1s'''. The substitution of the [[number sign|#]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
{{selfref|1=The correct title of this article is '''''The #1s'''''. The substitution of the [[number sign|#]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
||
For issues with any of ([[bracket|< > [ ] { }]]), pass the {{para|reason|bracket}} parameter. If the stored page title length is 2 less than the correct title provided to the template, the wording "omission" is produced. If both titles are of same length, the wording "substitution" is produced by default. If this is not correct for a particular page, add a <code>|edit=</code> parameter providing the correct wording. |
For issues with any of ([[bracket|< > [ ] { }]]), pass the {{para|reason|bracket}} parameter. If the stored page title length is 2 less than the correct title provided to the template, the wording "omission" is produced. If both titles are of same length, the wording "substitution" is produced by default. If this is not correct for a particular page, add a <code>|edit=</code> parameter providing the correct wording. |
||
:At [[Benzo(a)pyrene]]: |
:At [[Benzo(a)pyrene]]: |
||
:<code><nowiki>{{Correct title|Benzo[a]pyrene|reason=bracket}}</nowiki></code> |
:<code><nowiki>{{Correct title|Benzo[a]pyrene|reason=bracket}}</nowiki></code> |
||
{{selfref|1=The correct title of this article is '''Benzo[a]pyrene'''. The substitution of any [[brackets]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
{{selfref|1=The correct title of this article is '''''Benzo[a]pyrene'''''. The substitution of any [[brackets]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
||
:At [[(an imitation) blood orange]]: |
:At ''[[(an imitation) blood orange]]'': |
||
:<code><nowiki>{{Correct title|[(an imitation)] blood orange|reason=bracket}}</nowiki></code> |
:<code><nowiki>{{Correct title|''[(an imitation)] blood orange''|reason=bracket}}</nowiki></code> |
||
{{selfref|1=The correct title of this article is '''[(an imitation)] blood orange'''. The omission of any [[bracket|brackets]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
{{selfref|1=The correct title of this article is '''[(an imitation)] blood orange'''. The omission of any [[bracket|brackets]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
||
Line 34: | Line 34: | ||
:At [[Europa – Fira station]]: |
:At [[Europa – Fira station]]: |
||
:<code><nowiki>{{Correct title|Europa {{!}} Fira station|reason=vbar}}</nowiki></code> |
:<code><nowiki>{{Correct title|Europa {{!}} Fira station|reason=vbar}}</nowiki></code> |
||
{{selfref|1=The correct title of this article is '''Europa {{!}} Fira station'''. The substitution of the [[vertical bar]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
{{selfref|1=The correct title of this article is '''''Europa {{!}} Fira station'''''. The substitution of the [[vertical bar]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
||
:At [[DE9 Transitions]]: |
:At [[DE9 Transitions]]: |
||
:<code><nowiki>{{Correct title|DE9 {{!}} Transitions|reason=vbar}}</nowiki></code> |
:<code><nowiki>{{Correct title|DE9 {{!}} Transitions|reason=vbar}}</nowiki></code> |
||
{{selfref|1=The correct title of this article is '''DE9 {{!}} Transitions'''. The omission of the [[vertical bar]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
{{selfref|1=The correct title of this article is '''''DE9 {{!}} Transitions'''''. The omission of the [[vertical bar]] is due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}} |
||
Revision as of 13:12, 21 March 2022
This is a Wikipedia maintenance template that produces an article hatnote to help explain to readers that restrictions on titles containing colons, periods, and some other characters (noted at Wikipedia:Naming conventions (technical restrictions)) affect the page name of the page they are reading.
The first unnamed parameter takes the correct name of the page. Do not include any disambiguation-resolving terms within brackets.
Examples
For issues with the (#) sign, pass the |reason=#
parameter. If the stored page title length is 1 less than the correct title provided to the template, the wording "omission" is produced. Otherwise, the wording "substitution" is produced by default. If this is not correct for a particular page, add a |edit=
parameter providing the correct wording.
- At Coffee 1:
{{Correct title|Coffee #1|reason=#}}
- At The No.1s:
{{Correct title|The #1s|reason=#}}
For issues with any of (< > [ ] { }), pass the |reason=bracket
parameter. If the stored page title length is 2 less than the correct title provided to the template, the wording "omission" is produced. If both titles are of same length, the wording "substitution" is produced by default. If this is not correct for a particular page, add a |edit=
parameter providing the correct wording.
- At Benzo(a)pyrene:
{{Correct title|Benzo[a]pyrene|reason=bracket}}
- At (an imitation) blood orange:
{{Correct title|''[(an imitation)] blood orange''|reason=bracket}}
For issues with :, pass the |reason=:
parameter:
{{Correct title|DK: King of Swing|reason=:}}
For issues with |, pass the |reason=vbar
parameter. Use {{!}} instead of | while providing the correct title in the template (since | characters are not allowed in template parameters). If the stored page title length is 1 less than the correct title provided to the template, the wording "omission" is produced. Otherwise, the wording "substitution" is produced by default. If this is not correct for a particular page, add a |edit=
parameter providing the correct wording.
- At Europa – Fira station:
{{Correct title|Europa {{!}} Fira station|reason=vbar}}
- At DE9 Transitions:
{{Correct title|DE9 {{!}} Transitions|reason=vbar}}
The template can also be used without a reason, which produces:
TemplateData
TemplateData for Correct title
This is a Wikipedia maintenance template that produces an article hatnote to help explain to readers that restrictions on titles containing colons, periods, and some other characters (noted at WP:NCTR) affect the page name of the page they are reading.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Correct title | 1 title | The correct name of the page. | Line | required |
Reason | reason | The reason the correct title cannot be used as the page title. Possible reasons are #, :, bracket, and vbar (for |).
| Line | optional |
Substitution or omission | edit | Override the word used to describe the difference between the correct title and the actual page title. | Line | optional |
See also
- Wikipedia:Naming conventions (technical restrictions)
- {{Technical reasons}}
- Category:Restricted titles
- Similar templates:
Wiki markup Transclusion from template: |
Involves | Correct name | Actual article name |
---|---|---|---|
{{Italic title}} | Title in italics | To Kill a Mockingbird | To Kill a Mockingbird |
{{Italic title|all=yes}} | Complete title in italics, including parentheses | Randall and Hopkirk (Deceased) | Randall and Hopkirk (Deceased) |
{{Italic title|string=Ally McBeal}} | Phrase of |string= in italics
|
List of Ally McBeal episodes | List of Ally McBeal episodes |
{{Italic title|all=yes|string=Fringe}} | Phrase of |string= in italics; also looks in parentheses
|
Peter (Fringe episode) | Peter (Fringe episode) |
{{Italic disambiguation}} | Disambiguation in italics | The End (Lost) | The End (Lost) |
{{Lowercase title}} | Lowercase first character | eBay | EBay |
{{Lowercase title|italic=yes}} | Lowercase first character and place title in italics, not including disambiguation | iCarly (soundtrack) | ICarly (soundtrack) |
{{Lowercase title|italic=yes|force=yes}} | Lowercase first character and place title in italics, including disambiguation | ||
{{Lowercase title|dab=yes}} | Lowercase first character and place disambiguation in italics | iSpy (Modern Family) | ISpy (Modern Family) |
{{Italic title prefixed|17}} | Italicize after the number characters at the beginning of the title | German battleship Bismarck | German battleship Bismarck |
Magic word | |||
{{DISPLAYTITLE:_NSAKEY}} | Various | _NSAKEY | NSAKEY |
Title corrections | |||
{{Correct title|reason=bracket}} | < > [ ] { } | Benzo[a]pyrene | Benzo(a)pyrene |
{{Correct title|reason=#}} | # | Pilot #5 | Pilot No. 5 |
{{Correct title|reason=:}} | : | DK: King of Swing | DK King of Swing |