mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
65c8967c32
This fixes a whole bunch of inconsistencies: * The dir attribute is now trimmed, as most others already are. This is an actual user-facing change. * The internal representation is now false in case the value was invalid, not an empty string any more. * Null means the attribute was not present. This is now always used, even in the return values that are meant to represent an error state. No existing behavior changes. * The internal representation does not contain an HTML snippet any more, but the raw value "ltr" or "rtl", or null. Note this might influence the API, because the API actually exposes the internal representation. However, we are pretty sure the API is not used anywhere. Even if, exposing HTML code was most certainly an unwanted and unexpected effect of the patch that introduced the dir attribute. This does make this a bugfix, I would argue. Change-Id: Ic385d9ab36fa0545c374d3d63063028ae4e449d4 |
||
---|---|---|
.phan | ||
i18n | ||
modules | ||
src | ||
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-lock.json | ||
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.$wgCiteCacheRawReferencesOnParse
: ($wgCiteStoreReferencesData
required) By default, references are cached only on database access. If set to true, references are also cached whenever pages are parsed.