mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-15 03:34:44 +00:00
c2508a78ad
At the moment, when the user clicks the "Status" column to sort by status, the statuses are ordered alphabetically, which gives widely varying results depending on the language. But there is an inherent order for these, even hard-coded in the code: When a parameter is deprecated, nothing else matters. Otherwise it's required → suggested → optional. Doesn't it make much more sense to order the column this way? Especially because there are never more than these 4 hard-coded values. This is one of the (few remaining) issues mentioned on https://de.wikipedia.org/wiki/Vorlage:TemplateData#Vorlagendokumentationsseite_verbessern_%E2%80%93_MediaWiki_ungen%C3%BCgend This patch also makes it so that a CSS class name is always added to all status fields, not only to the required ones. This allows for per-wiki or per-user styling. Change-Id: Id3f1ffafe09a3817972a4ee4bd4a3ded7be6f039 |
||
---|---|---|
.. | ||
SerializationTest.php | ||
TemplateDataBlobTest.php |