Go to file
Antoine Musso 5fcecf9e5f Skip registering RL modules depending on VisualEditor
When VisualEditor is not installed, there is no point in registered
resource loader modules that depends on it.  A use case is trying to run
tests for the MediaWiki tarball. It comes with Cite but without
VisualEditor.

The patch is based on GuidedTour patch by Matthew Flaschen
https://gerrit.wikimedia.org/r/#/c/305691/ for T143297

Change-Id: Idf769e0149f93c099a94b1b7a6cb203273dab881
2016-10-14 23:45:03 +02:00
i18n Localisation updates from https://translatewiki.net. 2016-10-13 22:45:04 +02:00
includes Skip registering RL modules depending on VisualEditor 2016-10-14 23:45:03 +02:00
modules Localisation updates from https://translatewiki.net. 2016-10-10 22:25:51 +02:00
tests/parser Move parser tests to test directory 2016-09-20 14:33:36 +00:00
.gitignore composer test entry point 2015-11-23 22:15:36 +01:00
.gitreview Adding .gitreview 2012-03-23 10:16:54 -07:00
.jscsrc build: Test JS code with jshint and jscs via npm 2015-11-18 16:54:55 -08:00
.jshintignore Update packages 2015-12-19 09:52:30 +00:00
.jshintrc VisualEditor: Bring in unit tests from VE 2016-02-05 13:41:43 -08:00
.stylelintrc Add stylelint and make required style fixes 2016-05-17 18:21:30 +01:00
AUTHORS.txt VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
Cite.php Add extension.json, empty PHP entry point 2015-05-03 06:36:25 +00:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 0.7.2 2016-05-27 18:18:03 -07:00
COPYING.txt Add license details and give credit to more authors (based on git shortlog) 2014-07-26 16:16:47 -07:00
extension.json Skip registering RL modules depending on VisualEditor 2016-10-14 23:45:03 +02:00
Gruntfile.js Add stylelint and make required style fixes 2016-05-17 18:21:30 +01:00
MIT-LICENSE.txt VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
package.json build: Fix stylelint devDependencies 2016-08-05 10:48:16 -07:00
phpcs.xml Add php code sniffer 2015-12-16 13:11:00 +00:00
README.md Store references in page_props and cache 2016-02-10 14:47:02 +01:00

Cite

The Cite extension provides a way for users to create references as footnotes to articles.

See https://www.mediawiki.org/wiki/Extension:Cite for detailed documentation.

Configuration

  • $wgCiteStoreReferencesData: If set to true, references are saved in the database so that other extensions can retrieve them independently of the main article content.
  • $wgCiteCacheReferencesDataOnParse: ($wgCiteStoreReferencesData required) By default, references are cached only on database access. If set to true, references are also cached whenever pages are parsed.