Commit graph

1982 commits

Author SHA1 Message Date
Thiemo Kreuz f92fed31c7 Turn all TemplateData .css files into .less files
This patch intentionally doesn't do anything else. Later patches will
make use of LESS features.

Change-Id: I7ce7fdba12aa9f5fb49a752706b83f831632bed6
2022-08-08 15:29:03 +02:00
jenkins-bot bc064ce8a2 Merge "Fix CSS styling of the HTML rendering broken since 2016" 2022-08-08 10:38:39 +00:00
jenkins-bot b776e18e71 Merge "Fix JSON export to fail on missing "params" key" 2022-08-08 10:37:55 +00:00
Thiemo Kreuz 8497d85a2d Fix CSS styling of the HTML rendering broken since 2016
Some time ago there was a little bit of custom CSS applied to the HTML
table rendering. This is broken since patch I74214ea from 2016. This
patch renamed all CSS classes but forgot to update the PHP code
accordingly.

I decided to not change the HTML rendering because these class names
might already be used in custom per-wiki or per-user CSS. Instead I
partly revert I74214ea.

Unfortunately, some of the styles are quite dramatic, don't look good
or just don't work. I decided to remove some. The argument is that
the HTML rendering looks the same for 6 years now. I don't see a good
reason to change it now.

In detail:
* Suggested values are not aliases and should not be rendered in
  gray.
* The message "no description" is rendered in gray and italics. But
  this was applied to the wrong DOM element and made everything else
  gray and italic as well.
* The color #777 is not readable, violating WCAG rules. While it's ok
  to dim aliases and such, it must be at least #555 or darker.
* The "nowrap" destroys the table the moment one of the parameters
  does have a longer name or alias. Let the browser handle this, as
  it did for 6 years now.
* Same for rendering aliases as individual, indented blocks. This
  makes the table unnecessarily big when there are many aliases, and
  just doesn't look right. Again, let's stick to what we had for
  6 years.

Change-Id: Idfa76eed6e2d68474c79d4674efce091cb031b66
2022-08-08 11:56:16 +02:00
Translation updater bot 17a7b167f6 Localisation updates from https://translatewiki.net.
Change-Id: Ifcb4bb5189ea8a4c9a846fcaa928825289f3e36f
2022-08-08 08:59:33 +02:00
Translation updater bot 719dc17364 Localisation updates from https://translatewiki.net.
Change-Id: If74f769d707391b574f29c60996335f29f2349c4
2022-07-29 08:54:08 +02:00
Translation updater bot 0ce899cfaf Localisation updates from https://translatewiki.net.
Change-Id: I90d318cbb53828878480f1dc943d64698048fd8d
2022-07-28 08:58:00 +02:00
Translation updater bot c3a1e2d85c Localisation updates from https://translatewiki.net.
Change-Id: I15f3b836bcc5c0c77a3d960cbfbf69521af84c29
2022-07-26 08:25:54 +02:00
Translation updater bot ab61837434 Localisation updates from https://translatewiki.net.
Change-Id: I10749ca7644e4b015d4c223e994d5a34e7b24ec0
2022-07-25 08:39:19 +02:00
Thiemo Kreuz bd0e348032 Fix JSON export to fail on missing "params" key
It's required via the spec. We should act as if it's always there,
even when the actual "original data object" doesn't contain it.

Bug: T307331
Change-Id: I129b0c77e701df6ebbdc39432360cea8f10575e8
2022-07-21 13:10:12 +02:00
Translation updater bot 1ba90da818 Localisation updates from https://translatewiki.net.
Change-Id: I05d4efb63a928634409d8d85bd6469c9455ab0cc
2022-07-20 08:28:26 +02:00
Translation updater bot f097873f30 Localisation updates from https://translatewiki.net.
Change-Id: I0cba5172d1b9ddf4920d17d47cfc4ebfbdcffee1
2022-07-15 08:47:01 +02:00
Translation updater bot fb9e281e20 Localisation updates from https://translatewiki.net.
Change-Id: I81b2edeae7886c0f6cec908feb1a8cc45c704271
2022-07-14 08:48:53 +02:00
WMDE-Fisch d1ffdc2b95 Remove $wgTemplateDataSuggestedValues feature flag
Feature is always enabled now.

