https://bugzilla.wikimedia.org/show_bug.cgi?id=22764
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 AssignedTo: roan.katt...@gmail.com ReportedBy: lupo.bugzi...@gmail.com CC: bryan.tongm...@gmail.com, s...@reedyboy.net, vasi...@gmail.com, soxre...@gmail.com 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 either.) 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: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- 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