Go to file
Adam Wight 6ea3a8c696 Try to always limit our document references to the current fragment
Reverses the previous logic which traversed up from a fragment to get
the full document's refs.  Much other code in VE isn't ready for this
behavior, for example we can see list-defined refs but not inline refs
defined outside of the fragment.

This patch will ensure that we're only looking at refs accessible from
the current fragment, and prevents caching on fragments because the
cache uses `persistentStorage`, which is shared between fragments and
their parent document.

Bug: T374068
Change-Id: Ia38098f8b3e5a9d24c2206e11edab37d60209225
2024-09-10 12:26:32 +02:00
.phan Add ReferencePreviews config checks to Cite extension 2024-04-25 12:50:27 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-09-09 09:22:11 +02:00
modules Try to always limit our document references to the current fragment 2024-09-10 12:26:32 +02:00
src [refactor] Rewrite context as service 2024-09-06 16:26:20 +02:00
tests Try to always limit our document references to the current fragment 2024-09-10 12:26:32 +02:00
.eslintrc.json Move reference previews to Cite extension 2024-03-12 17:43:51 +01:00
.gitignore Move Cypress tests under tests/ directory 2024-04-04 13:06:26 +00:00
.gitreview
.mailmap .mailmap: Add bot contributors so they're easily ignored 2024-03-22 16:03:23 +00:00
.npmrc Move Cypress tests under tests/ directory 2024-04-04 13:06:26 +00:00
.phpcs.xml Ignore cypress generated PHP files 2024-09-06 14:28:29 +02:00
.stylelintrc.json build: Update stylelint config 2023-05-30 20:18:01 +00:00
AUTHORS.txt Add main authors of the current non-Parsoid implementation 2024-04-03 12:41:25 +02:00
CODE_OF_CONDUCT.md
composer.json build: Updating composer dependencies 2024-08-11 03:53:05 +00:00
COPYING.txt
extension.json [refactor] Rewrite context as service 2024-09-06 16:26:20 +02:00
Gruntfile.js Move Cypress tests under tests/ directory 2024-04-04 13:06:26 +00:00
jsdoc.json Clean up reflist usage of MWGroupReferences 2024-08-28 07:45:39 +02:00
MIT-LICENSE.txt
package-lock.json build: Updating micromatch to 4.0.8 2024-08-24 17:46:15 +00:00
package.json build: Update jsdoc-wmf-theme to 1.1.0 2024-07-18 13:53:28 +02:00
README.md Clean up top-level docs 2024-03-12 12:23:18 +01:00

The Cite extension to MediaWiki provides a way for wiki editors to add references and footnotes to articles.

See mw:Extension:Cite for technical documentation on installing and configuring the extension. See mw:Help:Cite for user documentation.

Cite is responsible for implementing the <ref> and <references> tags in wikitext. Integrations are provided for the legacy wikitext parser, Parsoid, WikiEditor, VisualEditor, and the reading interface.