Go to file
Antoine Musso fc48a763e0 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

Remove the message "cite-ve-othergroup-item" which got introduced in
REL1_28 by 724d890 and is not in REL1_27.

Adjust base directory for REL1_27 since CiteHooks.php is at the root
when REL1_28 had it moved under includes/Cite.hooks.php

Change-Id: Idf769e0149f93c099a94b1b7a6cb203273dab881
(cherry picked from commit 5fcecf9e5f)
2017-02-17 20:24:41 +01:00
i18n Localisation updates from https://translatewiki.net. 2016-04-24 22:32:00 +02:00
modules ve.dm.MWReferenceNode: Override static cloneElement instead of getter 2016-05-04 13:39:38 +00:00
.gitignore composer test entry point 2015-11-23 22:15:36 +01:00
.gitreview Creating new REL1_27 branch 2016-05-04 14:23:25 -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
ApiQueryReferences.php Relicense ApiQueryReferences as GPL-2.0+ 2016-06-19 06:11:44 +00: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
Cite_body.php Add lang and dir attributes to cite errors 2016-04-30 16:16:58 +03:00
CiteCSSFileModule.php VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
CiteDataModule.php Use ResourceLoaderContext::msg() in CiteDataModule 2016-03-11 21:56:36 +00:00
CiteHooks.php Skip registering RL modules depending on VisualEditor 2017-02-17 20:24:41 +01:00
citeParserTests.txt Add lang and dir attributes to cite errors 2016-04-30 16:16:58 +03:00
composer.json build: Updating development dependencies 2016-01-05 10:32:19 -08: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 2017-02-17 20:24:41 +01:00
Gruntfile.js VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
MIT-LICENSE.txt VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
package.json build: Updating development dependencies 2015-12-29 11:15:53 -08: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
SpecialCite.php Add SpecialCite stub file for backwards-compatability 2015-05-25 15:01:42 +02: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.