mediawiki-extensions-ImageMap/extension.json
Arlo Breault b2113e0154 Add back description links when !$wgParserEnableLegacyMediaDOM
The approach taken here is the same as in core for magnify links on
thumbs in Id46d1b2ab1af3baebff13e10f1485f3cfd9a4b37

The gist is that resource attributes are added on the mw-file-element so
that the necessary url is present in the html.  A class is also added to
the wrapper element that designates where the link should be positioned.
Finally, a script adds the link which styles in appropriately.

Bug: T329364
Depends-On: Id46d1b2ab1af3baebff13e10f1485f3cfd9a4b37
Change-Id: I20130fd39135dfd5074590ee9c2b6e01693384e4
2023-05-22 15:22:42 +00:00

46 lines
882 B
JSON

{
"name": "ImageMap",
"author": "Tim Starling",
"url": "https://www.mediawiki.org/wiki/Extension:ImageMap",
"descriptionmsg": "imagemap_desc",
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.35.0"
},
"MessagesDirs": {
"ImageMap": [
"i18n"
]
},
"HookHandlers": {
"main": {
"class": "MediaWiki\\Extension\\ImageMap\\ImageMap"
}
},
"Hooks": {
"ParserFirstCallInit": "main"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\ImageMap\\": "includes/"
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteExtPath": "ImageMap"
},
"ResourceModules": {
"ext.imagemap": {
"packageFiles": [
"resources/ext.imagemap.js"
],
"dependencies": [
"ext.imagemap.styles"
]
},
"ext.imagemap.styles": {
"styles": "resources/ext.imagemap.styles.less"
}
},
"manifest_version": 2
}