Bug: T307188
Bug: T310684
Change-Id: Ic99c594ceec0020a6c9d20f0a4f10285b74ea9a8
2022-06-27 12:14:02 +02:00
Umherirrender 560819e270 Use WikiPageFactory to create WikiPage object
Bug: T297688
Change-Id: I5e6da574bd1377b492005adbc1aff3e97fe9c31b
2022-06-24 19:53:40 +02:00
Translation updater bot 11cde1c520 Localisation updates from https://translatewiki.net.
Change-Id: I626f3a2cb6995ecfec11d6b71cc1ba95ed4646d1
2022-06-24 09:31:26 +02:00
Translation updater bot b767bc6122 Localisation updates from https://translatewiki.net.
Change-Id: Ica91f96c656e8699d062201f73de849aea83f0c1
2022-06-22 08:14:02 +02:00
Translation updater bot 4735c59520 Localisation updates from https://translatewiki.net.
Change-Id: Ifad72011b2aefa074cb69baaf1eddca62bed10c6
2022-06-14 08:49:10 +02:00
Translation updater bot fd94278c8d Localisation updates from https://translatewiki.net.
Change-Id: I05cd39b5e7e8e36aa71240e75494e5c678f78550
2022-06-09 08:17:25 +02:00
Translation updater bot 437e201b73 Localisation updates from https://translatewiki.net.
Change-Id: I305af0e207edb4a38ae06fa2c758ff4bf4771ecf
2022-06-08 08:28:08 +02:00
Translation updater bot 0daa2445f7 Localisation updates from https://translatewiki.net.
Change-Id: Ibe24e8cb7c5559f3d9f2189cbf0a0643af24e3b2
2022-06-06 09:26:49 +02:00
Translation updater bot ee836ffd4f Localisation updates from https://translatewiki.net.
Change-Id: If9e0a10474e3d29d39d167a049a6ec5917ae0d55
2022-05-30 09:24:20 +02:00
libraryupgrader f11a51b034 build: Updating grunt to 1.5.3
Change-Id: I7d67392d53e5870fd8a26afffb2a17d1325af5d2
2022-05-27 02:00:48 +00:00
Translation updater bot 3d14042bd0 Localisation updates from https://translatewiki.net.
Change-Id: I3c57dcf65a0ecd5ceb622ff3de18427589fee5be
2022-05-25 08:33:00 +02:00
Translation updater bot f32eeeaae6 Localisation updates from https://translatewiki.net.
Change-Id: I990fb68f4af461aea269a3ceb597793e4179047f
2022-05-24 08:25:56 +02:00
libraryupgrader 1afc938fae build: Updating composer dependencies
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

Change-Id: I32e8470740a5716af9bc81e6c37559c4c9fee4bd
2022-05-21 15:34:34 +00:00
libraryupgrader be3b8e21c9 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1

npm:
* jsdoc: 3.6.7 → 3.6.10
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25

Additional changes:
* Set `name` in package.json.

Change-Id: Ie542c9310af57115b095df0546e5047052667618
2022-05-20 09:33:57 +00:00
Translation updater bot 4fb50ef137 Localisation updates from https://translatewiki.net.
Change-Id: I04e53afa884752cb90f84aba9da4db280073de17
2022-05-17 08:29:04 +02:00
Thiemo Kreuz e297e767f0 Streamline HTML rendering code for format messages
The idea is to make it a little easier to follow what's going on
here.

This also improves an error message when tests fail.

