MediaWiki talk:Titleblacklist-custom-repeated-namespace-prefix
Protected edit request on 13 October 2016
It is requested that an edit be made to the interface page at MediaWiki:Titleblacklist-custom-repeated-namespace-prefix. (edit · history · last · links)
This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to fully protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. When the request has been completed or denied, please add the |
Found an existing bug (since 2012) involving its appearance on Special pages. The scenario today (previously confined to "Category:Category:"):
If a user (unable to override the blacklist) attempts to move a page unintentionally to a title with a prefix like "Wikipedia:Wikipedia:" (example), this custom message now pops up. Unfortunately, {{PAGENAME}}
and {{FULLPAGENAME}}
would return a redlinked "MovePage" and "Special:MovePage", which is a very misleading error message in the form. Like the recent fix to MediaWiki:Protectedinterface, a check of the namespace number will fix the problem.
The following code would solve that issue. Please replace the page with the following:
{{fmbox | type = editnotice | image = [[File:Ambox warning yellow.svg|40px|link=]] | text = '''You appear to be trying to {{#ifexpr:{{NAMESPACENUMBER}} < 0 |create a page with (or move a page to) a title with a double-namespace prefix. This is likely a title naming error. |{{#ifexist:{{PAGENAME}}|view|create}} [[:{{PAGENAME}}]] but are actually about to create [[:{{FULLPAGENAME}}]]''' * If you are trying to {{#ifexist:{{PAGENAME}}|view|create}} '''[[:{{PAGENAME}}]]''', just follow the {{#ifexist:{{PAGENAME}}||red}} link.}} * If this is the page you want to create, please make a request at [[Wikipedia:Administrators' noticeboard]]. }}
(Tested output appearance in preview, looks good.) Thanks, — Andy W. (talk) 06:44, 13 October 2016 (UTC)