https://bugzilla.wikimedia.org/show_bug.cgi?id=47449

       Web browser: ---
            Bug ID: 47449
           Summary: {{#special:}} parser function should not return
                    textual error message for unknown special pages
           Product: MediaWiki
           Version: unspecified
          Hardware: All
               URL: http://test.wikipedia.org/wiki/Special_parserfunction
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Parser
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: morme...@centrum.cz
    Classification: Unclassified
   Mobile Platform: ---

When the {{#special:}} parser function is called with an unknown special page
name, it currently returns “No such special page” ({{int:nosuchspecialpage}}),
i.e. a user-readable textual message where a page name is expected. (Or, in
other words, instead of a title of a page in NS_SPECIAL, it returns a title in
NS_MAIN.) This is especially strange in the {{#speciale:}} variant (which
returns “No_such_special_page”).

This is surprising behavior. It would be more logical to just return the
requested title (we are unable to return the _localized_ title of the special
page, so just use the given one). (Or, an alternative solution would be to
always return Special:Badtitle.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to