mediawiki-extensions-Templa.../includes
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
..
Api Fix usage of ApiBase::PARAM_* deprecated constants 2022-04-04 01:29:48 +02:00
Hooks.php Remove $wgTemplateDataSuggestedValues feature flag 2022-06-27 12:14:02 +02:00
TemplateDataBlob.php Merge "Move getRawParams helper method to ApiTemplateData class" 2022-02-10 05:44:14 +00:00
TemplateDataCompressedBlob.php Fix use of formatnum in templatedata-invalid-length 2022-01-31 09:34:57 +02:00
TemplateDataHtmlFormatter.php Fix CSS styling of the HTML rendering broken since 2016 2022-08-08 11:56:16 +02:00
TemplateDataMessageLocalizer.php Improve test coverage for HTML formatter code 2022-02-03 12:45:27 +01:00
TemplateDataValidator.php Remove unreachable validation step 2022-02-22 10:51:00 +01:00