Commit graph

1098 commits

Author SHA1 Message Date
Translation updater bot b81e7bd0c5 Localisation updates from https://translatewiki.net.
Change-Id: I01c920c74716fc99c2d36de87239a65a15173df9
2023-05-01 09:57:21 +02:00
thiemowmde 2a8fdf3d81 Hide wrong "this reference is used 0 times" in citation dialog
This fixes a minor regression introduced in Ib003b8a. The problem is
that undefined is not equal to anything in JavaScript, and not smaller
than 2 either.

Bug: T241885
Bug: T335410
Change-Id: Ia6deb291d923b88a08ceac8fbc0efb682e14f358
2023-04-26 16:42:08 +02:00
Translation updater bot ad830cce16 Localisation updates from https://translatewiki.net.
Change-Id: Ibc776022544a8f73e77735dc1256135598fb676c
2023-04-25 08:47:26 +02:00
Translation updater bot 3c902a8f34 Localisation updates from https://translatewiki.net.
Change-Id: Ifb96b94e80763ea5e5e7d9f3582ca835f5a17823
2023-04-24 09:15:43 +02:00
jenkins-bot 23d7c3d3bf Merge "Fix wrong "this reference is used twice" in VisualEditor" 2023-04-17 06:40:44 +00:00
Ed Sanders ec88bde672 Drop IE CSS hacks
IE is no longer supported

Change-Id: I27901e87301a4ce0993f789913c83d151f264562
2023-04-12 16:33:23 +01:00
thiemowmde ce63522726 Fix wrong "this reference is used twice" in VisualEditor
This patch also updates a second place that does almost the same.

That other place also excludes placeholders. We intentionally don't
do this in this new place.

Bug: T241885
Change-Id: Ib003b8a7bbe247db6f7da0a4efcfd4e5967fd033
2023-04-12 15:19:11 +02:00
thiemowmde 4ac067c0fa Fix broken selector in MWReferenceNode.less
This issue was introduced in I7a8ec9f. I tried to understand what this
does but can't see an effect. The behavior and appearence seems to be
identical with and without this code. In case it turns out this is dead
code (e.g. not needed any more with our current browser requirements)
it should be removed. Otherwise the selector fixed.

Change-Id: I0bfae951aa4543c528dd7e04c00a0e978f1ce49e
2023-04-11 20:39:51 +02:00
Translation updater bot 545491a21f Localisation updates from https://translatewiki.net.
Change-Id: Iefcf05de017e0fa4d10b81414051e1aae8efc22d
2023-04-10 09:20:22 +02:00
Translation updater bot faa8173d40 Localisation updates from https://translatewiki.net.
Change-Id: Ie541a2a6701a64d712245e959a2acfdb142e618e
2023-04-03 09:17:11 +02:00
Ed Sanders 9b9eccc21b ve-cite: Simplify LESS files with nesting
Change-Id: I7a8ec9fceb3563a4561afd95e18a5667a363a1ab
2023-03-28 11:06:14 +00:00
Ed Sanders ca9ef93409 ve-cite: Convert .css files to .less
Change-Id: If831c23721cc2c3ec3cc17d4cd9c9533a0aa4cb4
2023-03-27 15:01:45 +01:00
Translation updater bot dc1d15cb64 Localisation updates from https://translatewiki.net.
Change-Id: I9f17e5ed55e38d8774997449b20364f6d479ec52
2023-03-15 08:49:26 +01:00
Subramanya Sastry 8d93818fc8 Use double-colon for pseudo-elements
* Linting rule has been fixed to accept these now.

Change-Id: I51d866ec18c9e1d675f43b3c60f3ad874bba041e
2023-03-14 16:49:10 -04:00
Subramanya Sastry fc0a239887 Document Parsoid's differing HTML for follows
* Add a file-level comment in the cite tests file.
* Document the CSS rule that hides the Parsoid HTML.

Change-Id: I27dc6d5f6ab09b67e28ce88a2e13bf2d1a13e9c0
2023-03-13 14:38:30 -05:00
jenkins-bot 6b286ab789 Merge "Update output of diff test" 2023-03-10 16:45:56 +00:00
Translation updater bot b398619d3c Localisation updates from https://translatewiki.net.
Change-Id: Ie2803c8e16f7bd3fc468ce0849045486f399e333
2023-03-09 09:04:13 +01:00
jenkins-bot 664607022e Merge "Add small gap between reference body and re-use warning" 2023-03-08 16:27:53 +00:00
jenkins-bot ba3130a9f7 Merge "ve-cite: Show $originalRefList even if there are no refs in the model" 2023-03-08 16:18:11 +00:00
Ed Sanders bae4a409a5 Update output of diff test
For I93a88abc8e9ecf38992b396c151215781057a6f4.

