mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 08:50:07 +00:00
99d23ac841
We noticed the group="…" attribute was the only one that was not trimmed. Does this mean it was possible to have two groups "a" and " a"? It turns out: no. This was never possible because the parser already trims all attributes before calling this code. I tried to come up with the worst possible test case, but it succeeds, even with very old versions of this codebase. I suggest to remove the extra trimming from this codebase and rely on what the parser provides. Note the content is special and *not* trimmed by default. Change-Id: Idff015447d7156ba7b5c03a5c423f199a71349f2 |
||
---|---|---|
.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.