https://bugzilla.wikimedia.org/show_bug.cgi?id=46835
Web browser: ---
Bug ID: 46835
Summary: Expose content model and format in mw.config
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l