Commit graph

159 commits

Author SHA1 Message Date
Claire 88f99bafc8
Add searchaux class to infobox output (#126)
In CirrusSearch, content can be wrapped in class="searchaux" to deprioritize it
from search results.[1] There isn't much use I can think of for infoboxes to be
directly displayed in search results.

Additionally, commit f558c16 adds the noexcerpt class to the infobox, hiding
the infobox from Extension:TextExtracts,[2] an extension that extracts texts
from pages.

[1]: https://www.mediawiki.org/wiki/Help:CirrusSearch#Exclude_content_from_the_search_index
[2]: https://www.mediawiki.org/wiki/Extension:TextExtracts#Configuration_settings

Co-authored-by: BlankEclair <blankeclair@waifu.club>
2024-11-25 14:33:19 -07: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
lkucharczyk 48a68ce450 Render <panel> and <section> tags 2019-02-24 23:05:18 +01:00
lkucharczyk 15f3b9e777 Port new data and infobox attributes (#16) 2019-02-03 17:53:34 +01:00
lkucharczyk e84e5c1e6c Add support for name attribute 2019-02-02 23:34:48 +01:00
Luqgreg ad504e4c07 Add data-source attributes to html output 2018-12-27 02:01:19 +01:00
lkucharczyk f558c16a3d
Add noexcerpt class to infobox wrapper #17 2018-12-25 19:01:56 +01:00
Luqgreg 1fec9e640c Add infobox type attribute 2018-12-23 01:04:50 +01:00
Luqgreg a5f5619b4d Add an option to use divs instead of headings in PI output 2018-09-22 15:31:32 +02:00
Luqgreg 296c523935 Change .pi-image to .pi-media 2018-08-12 15:56:54 +02:00
Luqgreg 73da0358bf Add audio support 2018-08-12 13:31:01 +02:00
Luqgreg 44038371e7 Rename NodeImage to NodeMedia 2018-08-12 11:45:29 +02:00
Luqgreg d55e718d69 Add inline styles to horizontal group header
Backport of my fix proposed on Wikia/app repo: https://github.com/Wikia/app/pull/15746
2018-08-09 11:41:31 +02:00
Luqgreg 7fe3a39d1d Mustache -> Handlebars 2018-08-08 11:31:33 +02:00
Luqgreg 52197e5c22 Add single video support 2018-08-07 14:13:14 +02:00
Luqgreg 2eb4f15922 WikiaFileHelper and NodeImage cleanup 2018-08-04 19:12:35 +02:00
Luqgreg 7717b0699e Fix image collection template and extracting images from tabber 2018-08-03 14:24:42 +02:00
Luqgreg 4673bb1743 Remove render service for mobile devices 2018-08-01 18:06:09 +02:00
Luqgreg 7e3aeabafd Smart group fix 2018-07-31 12:29:24 +02:00
Luqgreg 7f933d36ba Remove Europa theme 2018-07-25 17:32:24 +02:00
Mateusz Rybarski c230c296b6 XW-248: remove old templates from PortableInfoboxMobileRenderService 2018-03-20 12:33:11 +01:00
Mateusz Rybarski 9868d5404c XW-4654: remove unnecessary data-component attributes 2018-03-15 16:17:08 +01:00
Mateusz Rybarski f1edb9aaf4 XW-4654: support simplifyRendering query param to avoid icache issues 2018-03-15 12:08:54 +01:00
Mateusz Rybarski 8344f16a76 XW-4654: missing caption for PI image 2018-03-13 15:30:52 +01:00
Mateusz Rybarski 76e8cba2a3 XW-4654: render action buttons for galleries in PI, fix caption markup for galleries in PI 2018-03-13 09:57:57 +01:00
Mateusz Rybarski 8b15c4e6ab XW-4654: adjust attributes in pi mobile images 2018-03-09 17:03:23 +01:00
Mateusz Rybarski 7a38c889e0 XW-4654: use thumbnail2x in infoboxes 2018-03-09 13:07:11 +01:00
Mateusz Rybarski 9000685b23 XW-4654: set data-srcset for mobile hero image 2018-03-09 11:29:28 +01:00
Mateusz Rybarski 2b23366439 XW-4654: srcset for images in article 2018-03-07 10:08:27 +01:00
Mateusz Rybarski 79f1e2f049 XW-4654: add data-file attribute to figure elements 2018-03-06 12:59:08 +01:00
JamesHawking 9837bcf2ad XW-4724 | Add video icon to Infobox Hero template. 2018-03-06 12:22:47 +01:00
JamesHawking 4b7c4eff2a XW-4724 | Add video icons to video type. 2018-03-05 17:46:11 +01:00
Mateusz Rybarski f412c3a9bd XW-4654: render hero image for second and every next PI, add lazyload class to infoboxes 2018-03-05 16:00:40 +01:00
Mateusz Rybarski 9f9dc7ae79 XW-4654: data-attrs for galleries in PI 2018-03-02 16:47:26 +01:00
Mateusz Rybarski 6226a58247 XW-4654: add data-src and lazyload class to images 2018-02-28 13:30:39 +01:00
Mateusz Rybarski 64f23a89e8 XW-4654: render PI galleries 2018-02-28 10:03:49 +01:00
Karol Tatała 3de501ca54 XW-4529 | pi class for mobile portable-infoboxes 2018-02-14 20:08:35 +01:00
Mateusz Rybarski 6ce472f0c2 XW-4331: increase play icon in Portable Infoboxes to medium size 2018-01-03 08:36:06 +01:00
Mateusz Rybarski a7629aebb8 XW-4331: remove duration from thumbnails 2017-12-28 11:56:08 +01:00
Mateusz Rybarski 4844ba13e1 XW-4331: update play icon for videos in a lot more places 2017-12-22 11:55:57 +01:00
Jakub Olek 3a30c73c16 XW-4045 | Remvove a tags that href starts with javascript from nodeimage 2017-10-03 10:52:40 +02:00
Jakub Olek 755e301633 XW-4045 | Escape caption in galleries in PI 2017-10-03 10:27:19 +02:00
idradm 3c1d61dbcb Merge branch 'dev' into XW-2473 2017-01-13 16:18:53 +01:00
idradm 35ddb454af XW-2569 fix tests, close html tag correctly 2017-01-13 16:17:01 +01:00
idradm d3bbbe4832 XW-2569 move spacing class to inner element 2017-01-12 14:31:58 +01:00
idradm 507d7cf754 XW-2569 restructure smart groups 2017-01-12 14:11:46 +01:00
idradm a2d081b230 XW-2569 introduce smart group wrapper 2017-01-12 12:40:56 +01:00
idradm 22bfec0f57 XW-2569 render smart wrapped items 2017-01-10 15:24:39 +01:00
Mateusz Rybarski 11b917d0f7 XW-2444: minor cr remarks 2016-12-28 15:51:33 +01:00
Mateusz Rybarski c5c1a2c071 XW-2444: adding tests 2016-12-28 13:36:57 +01:00