Commit graph

2018 commits

Author SHA1 Message Date
libraryupgrader ca32a8ced1 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: If6ebb246effabc99b7d72a336bacee65c54b5c67
2022-10-09 15:42:03 +00:00
libraryupgrader 5037d38ac9 build: Updating grunt-banana-checker to 0.10.0
Change-Id: Iba9b753eca91a4b6d605d0a95ea85c3089e02cd7
2022-10-07 07:29:59 +00:00
Translation updater bot 21b41bfa2c Localisation updates from https://translatewiki.net.
Change-Id: Ie7e710a2e95a9e7d76d59e48c081646ff25d9d89
2022-10-05 08:25:17 +02:00
Translation updater bot 7681cd59b8 Localisation updates from https://translatewiki.net.
Change-Id: I5b24c39690bc8cf334e52d796137df45b345b25c
2022-10-04 08:30:13 +02:00
Ed Sanders 458bd2e0ca Fix typo in templatedata-desc
Bug: T319196
Change-Id: I1519d22a732566c5dd67a942c1affc0325ed78c9
2022-10-03 15:02:48 +02:00
Translation updater bot efb818d23a Localisation updates from https://translatewiki.net.
Change-Id: I77f49de4bbbba562d50504768791bff8544d58b1
2022-10-03 09:46:33 +02:00
Translation updater bot 5e776926a4 Localisation updates from https://translatewiki.net.
Change-Id: Ie33589a6c2386d6e0fd6cce0716cc2a02b4e3ad1
2022-09-30 08:54:59 +02:00
Translation updater bot 94884c9e0e Localisation updates from https://translatewiki.net.
Change-Id: Ia2fea7d5261fd905f99883d4f46eb3153e570a96
2022-09-29 08:28:17 +02:00
Translation updater bot cd2b3f14d7 Localisation updates from https://translatewiki.net.
Change-Id: Iacabc874036470a8abc36c9bdf0ddf27ae08d6d5
2022-09-28 08:22:56 +02:00
Ed Sanders fb70bf74b4 Use "Edit" for the edit button
We probably used "edit" as strictly speaking it could be "edit"
or "create", and it's hard to tell which will happen before
inspecting the content.

However "manage" is a poor alternative and not a verb we use
anywhere else. "Edit" argualby covers "create" as well, and will
be much more familiar to users.

Bug: T317468
Change-Id: Ia0b5da50fc87bd250e85faf29613a6f97ca36459
2022-09-27 16:04:17 +02:00
jenkins-bot ec1c49ca46 Merge "De-brand TemplateData" 2022-09-27 13:26:24 +00:00
jenkins-bot c4598c30d9 Merge "Fix broken comparison when editing the template description" 2022-09-27 08:16:38 +00:00
Translation updater bot 227287114a Localisation updates from https://translatewiki.net.
Change-Id: Ic1ac1ebe512784246be76f348bc6251c1bcbfc3d
2022-09-26 08:16:27 +02:00
Ed Sanders bce6519fe0 De-brand TemplateData
Following examples such as "VisuaEditor" -> "the visual editor"
and "Flow" -> "structured discussions", exposing the "brand" name
of the extension to users is no longer consider best practice.

Instead refer to it simply as "template data".

Bug: T317468
Change-Id: I969ddb013f9b51de8c222bff4e4c5104c5a0ee0f
2022-09-24 09:59:09 +00:00
thiemowmde 393abe846d Add missing dependency on mediawiki.user
The Metrics.js script needs this, but the dependency is not specified
anywhere. This "accidentially" works because it's rather common that
the module is required by some other code on the page. I just found a
combination where this is not the case (a blank MediaWiki installation
with nothing but TemplateData, not even the WikiEditor).

Change-Id: I97a7c1d227316a222d7ca54adb400aa8dd769047
2022-09-23 21:43:02 +02:00
Thiemo Kreuz 17d6c485bb Fix broken comparison when editing the template description
This was always comparing with the English description. The effect of
this was that the comparison was always false and the value always
set, even if it didn't change, resulting in unnecessary events being
fired. So this is only about performance but not really user facing.