Change-Id: If35be8aefab5a1568d53a9ecdc4313a66f71317b
2022-05-16 18:04:27 +00:00
jenkins-bot 71392dc6d4 Merge "Add placeholder to avoid wikitext editor jumping down" 2022-05-13 21:49:37 +00:00
Translation updater bot 88422da69c Localisation updates from https://translatewiki.net.
Change-Id: I3516afa8c53a2376db045bcd56704aa17fe6d3ed
2022-05-13 08:26:44 +02:00
Translation updater bot 55f05d6793 Localisation updates from https://translatewiki.net.
Change-Id: Ib18972761c269c26415514c36e1a69abd39fc8ea
2022-05-11 08:12:13 +02:00
Translation updater bot 8457da19d7 Localisation updates from https://translatewiki.net.
Change-Id: I729e00aba394b76acba1aa082cae9f3edf996fa4
2022-05-09 08:12:25 +02:00
Ed Sanders ec61e01521 build: Update stylelint-config-wikimedia to 0.13.0
Change-Id: Ic0ffc40b4c863ae47b4805dacfda120122cb9304
2022-05-04 23:33:49 +01:00
Translation updater bot 1cec4b34db Localisation updates from https://translatewiki.net.
Change-Id: Ieb8b985c1ce507111b6b881945df2020f1e9f68f
2022-05-04 08:19:00 +02:00
Translation updater bot 54e49a00e6 Localisation updates from https://translatewiki.net.
Change-Id: I049735f2b6ab42cfd865acd45f41c335bacecc33
2022-05-03 08:45:46 +02:00
Translation updater bot 5dd8824f85 Localisation updates from https://translatewiki.net.
Change-Id: Ib440910d8921ed2a01f17b35e06164ce13000249
2022-04-29 08:43:51 +02:00
Translation updater bot 09fab16959 Localisation updates from https://translatewiki.net.
Change-Id: I31b6fc361b62f34ae928b213adb865d0c0cf0a79
2022-04-28 09:29:03 +02:00
Translation updater bot 716f148bac Localisation updates from https://translatewiki.net.
Change-Id: I5dbc37bc6421afebd529a18122dc3bd0c2032bcf
2022-04-27 08:08:45 +02:00
Thiemo Kreuz ff7470e316 Add placeholder to avoid wikitext editor jumping down
Bug: T279869
Change-Id: Ic8f9bf7c95b42422dc4b477f9c752f5e89b20dc7
2022-04-25 08:42:59 +00:00
Translation updater bot 2177ea8cbc Localisation updates from https://translatewiki.net.
Change-Id: I8f0b6f4cdce5dcec5b8c6ddde030afbbd659af06
2022-04-25 08:19:06 +02:00
Translation updater bot 8ec80901b4 Localisation updates from https://translatewiki.net.
Change-Id: I44fe73021a89f088172db440516cbeceec279317
2022-04-18 10:06:57 +02:00
Translation updater bot bdf944c6ac Localisation updates from https://translatewiki.net.
Change-Id: I61ed33c8ef82944aa7fedd31a97073a6348acbcd
2022-04-15 09:56:59 +02:00
jenkins-bot f9dc0c19b9 Merge "No HTML needed to validate <templatedata> in wikitext" 2022-04-12 14:05:44 +00:00
Thiemo Kreuz 1c8b4ae729 No HTML needed to validate <templatedata> in wikitext
I tried to benchmark this and yes, it makes a difference, but probably
not a big one. This is an additional parse in addition to the one core
will later do when the page is actually saved. For this one here we
are just not interested in the HTML.

Bug: T305105
Change-Id: I71147af5161c934a822651e80e11f3bd26af56cd
2022-04-11 18:29:51 +02:00
Translation updater bot 5cc39395f7 Localisation updates from https://translatewiki.net.
Change-Id: I5f1367f85617aa0f6c55a551b615f29655fdbb7e
2022-04-08 08:28:22 +02:00
Translation updater bot 9de8c46234 Localisation updates from https://translatewiki.net.
Change-Id: I6b9829e8e0a216d7c8c7f68704f326debb409437
2022-04-05 08:26:13 +02:00
Translation updater bot 2aef87c790 Localisation updates from https://translatewiki.net.
Change-Id: Ib78f025ce4a72e30c1cf619fbd20a1c6d7c547b2
2022-04-04 09:35:12 +02:00
gerritbot 42061b7174 Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator

Bug: T275455
Change-Id: Ia08525d4162d8b460ca8f7fd97b75f564b6bbb7c
2022-04-04 01:29:48 +02:00
Translation updater bot 1798159f7d Localisation updates from https://translatewiki.net.
Change-Id: I61a011e4f8e46598320696beefc274c2c79efefe
2022-04-01 08:27:37 +02:00