mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-12 09:10:32 +00:00
4152c6cdf4
The class="mw-cite-backlink" is part of a message. It should be considered code and not be customized, but can be. Frwiki for example localized it. The new code still hopes to find the class, and still hopes the first child is the text node containing the plain text up arrow. (See the message "cite_references_link_many" which contains all this.) This code path is kept because it is more performant. If the class is not found, the upwards traversal done via .closest() stops at the <li>. It then traverses down into the firstChild nodes, hoping to find the plain text up arrow this way. This patch makes the code work with the customizations found in frwiki. Bug: T205270 Bug: T210508 Change-Id: I32552ebe820ee12aea1a75aa17af11298dc7536a |
||
---|---|---|
i18n | ||
includes | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AUTHORS.txt | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING.txt | ||
extension.json | ||
Gruntfile.js | ||
MIT-LICENSE.txt | ||
package.json | ||
README.md |
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.