Last modified: 2013-08-22 14:40:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48835, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46835 - Expose content model and format in mw.config
Expose content model and format in mw.config
Status: VERIFIED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-03 07:52 UTC by Michael M.
Modified: 2013-08-22 14:40 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael M. 2013-04-03 07:52:38 UTC
I think it would be usefull to have something like
wgContentModel = 'wikitext', wgContentFormat = 'text/x-wiki'
available to JavaScript.

Use cases:

* Almost every gadget that adds some kind of edit tools could use these variables, as most of them make only sense for wikitext.
* CodeEditor exposes the language in its own variable to decide about the mode. It probably could use these vars instead.
* Most gadgets for automatic translations think that JS/CSS pages are English and provide useless translations. They could use these variables to only provide translations for content generated from wikitext.
Comment 1 Michael M. 2013-05-08 07:46:52 UTC
For wgPageContentModel done in Gerrit change #62178 by Umherirrender. As the actual format is actually useless on rendered pages, I think this bug can be closed as fixed, unless somebody has a use case for it.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links