Change-Id: Id7a46dbac81e2595478848bbf325eece21815bec
2022-09-23 10:25:09 +02:00
Translation updater bot f79db7eddd Localisation updates from https://translatewiki.net.
Change-Id: Ic39a9ac6fa73f2f9f9ea986fdcce16cbe85be383
2022-09-22 08:47:24 +02:00
Translation updater bot 048a51b66c Localisation updates from https://translatewiki.net.
Change-Id: Ied897b197eaa15c5c02300c241dc9c6567c7fb74
2022-09-21 08:29:43 +02:00
jenkins-bot 9251dd1c18 Merge "Add space between icon and text in formatting message" 2022-09-07 09:09:38 +00:00
jenkins-bot 295a89eda0 Merge "Fix font size of "Manage TemplateData" button in vector legacy + 2017WTE" 2022-09-07 08:33:59 +00:00
Translation updater bot 4645636ebe Localisation updates from https://translatewiki.net.
Change-Id: I88a57e8622d60d3cafd7b99fa3fa62670b8ddfc8
2022-09-05 10:12:01 +02:00
Translation updater bot a93db4edf2 Localisation updates from https://translatewiki.net.
Change-Id: I0363e1ca9ef034885505360a134e106b99bb5684
2022-09-01 09:34:43 +02:00
Ed Sanders d2e72a252f Add space between icon and text in formatting message
Change-Id: Id0b8b36b8f2145847fafa8005bc6bdc7b3f98e55
2022-08-31 11:43:40 +01:00
Ed Sanders 64b8be314c Fix font size of "Manage TemplateData" button in vector legacy + 2017WTE
Change-Id: I26a7a0956d2bcce1700b583a2e8c684d4d72b948
2022-08-31 11:27:46 +01:00
Translation updater bot ca529f0c18 Localisation updates from https://translatewiki.net.
Change-Id: Iaa7e9484d9ca45dabfcf89c2a8e747aa038cf763
2022-08-31 09:35:51 +02:00
Translation updater bot c02950ceff Localisation updates from https://translatewiki.net.
Change-Id: Id073a9b03a313f543ee69f3c16b169f17b70d72d
2022-08-30 09:30:48 +02:00
Translation updater bot 622d7c3b51 Localisation updates from https://translatewiki.net.
Change-Id: If35b61f4e2913ad0139f3f033d4787aec6dbff79
2022-08-29 09:15:56 +02:00
Translation updater bot 2e2e27ee40 Localisation updates from https://translatewiki.net.
Change-Id: Iea0d2281893a09096b0b9d0c0fb346801156a117
2022-08-24 08:25:09 +02:00
Translation updater bot d21e2e391e Localisation updates from https://translatewiki.net.
Change-Id: I4dc6694a70390c6eb983e9e71823705b47e014ac
2022-08-22 08:24:04 +02:00
Translation updater bot 4a429d01a0 Localisation updates from https://translatewiki.net.
Change-Id: I2bc7fcad203f335ed29702247102da9ad6914898
2022-08-15 08:27:19 +02:00
Bartosz Dziewoński ba0e71fd33 Migrate usage of Database::select to SelectQueryBuilder
Bug: T312348
Change-Id: I59057174c102c29877608db2a6c26b7a50bd34cf
2022-08-12 23:54:22 +02:00
Translation updater bot 84476a8dae Localisation updates from https://translatewiki.net.
Change-Id: Iac6e3261e6e5e0f08ed3c9f5727763bf8e81f746
2022-08-12 08:44:06 +02:00
jenkins-bot c7a986bb23 Merge "Minor fixes & improvements to Specification.md" 2022-08-11 20:49:26 +00:00
Translation updater bot 443a571e7c Localisation updates from https://translatewiki.net.
Change-Id: Ifea01fde52172d1556e309300bc44ab93f3a16a4
2022-08-09 08:20:20 +02:00
Thiemo Kreuz d36356326a Make use of LESS features for more structured CSS
This patch includes two bugfixes:
1. The previous rule with a `p + p` didn't do what it was supposed to
   do. It was adding a margin after the 2nd, 3rd and all following <p>
   elements, but not between the 1st and the 2nd. It should have been
   margin-top instead. The approach in this patch is different and
   avoids the need to repead the 0.5em.
2. The red background color was not applied to the input fields any
   more because OOUI doesn't use <input> elements any more.

Change-Id: Ia57b742e8b3cd29c1f55cd7e918f26f70eebab18
2022-08-08 17:40:08 +00:00
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
Thiemo Kreuz e0582842b4 Minor fixes & improvements to Specification.md
Change-Id: Ic2dfeaa12f1e9249dfafd641a8eabfa5ce208d8a
2022-06-27 12:08:59 +02:00