Page MenuHomePhabricator

Support transcluding MediaWiki pages in content language ({{MediaWiki:foo}}) in jqueryMsg
Open, NormalPublic

Description

Even with my in-progress wikilink fix (bug 43498), messages like https://www.mediawiki.org/w/index.php?title=Special%3AAllMessages&prefix=newarticletext&filter=all&lang=en&limit=50 don't work. The original message source is:

You have followed a link to a page that does not exist yet. To create the page, start typing in the box below (see the [[{{MediaWiki:Helppage}}|help page]] for more info). If you are here by mistake, click your browser's '''back''' button.

It doesn't yet have any support for recognizing the {{MediaWiki:message}} construct


Version: 1.21.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=43499

Details

Reference
bz43513

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 1:12 AM
bzimport added a project: MediaWiki-JavaScript.
bzimport set Reference to bz43513.
bzimport added a subscriber: Unknown Object (MLST).

Timo, is there a fast fix possible?

Cool. I've added Timo and Santhosh as reviewers.

Nikerabbit pointed out that I seem to have unintentionally implemented int instead. I opened https://bugzilla.wikimedia.org/show_bug.cgi?id=43574 so I can tag the feature correctly.

The difference, if I understand correctly, is that MediaWiki: (as a normal transclusion) always uses the content language, while int: always uses the interface language.

Unfortunately, I don't know a way to implement MediaWiki: here without a synchronous API call to the server. As implied at https://bugzilla.wikimedia.org/show_bug.cgi?id=25349 (see "forcontent" feature request in title), ResourceLoader currently serves all messages plain (unparsed) from the interface language.