Change-Id: Ia743b0c37bbd33b95dd4824018ae59fbb6e45c3e
2023-03-08 15:52:02 +00:00
Translation updater bot 245ac89794 Localisation updates from https://translatewiki.net.
Change-Id: Ic43c1fcefcb5910b79df4bbded97deb3a2e5158b
2023-02-28 08:28:33 +01:00
Translation updater bot 02603baca4 Localisation updates from https://translatewiki.net.
Change-Id: I0b5e779399c9dec3bdca537407e747b4f4cf9790
2023-02-27 08:27:14 +01:00
Translation updater bot 33d72f78f0 Localisation updates from https://translatewiki.net.
Change-Id: I02eb5002c1b152b1f1bf9918f96046783cd43160
2023-02-24 08:59:25 +01:00
thiemowmde fd90304b23 Make auto-generated reference names like name=":0" visible in VE
This is a prerequisite before any work related to T52568 (being able
to manually name references in VisualEditor) can start.

Why these names should not be hidden:
* We don't know if the name is actually part of the auto-generated
  sequence in the current article or copy-pasted from somewhere else.
* Manually given names that start with a colon are currently hidden
  even if they are unrelated to the auto-generated sequence.
* The information is highly relevant for users switching between VE
  and wikitext. Especially when a reference is used multiple times
  the relevant wikitext can be as short as <ref name=":0" />. The
  literally only information in this case is the number.

Since these numbers are still more technical than anything we make
them very dim to emphasize the contrast to non-numeric names.

Bug: T52568
Bug: T92432
Change-Id: I65cb6998cb5f8659cd9043f3d4aaeac1c5f69da8
2023-02-23 12:28:02 +01:00
jenkins-bot d1ed02e21d Merge "Fix icon of re-use reference tool" 2023-02-22 17:58:49 +00:00
Ed Sanders 59d900d951 ve-cite: Show $originalRefList even if there are no refs in the model
This original use case at T187495 is for he.wiki, where it is likely
that all the references are defined in templates, so the model
will always be empty, even though $originalRefList is populated.

Change-Id: Ia2785a20bf82ab97466276a57936bc9299e1cabe
2023-02-22 17:19:22 +00:00
Translation updater bot d190578c9c Localisation updates from https://translatewiki.net.
Change-Id: I3e7da01af17e7aa9dca3344cd89277fa67072549
2023-02-20 09:46:06 +01:00
Subramanya Sastry fa1cb6c6cd Parsoid CSS: Remove list-style-type styles added in e5a8b3ec
I copied these from the visualdiffing repo, but I may have
over-generalized these from some wiki that might have customized
this to all wikis. enwiki doesn't use this, for example.

In any case, this styling should be left to individual wikis.
similar to the argument in 8412fb64 where I removed CSS rules
for standard refgroups as overreach.

Change-Id: Ie37408d7a92af88e39e345eb464c6fa2210d57e3
2023-02-13 22:18:45 -06:00
Translation updater bot 88bbaba129 Localisation updates from https://translatewiki.net.
Change-Id: I7f37d8bb63a41c98f845e4c21e06a88223b3649c
2023-02-13 08:29:40 +01:00
Ed Sanders f292da4254 Fix icon of re-use reference tool
Also update documentation in qqq.json with newer icon names.

Change-Id: I3cefe65c78e9438a7d29fbcd436ffad043d500e2
2023-02-11 14:07:01 +00:00
Subramanya Sastry eee7a43d77 Parsoid CSS: Use more W3C-supported counter types
* This ensures that Safari can also render these counter styles
  since Safari doesn't support @counter-style CSS rules yet.

Change-Id: Ib104a6d22197037bae0c58766d3363176022add3
2023-02-08 13:20:47 -06:00
jenkins-bot 6427249c8b Merge "Parsoid CSS: mw-ref-linkback counter inits to -1, not 0" 2023-02-08 16:19:36 +00:00
jenkins-bot 951a5f4a34 Merge "Parsoid CSS: Remove default rendering for "standard" ref groups" 2023-02-08 16:18:30 +00:00
Translation updater bot 5cd7fa82a0 Localisation updates from https://translatewiki.net.
Change-Id: Idce3d50dfbd235dafede1c6238da70335415e21e
2023-02-08 08:39:25 +01:00
Subramanya Sastry b9400d1bf0 Parsoid CSS: mw-ref-linkback counter inits to -1, not 0
* This has always been a bug but was hidden because enwiki
  uses lower-alpha custom rendering and so we never noticed it
  when we tested this on enwiki.

* Fixing the default gets rid of the need to override this for
  every single language that defined a non-decimal counter.

* This also eliminates the need for some rules where the overrides
  were identical to the baseline definitions (counter-type is
  decimal and separator is '.').

