mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-15 19:10:15 +00:00
70e14ebaeb
This stores references in page_props during links update in compressed JSON form. If the size is too big, it's broken up in several parts to fit, which is very unlikely to occur more than once. When the data is retrieved from the db, it's always cached. If set in config, it's also saved in the cache on parse. If not, the cache is invalidated when references are modified. Uses cases include : section preview to also show refs defined elsewhere on the page (T124840) and MobileFrontend (T123328). For the later, this still needs API support (T123290). There's a soft dependency on the core change I0c73b3d181f32502da75687857ae9aeff731f559. Bug: T125329 Change-Id: I7b106254b8f264f93b0f0c9cfa89f65adeeea4f0
190 lines
5.1 KiB
JSON
190 lines
5.1 KiB
JSON
{
|
|
"name": "Cite",
|
|
"author": [
|
|
"Ævar Arnfjörð Bjarmason",
|
|
"Andrew Garrett",
|
|
"Brion Vibber",
|
|
"Ed Sanders",
|
|
"Marius Hoch",
|
|
"Steve Sanbeg",
|
|
"Trevor Parscal",
|
|
"..."
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Cite",
|
|
"descriptionmsg": "cite-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "parserhook",
|
|
"MessagesDirs": {
|
|
"cite": "i18n",
|
|
"ve-cite": "modules/ve-cite/i18n"
|
|
},
|
|
"Hooks": {
|
|
"ParserFirstCallInit": [
|
|
"Cite::setHooks"
|
|
],
|
|
"ContentHandlerDefaultModelFor": [
|
|
"CiteHooks::onContentHandlerDefaultModelFor"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"CiteHooks::onResourceLoaderTestModules"
|
|
],
|
|
"LinksUpdateConstructed": [
|
|
"CiteHooks::onLinksUpdateConstructed"
|
|
],
|
|
"LinksUpdate": [
|
|
"CiteHooks::onLinksUpdate"
|
|
],
|
|
"LinksUpdateComplete": [
|
|
"CiteHooks::onLinksUpdateComplete"
|
|
]
|
|
},
|
|
"ResourceModules": {
|
|
"ext.cite.styles": {
|
|
"styles": {
|
|
"ext.cite.styles.css": {},
|
|
"ext.cite.print.css": {
|
|
"media": "print"
|
|
}
|
|
},
|
|
"position": "bottom"
|
|
},
|
|
"ext.cite.a11y": {
|
|
"scripts": "ext.cite.a11y.js",
|
|
"styles": "ext.cite.a11y.css",
|
|
"messages": [
|
|
"cite_references_link_accessibility_label",
|
|
"cite_references_link_many_accessibility_label"
|
|
],
|
|
"position": "bottom"
|
|
},
|
|
"ext.cite.style": {
|
|
"class": "CiteCSSFileModule",
|
|
"styles": "ext.cite.style.css",
|
|
"position": "top",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.cite.visualEditor.core": {
|
|
"scripts": [
|
|
"ve-cite/ve.dm.MWReferenceModel.js",
|
|
"ve-cite/ve.dm.MWReferencesListNode.js",
|
|
"ve-cite/ve.dm.MWReferenceNode.js",
|
|
"ve-cite/ve.ce.MWReferencesListNode.js",
|
|
"ve-cite/ve.ce.MWReferenceNode.js",
|
|
"ve-cite/ve.ui.MWReferencesListCommand.js"
|
|
],
|
|
"styles": [
|
|
"ve-cite/ve.ce.MWReferencesListNode.css",
|
|
"ve-cite/ve.ce.MWReferenceNode.css"
|
|
],
|
|
"dependencies": [
|
|
"ext.visualEditor.mwcore"
|
|
],
|
|
"messages": [
|
|
"cite-ve-referenceslist-isempty",
|
|
"cite-ve-referenceslist-isempty-default",
|
|
"cite-ve-referenceslist-missingref"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.cite.visualEditor.data": {
|
|
"class": "CiteDataModule"
|
|
},
|
|
"ext.cite.visualEditor": {
|
|
"scripts": [
|
|
"ve-cite/ve.ui.MWReferenceGroupInputWidget.js",
|
|
"ve-cite/ve.ui.MWReferenceSearchWidget.js",
|
|
"ve-cite/ve.ui.MWReferenceResultWidget.js",
|
|
"ve-cite/ve.ui.MWUseExistingReferenceCommand.js",
|
|
"ve-cite/ve.ui.MWCitationDialog.js",
|
|
"ve-cite/ve.ui.MWReferencesListDialog.js",
|
|
"ve-cite/ve.ui.MWReferenceDialog.js",
|
|
"ve-cite/ve.ui.MWReferenceDialogTool.js",
|
|
"ve-cite/ve.ui.MWCitationDialogTool.js",
|
|
"ve-cite/ve.ui.MWReferenceContextItem.js",
|
|
"ve-cite/ve.ui.MWReferencesListContextItem.js",
|
|
"ve-cite/ve.ui.MWCitationContextItem.js",
|
|
"ve-cite/ve.ui.MWCitationAction.js",
|
|
"ve-cite/ve.ui.MWReference.init.js"
|
|
],
|
|
"styles": [
|
|
"ve-cite/ve.ui.MWReferenceContextItem.css",
|
|
"ve-cite/ve.ui.MWReferenceGroupInputWidget.css",
|
|
"ve-cite/ve.ui.MWReferenceIcons.css",
|
|
"ve-cite/ve.ui.MWReferenceResultWidget.css",
|
|
"ve-cite/ve.ui.MWReferenceSearchWidget.css"
|
|
],
|
|
"dependencies": [
|
|
"ext.cite.visualEditor.core",
|
|
"ext.cite.visualEditor.data",
|
|
"ext.cite.style",
|
|
"ext.visualEditor.mwtransclusion",
|
|
"ext.visualEditor.mediawiki"
|
|
],
|
|
"messages": [
|
|
"cite-ve-dialog-reference-editing-reused",
|
|
"cite-ve-dialog-reference-options-group-label",
|
|
"cite-ve-dialog-reference-options-group-placeholder",
|
|
"cite-ve-dialog-reference-options-name-label",
|
|
"cite-ve-dialog-reference-options-section",
|
|
"cite-ve-dialog-reference-title",
|
|
"cite-ve-dialog-reference-useexisting-full-label",
|
|
"cite-ve-dialog-reference-useexisting-label",
|
|
"cite-ve-dialog-reference-useexisting-tool",
|
|
"cite-ve-dialog-referenceslist-contextitem-description-general",
|
|
"cite-ve-dialog-referenceslist-contextitem-description-named",
|
|
"cite-ve-dialog-referenceslist-title",
|
|
"cite-ve-dialogbutton-citation-educationpopup-title",
|
|
"cite-ve-dialogbutton-citation-educationpopup-text",
|
|
"cite-ve-dialogbutton-reference-full-label",
|
|
"cite-ve-dialogbutton-reference-tooltip",
|
|
"cite-ve-dialogbutton-reference-title",
|
|
"cite-ve-dialogbutton-referenceslist-tooltip",
|
|
"cite-ve-reference-input-placeholder",
|
|
"cite-ve-toolbar-group-label"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.visualEditor.mwreference": {
|
|
"@comment": "Deprecated alias",
|
|
"dependencies": [
|
|
"ext.cite.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "Cite/modules"
|
|
},
|
|
"VisualEditorPluginModules": [
|
|
"ext.cite.visualEditor"
|
|
],
|
|
"config": {
|
|
"AllowCiteGroups": true,
|
|
"CiteCacheReferences": false,
|
|
"CiteStoreReferencesData": false,
|
|
"CiteCacheReferencesDataOnParse": false
|
|
},
|
|
"AutoloadClasses": {
|
|
"Cite": "Cite_body.php",
|
|
"CiteHooks": "CiteHooks.php",
|
|
"CiteDataModule": "CiteDataModule.php",
|
|
"CiteCSSFileModule": "CiteCSSFileModule.php"
|
|
},
|
|
"ParserTestFiles": [
|
|
"citeParserTests.txt"
|
|
],
|
|
"TrackingCategories": [
|
|
"cite-tracking-category-cite-error"
|
|
],
|
|
"manifest_version": 1
|
|
}
|