Template:Correct title: Difference between revisions

Created page with "{| class="notice-template" style="background: #f2f5fd; border: 1px solid #00BFFF; border-radius: 10px; margin-bottom: 5px;" width="95%" align="center" |- |align=center|<small>..."
 
m adding additional valid input
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
|-
|-
|align=center|<small>The correct title of this {{#if:{{NAMESPACE}}|page|article}} is '''{{{title|{{{1}}}}}}'''. {{#switch:{{{reason|}}}
|align=center|<small>The correct title of this {{#if:{{NAMESPACE}}|page|article}} is '''{{{title|{{{1}}}}}}'''. {{#switch:{{{reason|}}}
|:|namespace = The {{{edit|substitution or omission}}} of the [[wikipedia:Colon (punctuation)|colon]] is
|:|namespace = The {{{edit|substitution or omission}}} of the {{w|Colon (punctuation)|colon}} is
|(|bracket = The {{{edit|substitution or omission}}} of any [[wikipedia:brackets]] is
|(|bracket|brackets = The {{{edit|substitution or omission}}} of any {{w|brackets}} is
|#|hash|number = The {{{edit|substitution or omission}}} of the [[wikipedia:number sign|#]] is
|#|hash|number = The {{{edit|substitution or omission}}} of the {{w|number sign|#}} is
|vbar|obelisk|vertical bar|pipe|verticalbar = The {{{edit|substitution or omission}}} of the [[vertical bar]] character is
|vbar|obelisk|vertical bar|pipe|verticalbar = The {{{edit|substitution or omission}}} of the [[vertical bar]] character is
|#default = It appears incorrectly here
|#default = It appears incorrectly here
}} due to [[Wikipedia:Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].</small>
}} due to {{w|Wikipedia:Naming conventions (technical restrictions)|technical restrictions}}.</small>
|}
|}
<noinclude>
<noinclude>
This template is used on articles to help explain to readers that restrictions on titles containing colons, periods, and some other characters (noted at [[wikipedia:Wikipedia:TITLESPECIALCHARACTERS]]) affect the page name of the page they are reading.
 
 
This template is used on articles to help explain to readers that restrictions on titles containing colons, periods, and some other characters (noted at {{w|WP:TITLESPECIALCHARACTERS}}) affect the page name of the page they are reading.


===Examples===
===Examples===
For issues with the ([[Number sign|#]]) sign, pass the {{para|reason|#}} parameter:
For issues with the ({{w|Number sign|#}}) sign, pass the <code>&#124;reason&#61;#</code> parameter:
:<code><nowiki>{{Correct title|C# (programming language)|reason=#}}</nowiki></code>
:<code><nowiki>{{Correct title|C# (programming language)|reason=#}}</nowiki></code>
{{Correct title|C# (programming language)|reason=#}}
{{Correct title|C# (programming language)|reason=#}}




For issues with any of ([[bracket|< > [ ] { }]]), pass the {{para|reason|bracket}} parameter:
For issues with any of ({{w|bracket|< > [ ] { }<nowiki/>}}), pass the <code>&#124;reason&#61;bracket</code> parameter:
:<code><nowiki>{{Correct title|Benzo[a]pyrene|reason=bracket}}</nowiki></code>
:<code><nowiki>{{Correct title|Benzo[a]pyrene|reason=bracket}}</nowiki></code>
{{Correct title|Benzo[a]pyrene|reason=bracket}}
{{Correct title|Benzo[a]pyrene|reason=bracket}}




For issues with :, pass the {{para|reason|:}} parameter:
For issues with :, pass the <code>&#124;reason&#61;:</code> parameter:
:<code><nowiki>{{Correct title|DK: King of Swing|reason=:}}</nowiki></code>
:<code><nowiki>{{Correct title|DK: King of Swing|reason=:}}</nowiki></code>
{{Correct title|DK: King of Swing|reason=:}}
{{Correct title|DK: King of Swing|reason=:}}