Bug: T86782
Bug: T156350
Change-Id: I51f8a06c80bb897b66a0978b117fbc5560efd6cb
2023-02-07 20:59:23 -06:00
Subramanya Sastry 8412fb6406 Parsoid CSS: Remove default rendering for "standard" ref groups
* This was obviously a mistake for 'decimal' since the previous CSS
  would have rendered refs with the "decimal" group and refs without
  any group identically making it hard to distinguish between the
  two ref types.

* But, not all wikis define custom messages for these "standard"
  ref groups. So, by providing default rendering for these, we would
  need custom overrides for wikis that didn't define them (the vast
  majority). Instead, for wikis that define them, define wiki-specific
  CSS for these groups that can be added to their Common.css pages.

* Discovered as I set about trying to update CSS on wikis and my
  test wikitext with different groups were rendering decimal groups
  differently and I had no custom CSS for it anywhere.

Bug: T86782
Change-Id: I5598580e96eead94bb09574b2af5cef3ce4241c5
2023-02-07 20:45:29 -06:00
jenkins-bot b85fcb759c Merge "Mark config parameter as optional in context classes" 2023-02-02 17:08:53 +00:00
Translation updater bot 466f5331b1 Localisation updates from https://translatewiki.net.
Change-Id: Ie72e35230204399a3b2668dd2ef86ed5584595e4
2023-01-30 08:29:23 +01:00
Translation updater bot bfd01b97fe Localisation updates from https://translatewiki.net.
Change-Id: I744faafaa4a4824e1ae9ece7cef7e36a341452c9
2023-01-26 08:50:53 +01:00
Bartosz Dziewoński a845923a65 Specify document base URLs in more test cases
Depends-On: I0e301bef38d97fa2234aa901c787360d9fbde8a3
Change-Id: I07a8c097dba0f5572c0aedf4febdf1434063ea6f
2023-01-22 16:00:09 +01:00
jenkins-bot 0771532b25 Merge "Remove 'origTitle' in tests" 2023-01-09 18:50:12 +00:00
Translation updater bot 8c50157d78 Localisation updates from https://translatewiki.net.
Change-Id: I31fa4326793e8ea398af83fb2c6db03b5a5756cf
2023-01-09 09:25:43 +01:00
Subramanya Sastry d044c0c166 Parsoid CSS counters: Use child selectors instead of descendent selectors
In both cases:
(a) ref counter display for .mw-ref sups
(b) backlink labels in the references section for multiple named refs
the a-tags are direct children of the <sup>/<span> tag.

The child selectors are more precise. I am not really sure why we
went with descendant selectors in the first place.

Bug: T156350
Change-Id: If5be7cd14de40c2372f27ae5e2f32671c0a4e20c
2023-01-09 01:28:34 +00:00
Subramanya Sastry ea4c16c037 Ensure Parsoid's linkback ref CSS counters are properly incremented
* Turned out there were 2 counters defined on references li nodes.
* One was added as part of the extends functionality added by WMDE's
  book referenceing project.
* The other one was added as part of Parsoid's Cite CSS work.
* Since the counter increments were defined separately and applied
  to the same node, only one of the increments would apply.
  This breaks counter rendering on wikis where custom wiki-specific
  rules aren't defined in that wiki's Mediawiki:Common.css
* Discovered after running visual diff tests after ad919e37
  was deployed.

Change-Id: I826faac3564d63b8a4fbd80015fd5cc8f0069b7a
2023-01-07 19:36:55 -06:00
eranroz fef36c2da9 Remove lower-alpha hack
Lower-alpha is enwiki/community specific preference and as such should
be defined in Common.css of that wiki.

Bug: T326467

Change-Id: I1c254031185b130de90fad2410a21533e8c3ba96
Signed-off-by: eranroz <eranroz89@gmail.com>
2023-01-07 12:37:09 +02:00
Translation updater bot c42c4b88f1 Localisation updates from https://translatewiki.net.
Change-Id: I8d9b60ed936428cc9d79cb0ed5526f1f468ecd36
2022-12-29 10:01:01 +01:00
Bartosz Dziewoński c0746c7fa8 Remove 'origTitle' in tests
Depends-On: I0ad0a655380eb2fb29b5ac01e2e399ac550ce34a
Bug: T325766
Change-Id: Ib5c33aceb9430aba49c692552b54427e64a787f3
2022-12-22 17:57:41 +00:00
Bartosz Dziewoński b89db98b7a Use more realistic fake data in test cases
Change-Id: Ie5a30fe254bd69db4f8fe363baeb926282897d00
2022-12-22 10:47:15 +00:00
Translation updater bot ccaaec68f0 Localisation updates from https://translatewiki.net.
Change-Id: I8bf6a0f67c44f1e66580fcbd93b58f560b955cad
2022-12-21 09:14:24 +01:00
Translation updater bot 8013badd20 Localisation updates from https://translatewiki.net.
Change-Id: I3e4071ba144218f06ffc988ba0e66cdbf310626b
2022-12-19 09:03:36 +01:00