CosmicAlpha
48c4ccdde1
Fix PageImages compatibility with MediaWiki 1.43+ ( #136 )
2024-11-21 11:01:11 -07:00
CosmicAlpha
5736d9bfe1
Prevent DivisionByZeroError in getThumbnailSizes ( #130 )
2024-09-13 06:26:06 +08:00
MJ
1c52d83867
Add wgPortableInfoboxUseFileDescriptionPage ( #122 )
...
Fixes #111
Co-authored-by: BlankEclair <blankeclair@waifu.club>
2024-05-07 11:26:46 -06:00
CosmicAlpha
1a3a742bca
Fix PageImages compatibility with MediaWiki 1.42+ ( #120 )
2024-04-13 10:59:53 -06:00
CosmicAlpha
3aaa4fbea6
Remove the need to set $wgTidyConfig — always force no pwrap ( #116 )
...
Also fixes fatals on MediaWiki 1.42
2024-04-01 12:52:06 -06:00
alex4401
eb55d89e77
Output any image candidate markers generated by PageImages ( #105 )
...
* Output any image candidate markers generated by PageImages
wikimedia/mediawiki-extensions-PageImages#768464d changed how lead images are identified within PageImages, and since then an HTML comment in the form of `MW-PAGEIMAGES-CANDIDATE-$ID` is output by`doParserModifyImageHTML`, where the ID is an index in the extension output data's list of image metadata. These comments should find a way into the ParserOutput as the extension looks for those comments in a chosen document fragment when identifying qualifying candidates out of all images gathered through `onParserModifyImageHTML`.
This change does not affect compatibility with older PageImages (only the "new" hook's being called already).
* Default htmlAfter to null and update tests to expect it
Follow-up to my previous PageImages commit.
2023-07-24 11:13:33 -06:00
CosmicAlpha
a105effa60
Fix PageImages compatibility with MediaWiki 1.41+ ( #103 )
2023-07-01 19:01:21 -06:00
CosmicAlpha
98d4e900af
Fix PageImages compatibility with MediaWiki 1.40 ( #102 )
2023-07-01 11:44:34 -06:00
CosmicAlpha
e5ca418763
Add support for PHP 8.0 and PHP 8.1 ( #93 )
2023-01-13 14:08:52 -07:00
CosmicAlpha
574e709a45
Fixes for 1.39 ( #90 )
2022-12-06 17:19:24 -07:00
Lens0021
5f13d93478
Add wgPortableInfoboxResponsiblyOpenCollapsed ( #78 )
...
* Add wgPortableInfoboxResponsiblyOpenCollapsed
* Cast config to bool
2022-04-16 23:48:03 -06:00
Lens0021
f998d807a1
Replace deprecated BeforeParserrenderImageGallery ( #75 )
2022-04-15 09:58:30 -06:00
Lens0021
323ce57065
Lowercase color value at first ( #76 )
2022-04-15 09:56:38 -06:00
Lens0021
f8802fde1d
Fix all failed experimental CIs ( #74 )
2022-04-14 09:54:03 -06:00
Lens0021
e562c908e8
Add support for MediaWiki 1.38 ( #73 )
2022-04-13 20:47:36 -06:00
Universal Omega
643df1c8ec
Add PortableInfoboxMagic ( #69 )
2022-04-01 15:22:43 -06:00
Universal Omega
c901aa9be1
Fix PageImages support for MediaWiki 1.38+ ( #63 )
2022-03-11 13:50:45 -07:00
Universal Omega
fffbcaac5e
Pass array to ParserOutput::addModules()
/addModuleStyles()
( #65 )
...
To fix deprecation notices on MediaWiki 1.38+
2022-03-11 13:48:19 -07:00
Universal Omega
44c3389d5a
Add use
statements ( #64 )
2022-03-11 13:35:51 -07:00
Universal Omega
c1fd031956
Add InfoboxBuilder alias to Special:PortableInfoboxBuilder ( #56 )
2022-01-07 22:45:21 -07:00
Universal Omega
b0a072ff4a
PortableInfoboxBuilder: actually check permissions
2021-12-30 15:50:10 -07:00
Universal Omega
c934b05a49
Fix restriction — must be string
2021-12-19 11:01:48 -07:00
Universal Omega
1264c03a98
Rename Special:InfoboxBuilder to Special:PortableInfoboxBuilder ( #47 )
2021-12-18 19:59:14 -07:00
Universal Omega
b63948a833
Fix restriction ( #46 )
2021-12-18 19:46:24 -07:00
Universal Omega
25c6c90bae
Add infobox builder ( #37 )
2021-12-17 11:00:14 -07:00
Universal Omega
4a0bac951a
Actually run QueryAllInfoboxesTest ( #43 )
2021-12-16 14:13:54 -07:00
Universal Omega
a7a41fa0f1
Add tests for ApiQueryAllInfoboxes ( #42 )
2021-12-15 16:19:47 -07:00
Universal Omega
de39a61206
Fix tests ( #41 )
2021-12-15 15:01:13 -07:00
Universal Omega
b1910b5aec
Remove BlockLevelPass hack ( #40 )
2021-12-03 12:28:38 -07:00
Universal Omega
359ba27cf3
Fix DBUnexpectedError
exception ( #34 )
2021-10-13 13:58:43 -06:00
Universal Omega
16d1f4744c
Replace PageContentSave hook with MultiContentSave ( #27 )
2021-09-14 15:26:23 -06:00
Universal Omega
2f18d849b2
Cleanup
2021-09-12 18:47:35 -06:00
Universal Omega
afb186ddb7
Enable PHPCS on all PHP and MW version tests and add more Phan tests ( #14 )
2021-09-12 15:07:34 -06:00
Universal Omega
0ec019afa5
Tidy: Don't pwrap ( #12 )
2021-09-12 11:43:20 -06:00
Universal Omega
f3d702496e
Rename files ( #10 )
2021-09-12 10:42:37 -06:00
Universal Omega
42778958ab
Add PHPUnit tests ( #7 )
2021-09-11 17:07:07 -06:00
Universal Omega
a62b055cfe
Better CI tests ( #6 )
2021-09-11 12:55:27 -06:00
Universal Omega
385453a5a1
Add return value
2021-09-09 22:03:06 -06:00
Universal Omega
f5fd1d170e
Add return value
2021-09-09 22:02:19 -06:00
Universal Omega
64124410b5
Add return value
2021-09-09 22:01:31 -06:00
Universal Omega
79046437fd
Add CI ( #3 )
2021-09-09 20:52:19 -06:00
Universal Omega
2f714757bb
Remove usage of Revision class
...
This could be replaced with `RevisionRecord::FOR_PUBLIC` but `FOR_PUBLIC` is the default, so not setting this at all maintains more forward and backward compatibility.
2021-09-09 16:18:42 -06:00
Universal Omega
7a32675410
Fix "Call to a member function getMaxPPNodeCount() on null"
2021-09-09 15:22:32 -06:00
Universal Omega
1ae720077e
Replace deprecated wgParser ( #1 )
2021-06-03 17:38:46 -06:00
Universal Omega
f104d7bac0
Fix $text returning null within internalParse
2021-06-03 14:45:57 -06:00
Universal Omega
490cea5f47
Fix fatal
2021-06-02 11:55:12 -06:00
Universal Omega
6a31cce3a5
Replace removed wgContLang
2021-06-02 10:52:59 -06:00
Universal Omega
e02ed1ed13
support MediaWikiServices::getInstance()->getTidy() on MW 1.36+
2021-05-27 20:55:53 -06:00
Universal Omega
98b0038c92
use MediaWikiServices::getInstance()->getParser()
2021-05-27 20:54:53 -06:00
lkucharczyk
8d2d9d6594
Fix #35 and panel rendering
2020-09-29 18:56:06 +02:00