Jump to content

Template:Correct title: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎top: Re-implementing edit (see talk)
Tag: Reverted
Oops
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{selfref|1=The correct title of this {{#if:{{NAMESPACE}}|page|article}} is '''{{#ifexpr:{{#ifeq:{{#invoke:String|sub|{{{title|{{{1|}}}}}}||2}}|''|1|0}}and{{#ifeq:{{#invoke:String|sub|{{{title|{{{1|}}}}}}|-2|}}|''|1|0}}=1|{{#invoke:String|sub|{{{title|{{{1|}}}}}}|3|-3}}|{{#ifeq:{{#invoke:String|sub|{{{title|{{{1|}}}}}}||2}}|''|{{#invoke:String|sub|{{{title|{{{1|}}}}}}|3|}}''|{{#ifeq:{{#invoke:String|sub|{{{title|{{{1|}}}}}}|-2|}}|''|''{{#invoke:String|sub|{{{title|{{{1|}}}}}}||-3}}|''{{{title|{{{1|{{Error|not specified}}}}}}}}''}}}}}}'''. {{#switch:{{{reason|}}}
{{selfref|1=The correct title of this {{#if:{{NAMESPACE}}|page|article}} is {{terminate sentence|'''{{{title|{{{1|{{Error|not specified}}}}}}}}'''}} {{#switch:{{{reason|}}}
|:|namespace = The {{{edit|substitution or omission}}} of the [[Colon (punctuation)|colon]] is
|:|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|{{PAGENAME}}| %(.*%)$||1|false}}}} }}
|(|bracket|brackets = The {{{edit|{{#switch:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}
|2 = omission
|2 = omission
|0 = substitution
|0 = substitution
|#default = substitution or omission}}}}} of any [[bracket]]s is
|#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|{{PAGENAME}}| %(.*%)$||1|false}}}} }}|1|omission|substitution}}}}} of the [[number sign|#]] 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|{{PAGENAME}}| %(.*%)$||1|false}}}} }}|1|omission|substitution}}}}} of the [[vertical bar]] 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
|#default = It appears incorrectly here
}} due to [[Wikipedia:Naming conventions (technical restrictions){{#switch:{{{reason|}}}
}} due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}}<includeonly>{{#if:{{NAMESPACE}}{{#iferror:{{#invoke:Page|interwiki|{{{title|{{{1|}}}}}}}}{{#invoke:Page|fragment|{{{title|{{{1|}}}}}}a}}{{#ifeq:{{#invoke:Page|isContentPage|{{{title|{{{1|}}}}}}}}|true||a}}|a}}||[[Category:Pages using technically valid titles in correct title hatnotes]]}}</includeonly><noinclude>
|:|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}}
{{Documentation}}
</noinclude>
</noinclude>
<includeonly>{{Namespace detect
| main = [[Category:Restricted titles]]
| draft = [[Category:Restricted titles]]
| other = <!-- Don't categorize when not in main or draft space --> }}</includeonly>

Latest revision as of 15:04, 11 June 2024