mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-12 01:01:29 +00:00
7ce10d7539
To be honest I don't get why this lazy registration was done in the first place. None of the 4 other hooks should ever be called before the ParserFirstCallInit hook got called. Also, under which circumstances can the ParserFirstCallInit hook be called more than once? Both scenarios would be wrong, as far as I'm concerned. Either I'm missing something, or this code can indeed be simplified. Maybe it was something to make it more compatible with older MediaWiki versions? The only reason I can think of is: in all situations that do not involve a parser, having the 4 extra hooks registered is pointless. Does this waste space and/or runtime in the $wgHooks registry? Change-Id: I5ef1495f4ce7bce940fa5f8e700af3d2c4851a01
136 lines
3.5 KiB
JSON
136 lines
3.5 KiB
JSON
{
|
|
"name": "Cite",
|
|
"version": "1.0.0",
|
|
"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-or-later",
|
|
"type": "parserhook",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.34.0"
|
|
},
|
|
"MessagesDirs": {
|
|
"Cite": [
|
|
"i18n",
|
|
"i18n/api",
|
|
"modules/ve-cite/i18n"
|
|
]
|
|
},
|
|
"APIPropModules": {
|
|
"references": {
|
|
"class": "ApiQueryReferences"
|
|
}
|
|
},
|
|
"Hooks": {
|
|
"ParserAfterParse": "CiteParserHooks::onParserAfterParse",
|
|
"ParserBeforeTidy": "CiteParserHooks::onParserBeforeTidy",
|
|
"ParserClearState": "CiteParserHooks::onParserClearState",
|
|
"ParserCloned": "CiteParserHooks::onParserCloned",
|
|
"ParserFirstCallInit": "CiteParserHooks::onParserFirstCallInit",
|
|
"ContentHandlerDefaultModelFor": "CiteHooks::onContentHandlerDefaultModelFor",
|
|
"ResourceLoaderTestModules": "CiteHooks::onResourceLoaderTestModules",
|
|
"ResourceLoaderRegisterModules": "CiteHooks::onResourceLoaderRegisterModules",
|
|
"LinksUpdate": "CiteHooks::onLinksUpdate",
|
|
"LinksUpdateComplete": "CiteHooks::onLinksUpdateComplete",
|
|
"ResourceLoaderGetConfigVars": "CiteHooks::onResourceLoaderGetConfigVars",
|
|
"APIQuerySiteInfoGeneralInfo": "CiteHooks::onAPIQuerySiteInfoGeneralInfo"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.cite.styles": {
|
|
"styles": {
|
|
"ext.cite.styles.css": {},
|
|
"ext.cite.print.css": {
|
|
"media": "print"
|
|
}
|
|
},
|
|
"skinStyles": {
|
|
"minerva": "ext.cite.styles.minerva.less"
|
|
},
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.cite.style": {
|
|
"class": "CiteCSSFileModule",
|
|
"styles": "ext.cite.style.css",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "Cite/modules"
|
|
},
|
|
"attributes": {
|
|
"CodeMirror": {
|
|
"TagModes": {
|
|
"ref": "text/mediawiki"
|
|
}
|
|
},
|
|
"EventLogging": {
|
|
"Schemas": {
|
|
"ReferencePreviewsBaseline": 19489336,
|
|
"ReferencePreviewsCite": 19489328
|
|
}
|
|
},
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.cite.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"ConfigRegistry": {
|
|
"cite": "GlobalVarConfig::newInstance"
|
|
},
|
|
"config": {
|
|
"CiteBookReferencing": {
|
|
"description": "Development feature flag for Book Referencing, a way to nest citations. Please don't enable in production.",
|
|
"public": true,
|
|
"value": false
|
|
},
|
|
"CiteStoreReferencesData": {
|
|
"description": "If set to true, references are saved in the database so that other extensions can retrieve them independently of the main article content.",
|
|
"public": true,
|
|
"value": false
|
|
},
|
|
"CiteCacheReferencesDataOnParse": {
|
|
"description": "Requires $wgCiteStoreReferencesData. By default, references are cached only on database access. If set to true, references are also cached whenever pages are parsed.",
|
|
"public": true,
|
|
"value": false
|
|
},
|
|
"CiteVisualEditorOtherGroup": {
|
|
"public": true,
|
|
"value": false
|
|
},
|
|
"CiteResponsiveReferences": {
|
|
"public": true,
|
|
"value": true
|
|
}
|
|
},
|
|
"AutoloadClasses": {
|
|
"ApiQueryReferences": "includes/ApiQueryReferences.php",
|
|
"Cite": "includes/Cite.php",
|
|
"CiteHooks": "includes/CiteHooks.php",
|
|
"CiteDataModule": "includes/CiteDataModule.php",
|
|
"CiteCSSFileModule": "includes/CiteCSSFileModule.php",
|
|
"CiteParserHooks": "includes/CiteParserHooks.php",
|
|
"CiteParserTagHooks": "includes/CiteParserTagHooks.php"
|
|
},
|
|
"TrackingCategories": [
|
|
"cite-tracking-category-cite-error"
|
|
],
|
|
"manifest_version": 2
|
|
}
|