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 | |:|namespace = The {{{edit|substitution or omission}}} of the {{w|Colon (punctuation)|colon}} is | ||
|(|bracket = The {{{edit|substitution or omission}}} of any | |(|bracket|brackets = The {{{edit|substitution or omission}}} of any {{w|brackets}} is | ||
|#|hash|number = The {{{edit|substitution or omission}}} of the | |#|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 | }} 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 | |||
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 ( | For issues with the ({{w|Number sign|#}}) sign, pass the <code>|reason=#</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 ( | For issues with any of ({{w|bracket|< > [ ] { }<nowiki/>}}), pass the <code>|reason=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 | For issues with :, pass the <code>|reason=:</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=:}} |