mediawiki-extensions-Discus.../tests/data
Bartosz Dziewoński 084f45128c Improve and document the files in tests/data/
* Remove 'wgMetaNamespace' and 'wgMetaNamespaceTalk', the same data
  exists in 'wgFormattedNamespaces'.

* Rename 'wgContentLang' to 'wgContentLanguage', to match its real
  name in JS config. MediaWiki doesn't use 'wgContentLang' anywhere,
  although the related PHP global is called $wgContLang.

* Document how I made these files, previously only mentioned in the
  commit message of e9c401e3aa.

Change-Id: I67f962812c155aedf41154e0d837e7feb5af972d
2020-09-01 01:50:33 +02:00
..
arwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
arwiki-data.json Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
enwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
enwiki-data.json Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
frwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
frwiki-data.json Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
huwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
huwiki-data.json Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
nlwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
nlwiki-data.json Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
plwiki-config.json Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00
plwiki-data.json Fix parsing localised digits in PHP discussion parser 2020-09-01 01:50:33 +02:00
README.txt Improve and document the files in tests/data/ 2020-09-01 01:50:33 +02:00

Minimal overrides for Hooks::getLocalData() and mw.config
required for us to be able to parse HTML generated by the given wiki.

To make one of these files, run the following in browser console:

config.json:
  JSON.stringify( mw.config.get( [ 'wgContentLanguage', 'wgArticlePath', 'wgNamespaceIds', 'wgFormattedNamespaces' ] ), null, 2 )

data.json:
  JSON.stringify( mw.loader.moduleRegistry[ 'ext.discussionTools.init' ].packageExports[ 'parser/data.json' ], null, 2 )