Summary: uselang parameter for action=parse?
           Product: MediaWiki
           Version: 1.16-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API

Could we have a uselang parameter for action=parse, please?

Background: the Commons uses a {{LangSwitch}} template to provide content in
the user's interface language (license templates, the {{information}} template,
and others). This works pretty well (from a user perspective; I don't know if
it's actually 100% sound what they do, see bug 14404... but I guess if it
really weren't OK, it would've been shut down long ago.) It even works when a
file description page is viewed at another wiki (non-local file).

However, if we want to get information through JavaScript from some other wiki
about a file on the Commons (such as the file description), we cannot use a
direct API call at the commons due to cross-domain restrictions. Using an
importScript with a callback works, but treats the user as a non-logged-in
anon. So you can't present, through JavaScript, information from the Commons
respecting the user language setting. (A local API call would just return
information about the non-existing local file or file page, so that's no good

With a uselang parameter for action=parse, that'd be possible. (If that uselang
parameter was honored even if the user is treated as an anon, that is.)

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to