Jump to content

Template:Correct title: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add "demopage" parameter so this can be used on its own documentation; move {{Namespace detect}} up to hopefully eliminate the extra vertical whitespace being inserted
this fixes the extra space
Line 8: Line 8:
|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
|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
|#default = It appears incorrectly here
|#default = It appears incorrectly here
}} due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}}<includeonly>{{#if:{{NAMESPACE}}{{#iferror:{{#invoke:Page|interwiki|{{#invoke:String|replace|{{{title|{{{1|}}}}}}|'|}}}}{{#invoke:Page|fragment|{{{title|{{{1|}}}}}}a}}{{#ifeq:{{#invoke:Page|isContentPage|{{#invoke:String|replace|{{{title|{{{1|}}}}}}|'|}}}}|true||a}}|a}}||[[Category:Pages using technically valid titles in correct title hatnotes]]}}
}} due to [[Wikipedia:Naming conventions (technical restrictions)|technical restrictions]].}}<includeonly>{{#if:{{NAMESPACE}}{{#iferror:{{#invoke:Page|interwiki|{{#invoke:String|replace|{{{title|{{{1|}}}}}}|'|}}}}{{#invoke:Page|fragment|{{{title|{{{1|}}}}}}a}}{{#ifeq:{{#invoke:Page|isContentPage|{{#invoke:String|replace|{{{title|{{{1|}}}}}}|'|}}}}|true||a}}|a}}||[[Category:Pages using technically valid titles in correct title hatnotes]]}}<!--
{{Namespace detect
-->{{Namespace detect
| main = [[Category:Restricted titles]]
| main = [[Category:Restricted titles]]
| draft = [[Category:Restricted titles]]
| draft = [[Category:Restricted titles]]

Revision as of 05:10, 28 July 2022