GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wikimedia/mediawiki-extensions-Cite: Github mirror of MediaWiki extension Cite - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

BranchesTags
Open more actions menu

Latest commit

 

History

6,816 Commits
6,816 Commits

Folders and files

NameName
Last commit message
Last commit date
.phan
.phan
 
 
CommunityConfigurationFallbacks
CommunityConfigurationFallbacks
 
 
docs
docs
 
 
i18n
i18n
 
 
maintenance
maintenance
 
 
modules
modules
 
 
src
src
 
 
tests
tests
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.gitreview
.gitreview
 
 
.mailmap
.mailmap
 
 
.npmrc
.npmrc
 
 
.phpcs.xml
.phpcs.xml
 
 
.stylelintrc.json
.stylelintrc.json
 
 
AUTHORS.txt
AUTHORS.txt
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
COPYING.txt
COPYING.txt
 
 
Doxyfile
Doxyfile
 
 
Gruntfile.js
Gruntfile.js
 
 
MIT-LICENSE.txt
MIT-LICENSE.txt
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
extension.json
extension.json
 
 
jsdoc.json
jsdoc.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

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 <ref> and <references> 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 <ref> is defined inside of a <references> 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 <references> 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 <cite> tag in 2005. Because that conflicts with the HTML tag it became <citation> 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 <ref[ key]> syntax, e.g. <ref Britannica>…</ref>, and called that concept "key". This was changed to <ref name="Britannica"> 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 <ref extends="Britannica"> was meant to address a parent reference by name. This got replaced with the details="…" syntax in 2025.

About

Github mirror of MediaWiki extension Cite - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

gerrit.wikimedia.org

Resources

Readme
GPL-2.0 license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

20 stars

Watchers

3 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.