Go to file
Ed Sanders 753d87b072 Re-use internalList when building index
Calling #getItemNode on the un-initalised internalList caused
a tree rebuild of the sub-document.

On a page with 200 references this cuts the time it takes to
render the re-use list from ~2000ms to ~1000ms.

Bug: T134975
Change-Id: I696a965e88338e1bec2a14f61dab158c56728f2e
2016-11-05 18:05:59 +00:00
i18n Localisation updates from https://translatewiki.net. 2016-11-04 22:48:07 +01:00
includes Convert bugzilla number to phab link 2016-09-29 15:19:16 +01:00
modules Re-use internalList when building index 2016-11-05 18:05:59 +00:00
tests/parser Move parser tests to test directory 2016-09-20 14:33:36 +00:00
.eslintrc.json build: Replace jscs+jshint with eslint 2016-11-02 12:50:48 +00:00
.gitignore composer test entry point 2015-11-23 22:15:36 +01:00
.gitreview Whoops, track not trace 2016-10-24 17:02:15 -07: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 Move parser tests to test directory 2016-09-20 14:33:36 +00:00
Gruntfile.js build: Replace jscs+jshint with eslint 2016-11-02 12:50:48 +00:00
MIT-LICENSE.txt VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
package.json build: Replace jscs+jshint with eslint 2016-11-02 12:50:48 +00: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.