master - mediawiki/extensions/Cite - Gitiles
gerrit.wikimedia.org
mediawiki
extensions
Cite
master
commit
2a9ce92e32d7e8b107b4cdfdc4ae9f8476c61b12
log
tgz
author
thiemowmde
Tue Apr 21 11:20:08 2026 +0200
committer
jenkins-bot
Fri Apr 24 10:56:41 2026 +0000
tree
8b0853ebeaeeec746bbe0935bf3701be77cf2a36
parent
f0a0bae809ae00ffdd62ba6ad61e8d48169dd420
diff
Rename misleading getAllGroupNames to getListGroupNames

Also remove some dead code.

Change-Id:
I5ba1ada6898eafbc09767fa1e5dae685ed440878
modules/ve-cite/ve.dm.MWDataTransitionHelper.js
diff
modules/ve-cite/ve.dm.MWDocumentReferences.js
diff
modules/ve-cite/ve.ui.MWReferenceEditPanel.js
diff
modules/ve-cite/ve.ui.MWReferenceSearchWidget.js
diff
modules/ve-cite/ve.ui.MWReferencesListDialog.js
diff
5 files changed
tree: 8b0853ebeaeeec746bbe0935bf3701be77cf2a36
.phan/
CommunityConfigurationFallbacks/
docs/
i18n/
maintenance/
modules/
src/
tests/
.eslintrc.json
.gitignore
.gitreview
.mailmap
.npmrc
.phpcs.xml
.stylelintrc.json
AUTHORS.txt
CODE_OF_CONDUCT.md
composer.json
COPYING.txt
Doxyfile
extension.json
Gruntfile.js
jsdoc.json
MIT-LICENSE.txt
package-lock.json
package.json
README.md
README.md
Cite
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

and

tags in wikitext. Integrations are provided for the MediaWiki wikitext parser, Parsoid,
WikiEditor
VisualEditor
, and the reading interface.
Terminology
CE – ContentEditable, see
MDN
Cite – Citation, the act of referencing a source.
DC – Dublin Core, used as a prefix in Parsoid's RDFa.
Details – Attribute that marks a sub-reference as such as well as provides the sub-reference's extra content.
DM – Data model
List-defined reference (LDR) – When a named

is defined inside of a

section.
MW – MediaWiki
MWT – MediaWiki transclusion. Used by Parsoid in e.g.
about="#mwt1"
. This "about id" marks a "DOM forest" of un-nested siblings as belonging to the same template transclusion. More in the
Parsoid DOM spec
Note – An item in the reference list, a.k.a. a "footnote". Link targets use "note" since the first 2005 draft of this extension.
More details
Ref – Reference
Reflist – Refers to either community-maintained
{{reflist}}
templates or the raw

tag that marks the position in the article where the reference list should appear.
SA – Standalone
Selser – Selective serializer, an extra step in Parsoid's HTML to wikitext serialization to minimize the diff.
VE –
VisualEditor
WT – Wikitext
History
The Cite extension was actually meant to implement a

tag in
2005
. Because that conflicts with the HTML tag it became

the
same day
. In 2014 the tag was
removed
and moved to a separate
CiteThisPage
extension, along with the
Special:Cite
special page.
The original
2005
draft of this extension suggested a

syntax, e.g.

, and called that concept "key". This was changed to

just
3 days
later. Still the term "key" remained in various places. See
T299280
for the full history.
A 2019 draft suggested an alternate sub-referencing syntax where

was meant to address a parent reference by name. This got replaced with the
details="…"
syntax in 2025.