Commit graph

7 commits

Author SHA1 Message Date
CosmicAlpha 025f584752
Fix Phan 2024-05-25 00:15:46 +08:00
CosmicAlpha 6455440d78
Fix PHPCS 2024-05-25 00:12:46 +08:00
CosmicAlpha 538886042d
Fix PHPCS 2024-05-25 00:11:30 +08:00
Ádám Domonkos df4ff9632a
PageImages support for mode=gallery on non file pages (#275)
In gallery mode, attempting to automatically detect whether:
- PageImages is enabled
- If it is, if a non file page has a PageImage
If both are true, it should try to use the PageImage for the gallery and the page name for the image caption.

Right now, it also makes the page name in the caption a link, and points the image link to the page as well. Could not figure out how to make this behavior optional.

Gallery mode for file pages should be untouched.

Notes:
- This behavior is similar, but not a perfect match to DPL_(Wikimedia)'s PageImages in gallery mode.
- Unsure if some of the solutions are the most optimal. The way its detecting if PageImages is enabled is a bit clumsy.

Co-authored-by: CosmicAlpha <cosmic.alpha24@gmail.com>
2024-05-25 00:04:07 +08:00
CosmicAlpha 693336b9fd
Add support for PHP 8.0 and PHP 8.1 (#216) 2023-01-13 14:12:14 -07:00
Universal Omega af9d8a4f5e
phpcs: enable SpaceBeforeSingleLineComment.NewLineComment (#138) 2022-03-20 11:11:35 -06:00
Universal Omega af983cf2df
Re-namespace and use AutoloadNamespaces (#113) 2022-03-13 13:57:34 -06:00