Commit graph

16 commits

Author SHA1 Message Date
Subramanya Sastry d9a7fea019 Move Parsoid implementation of ImageMap from Parsoid repo
* There have been no changes to the code except for:
  - class is now called ParsoidImageMap with a matching file name
  - the namespace is changed to MediaWiki\Extension\ImageMap.
  - adding phan directives to deal with Parsoid's DOM proxies
    which phan doesn't seem to be see here.

* Parsoid's SiteConfig extension registration code simply overwrites
  the extConfig array for a tag name. So, keeping the config and
  implementation identical ensures that no matter which version of
  code is registered (based on load order), we get the same behavior.

* Once this rolls out on the next train, we can remove the code
  from Parsoid.

* Future patches might refactor the two implementations to extract
  common functionality or merge code into a single file.

Change-Id: I6cffa4420d2daa70174fa926d5c7a4d983792969
2023-09-19 16:21:40 -05:00
James D. Forrester 2b82aea178 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I4d99a3c5fe9ada4c52efa911626eb2c41cf057cb
2023-08-19 13:24:11 +08:00
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
Reedy 76a921145e Switch to HookHandlers
Bug: T271015
Change-Id: I3a0b766dd9f64494a842f1bb1e64f6a51b146692
2022-08-26 19:13:13 +00:00
Reedy e0ef563437 Correct namespacing to match best practices
Bug: T303105
Change-Id: Ie72eb7c2dfcf9a7d5f95e9130d3631f2aa7d542e
2022-03-05 15:10:40 +00:00
Reedy 74bcec0dd7 Convert to manifest_version 2
Bug: T252470
Change-Id: Iac1afb426fcc662fa9f2edd4c960878869f202ea
2020-05-12 00:02:53 +01:00
Reedy 9e45ad3f6f Namespace extension
Change-Id: Ifbbb52819789bf5ad3e35dd56f6e1f48f1d85aba
2020-04-19 01:18:57 +00:00
Umherirrender c6a8e7fefe Use MediaWikiServices::getRepoGroup
This required MediaWiki 1.34

Change-Id: I4c0887e2d9fc8882805292d7ea5dbc0a68ce34a8
2020-03-14 14:36:27 +01:00
DannyS712 b37c0818f9 extension.json - don't use array syntax when hooks only have 1 handler
Change-Id: I0a5ccdd509da237de95772514acd0ac56566499f
2020-03-11 09:40:30 +00:00
Reedy f0355fab4c Update MediaWiki namespaced AtEase global functions
Change-Id: Ic1342ad266084bd1ad6ae89e31020afef825870d
2019-02-13 05:29:51 +00:00
Jayprakash12345 a6cb086374 Update extensions to take advantage of parser test autodiscovery
Bug: T170037
Change-Id: I8eae59053930f7621c812c754d5f4fa5314087e1
2018-04-13 15:23:25 +00:00
Kunal Mehta 3297749b56 Move classes into includes/
Change-Id: I390b0e09406e61c19e2e3eb9a115327cf013ad3a
2018-02-24 13:10:38 -08:00
Kunal Mehta 8420a0ee09 Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: I0b4d6b5eb3e210a131937e65268091ec83f0b46c
2018-01-31 23:12:14 -08:00
Kghbln 65fb633a98 Tweaking license information
* Add license label to extension.json
* Make composer.json consistent with COPYING
  GPL-2.0+ is fine (see T130531)

Bug: T123943
Bug: T130531
Change-Id: I6e4d718a413a938a247ede847367769eefa6156a
2016-04-12 18:53:20 +00:00
Kunal Mehta 46e72df2c8 Set manifest_version in extension.json
Bug: T100745
Change-Id: Ib55d34a8e7a907a802dbf784470644008444b5bc
2015-05-28 20:40:06 -07:00
Kunal Mehta df4b7a8fac Add extension.json, empty PHP entry point
Depends upon I9a736a4c0ff73 in MediaWiki core

Bug: T87929
Change-Id: I0ec2d98321b319b4e9e6222b867cc9958dbfe0cf
2015-05-02 23:35:33 -07:00