Template:Correct title: Difference between revisions

New version of {{Correct title}}
m (Add attribution notice)
Tag: 2017 source edit
(New version of {{Correct title}})
Tags: Replaced 2017 source edit
Line 1: Line 1:
{{selfref|1=The correct title of this {{#if:{{NAMESPACE}}|page|article}} is {{terminate sentence|'''{{{title|{{{1|{{Error|not specified}}}}}}}}'''}} {{#switch:{{{reason|}}}
<code><nowiki>{{Correct title|</nowiki><var>correct title</var>}}</code>
|:|namespace = The {{{edit|substitution or omission}}} of the [[Colon (punctuation)|colon]] is
|(|bracket|brackets = The {{{edit|{{#switch:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}
|2 = omission
|0 = substitution
|#default = substitution or omission}}}}} of any [[bracket]]s is
|#|hash|number = The {{{edit|{{#ifeq:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}|1|omission|substitution}}}}} of the [[number sign|#]] is
|vbar|obelisk|vertical bar|pipe|verticalbar = The {{{edit|{{#ifeq:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}|1|omission|substitution}}}}} of the [[vertical bar]] is
|length = It is truncated here
|#default = It appears incorrectly here
}} due to [[Wikipedia:Naming conventions (technical restrictions){{#switch:{{{reason|}}}
|:|namespace = &#35;Colons
|(|bracket|brackets = &#35;Clashes_with_wiki_markup/HTML_syntax
|#|hash|number = &#35;Clashes_with_wiki_markup/HTML_syntax
|vbar|obelisk|vertical bar|pipe|verticalbar = &#35;Clashes_with_wiki_markup/HTML_syntax
|length = &#35;Title_length}}|technical restrictions]].}}<includeonly><!--
-->{{Namespace detect
| main  = {{#invoke:Correct title categories|main|{{{title|{{{1|}}}}}}}}
| draft = {{#invoke:Correct title categories|main|{{{title|{{{1|}}}}}}}}
| other = <!-- Don't categorize when not in main or draft space -->
}}</includeonly><noinclude>
{{Documentation}}
{{En-WP attribution notice|Template:Correct title}}
</noinclude>
282

edits