Commit graph

4705 commits

Author SHA1 Message Date
jenkins-bot 7b18946a8b Merge "Add first browser test" 2018-11-19 17:37:14 +00:00
Arlo Breault e644753c6b Introduce a parseTokenContentsToDOM helper
It calls out to a slimmed down parseWikitextToDOM, since only a subset
of that functionality is needed in some extensions, like gallery.

Change-Id: I72e29c4b285fc8cae0207966cc2eddd0fe3ebcf3
2018-11-19 12:20:43 -05:00
Thiemo Kreuz (WMDE) 2b3a62c26b Make arrows/carets links whenever we know where the user came from
I tried to arrange the new code in a way that it is compact, but still
readable. I think it's possible to arrange it even better, but browser
tests should be added first, in my opinion.

Bug: T205271
Change-Id: I1d579ef9d2787fc43c0a8bbf61c583f602dca5d4
2018-11-19 16:27:59 +00:00
jenkins-bot 8b97f74dc9 Merge "Highlight backreference jump marks by making them bold" 2018-11-19 16:24:24 +00:00
WMDE-Fisch 9c4620966f Add browser test for highlighting of jump mark symbols
Bug: T205270
Change-Id: Ieccf2c507dafac70d287eb0fa0fff051442205da
2018-11-19 16:08:49 +00:00
Andrew Kostka 626d9d4188 Add first browser test
This adds a test which checks if the extension appears on the
Special:Version page.

This is an initial step for adding more browser tests to check
changes done in I26fe41c328157233cc5b06d38d2ba0f7b036a853

Change-Id: I9a9d1cd2a25277f2c430f4e80b51b72c1621f91b
2018-11-19 16:08:42 +00:00
Thiemo Kreuz ee8da566e3 Highlight backreference jump marks by making them bold
The separate "ext.cite.a11y" module is kept for (temporary)
compatibility with cached HTML, and should be removed in about
a month.

Browser tests will be added in a separate patch.

Bug: T205270
Change-Id: I26fe41c328157233cc5b06d38d2ba0f7b036a853
2018-11-19 16:46:08 +01:00
Thiemo Kreuz (WMDE) a8da30d4fd Remove unused parameter from two private Cite functions
The iodea is to make the code simpler and easier to read. If no
code uses this feature, all it does is making the code unnecessary
complex.

Change-Id: I22747712a691443a29b57831d3a6926275ad986b
2018-11-19 16:28:24 +01:00
Translation updater bot 7ecdec713d Localisation updates from https://translatewiki.net.
Change-Id: I9cf5306d453310e154c2f49df23f1be6348200de
2018-11-18 22:48:21 +01:00
Translation updater bot 9deb4d476e Localisation updates from https://translatewiki.net.
Change-Id: Icd283ec309f0f89624a49eecf1b241396b36e24f
2018-11-17 22:19:38 +01:00
Bartosz Dziewoński fd19cd76c1 ve.ui.MWReferencesListDialog: Disable 'Apply' button until changes are made
Bug: T209660
Change-Id: I2c998cce812b63d1f5656ba38470a77ac5a0fd45
2018-11-16 00:49:08 +01:00
libraryupgrader 8cac9f4aee build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: Ie7785a40557446e40db079b147610ba29b135ba4
2018-11-14 08:53:25 +00:00
Ed Sanders e0781b0c58 Fix typo in documentation
Change-Id: I25407db3025dace825afd0ca083eba4fc600955d
2018-11-13 23:42:35 +00:00
jenkins-bot 82c75661ee Merge "Remove obsolete aliases from closures" 2018-11-13 22:59:20 +00:00
Ed Sanders a589dbe636 Remove obsolete aliases from closures
Bug: T208951
Change-Id: Idd6bc36b116af81827b4440b4c8ec3da94e1486f
2018-11-13 14:43:45 -08:00
Translation updater bot 664b178c3d Localisation updates from https://translatewiki.net.
Change-Id: I6aae842e9a5d4a8a036ed6107222e9bc84ac57b9
2018-11-12 22:12:39 +01:00
Translation updater bot e61ab2c8f6 Localisation updates from https://translatewiki.net.
Change-Id: Iade9e083c123e608dfac57f8e27f4fbbf65e9932
2018-11-11 22:33:37 +01:00
Translation updater bot a9ae168208 Localisation updates from https://translatewiki.net.
Change-Id: Ib3be93269095ae9b86e407aab89d353b5530b56b
2018-11-10 22:28:03 +01:00
Translation updater bot 86bf110048 Localisation updates from https://translatewiki.net.
Change-Id: I0d4260c2bd9121a41ad9598f57edb6001748e186
2018-11-07 22:21:58 +01:00
Subramanya Sastry 678effaf0e Extension API: Add a html2wtPreprocessor DOM processor stub
* This patch doesn't do any actual work beyond adding the framework
  in place for HTML preprocessing before actual serialization.

Change-Id: I2505f5937657813480abef8ec5da9d765a953e29
2018-11-07 17:22:31 +00:00
Bartosz Dziewoński ec55fa3ce8 Use changed ve.dm.Selection interface
Bug: T208228
Bug: T208913
Change-Id: Ifb1a77a5f07b9e257c6e0477e23316f80c7a4791
2018-11-07 16:51:51 +01:00
Translation updater bot 774e301300 Localisation updates from https://translatewiki.net.
Change-Id: Ia5f2da9fb4166a5c53f681705ece9591b99f4b9c
2018-11-04 22:42:03 +01:00
Translation updater bot 5e9add6454 Localisation updates from https://translatewiki.net.
Change-Id: Ic2dc4045f2baa1467329bd4619f59e846a5118c4
2018-11-03 11:02:43 +01:00
Subramanya Sastry a944352878 Extracted token-related helpers from Util to TokenUtils
* Things to investigate as followups:
  - Should this be part of the Token base class in parser.defines.js?
  - Can we remove nowiki & cite usage of these helpers? Why do they
    need to know about (parser internals) tokens?

Bug: T208360
Change-Id: Ib962b4acf9534852240fcb083ce67d696a997a83
2018-10-30 18:05:24 -05:00
Pipix 978816149c Convert HTTP Links To HTTPS
1 link to www.mediawiki.org is converted from http:// to https://

Bug: T189687
Change-Id: I24e08db41b4d46abea356cd05c37916f740a1d7a
2018-10-30 20:10:17 +08:00
Ed Sanders 4df9bf5f69 Fix wikitext paste test
Bug: T204007
Depends-On: I97a92512d7b114ed46bc48d3d416eebc86df13f7
Change-Id: I06177cb4428798f62b78f5dc48f545a6cb6884fc
2018-10-29 21:39:40 +00:00
Translation updater bot 9ee0d799a7 Localisation updates from https://translatewiki.net.
Change-Id: Ib0be56800d53b316fb4f473c8ab2940b5cac1dd7
2018-10-28 22:21:44 +01:00
Translation updater bot f99e841595 Localisation updates from https://translatewiki.net.
Change-Id: I98eea39834c94aa8c33b40af5a0ffd3440c2f38e
2018-10-27 22:59:39 +02:00
Translation updater bot 09964ca80d Localisation updates from https://translatewiki.net.
Change-Id: I1a74c35bbb16714cbe0777e6eb2305585644ccf7
2018-10-26 22:24:05 +02:00
James D. Forrester 05c006abd6 i18n: Use &lt; rather than <nowiki>< for security testing sanity
Change-Id: I260669a240b7c3a661928140ac2e540ffe064c35
2018-10-25 15:22:05 -07:00
Translation updater bot d7abcdea98 Localisation updates from https://translatewiki.net.
Change-Id: Ic6dc3591f9ec88fa6bc2d19d394811ad5f82c1fe
2018-10-25 22:38:41 +02:00
Translation updater bot 9ba05318fd Localisation updates from https://translatewiki.net.
Change-Id: Ibe1df91706b639030e79c205005d9cdcb5e20cf1
2018-10-18 22:34:07 +02:00
Translation updater bot c9ff3c836f Localisation updates from https://translatewiki.net.
Change-Id: I790e0207e282c378bb98d641c018c1bf907a74de
2018-10-16 22:17:17 +02:00
jenkins-bot 7d7756e53f Merge "Unstrip <ref> contents before comparing" 2018-10-15 16:25:42 +00:00
Gergő Tisza b8efcb0e1a Unstrip <ref> contents before comparing
When used as {{#tag:ref|...}}, references can contain strip markers,
and different strip markers can hide the same text, so unstrip before
comparing to avoid false warnings.

Bug: T205803
Change-Id: I059fd853d1eea07aa06cc85f80e463dd97fd171a
2018-10-15 12:10:59 -04:00
Translation updater bot a08297ee92 Localisation updates from https://translatewiki.net.
Change-Id: I88ed6da413e9396b283e5ff6cd59b2c6990848a0
2018-10-14 22:25:09 +02:00
Translation updater bot 3e3c7fc2b1 Localisation updates from https://translatewiki.net.
Change-Id: Icb7f2e358b56be2430e5ffd95653ff59660aad87
2018-10-13 10:19:13 +02:00
Translation updater bot 05e4d5bcfb Localisation updates from https://translatewiki.net.
Change-Id: Ic3deaa69b49671465650d2bb23ba108d79e68e1a
2018-10-11 22:37:14 +02:00
jenkins-bot afe903fe3d Merge "Localisation updates from https://translatewiki.net." 2018-10-11 17:53:13 +00:00
Translation updater bot 8bd52101e9 Localisation updates from https://translatewiki.net.
Change-Id: Ia207dfa8b578ba2f4c00cd48fde2a00210596bec
2018-10-10 22:24:20 +02:00
James D. Forrester 022293fe4b i18n: Put tags on Special:Version in <code> tags, like other extensions
Change-Id: Ic238e17ce578168ef8fbbdc209245bd2dc13a423
2018-10-09 14:01:38 -07:00
Translation updater bot 64bb87d017 Localisation updates from https://translatewiki.net.
Change-Id: I42a21867fd1226268ec2e00cdbe54c5808513917
2018-10-08 23:19:36 +02:00
Translation updater bot 1daa5234b4 Localisation updates from https://translatewiki.net.
Change-Id: Icb276a9e5e4d7d8a4e7bcdf4f71efaf3b73212ac
2018-10-07 22:30:03 +02:00
Translation updater bot 4af353f400 Localisation updates from https://translatewiki.net.
Change-Id: I0f933da5e746bc62403e714efa23ff3dedc16464
2018-10-06 22:35:16 +02:00
Subramanya Sastry e1a6c9a953 Rename parsing pipeline options to something more semantic
* noPwrapping and noPre existed to reproduce the symptomatic
  effects of other behavior / semantics in the parsing pipeline.

  One of that semantic source was the fact that the content
  being parsed in their own pipeline was being using in inline
  contexts and p-wrapping and indent-pre generation doesn't
  make sense in those contexts.

  The other semantic source was the fact that when the content
  being parsed in their own pipeline was embedded "inPHPBlock"
  in the PHP Parser's doBlockLevels sense, i.e. inside a block
  element that existed on the same wikitext source line.

* This patch introduces inPHPBlock and inlineContext as two
  new parsing pipeline options and uses one or the other or both
  where appropriate.

* No change in parser test results as expected.

Change-Id: I2c625456c6593e49b6a247fb9b2f2e3d6021155b
2018-10-02 23:05:53 +00:00
Subramanya Sastry 499c2c4564 Remove more Cite leakage from html2wt code
* This removes Cite leakage in html2wt code by adding PHP parser
  side-effect leakage into the Cite extension configs.
  This is a somewhat temporary solution which we hope to address
  better as part of ongoing cleanup.

* After 4 years, 'a quick hack for now' introduced in 3301393515f
  has been addressed.

* No change in parser test passes.

Change-Id: Ic5f8c160d4eedcc4236bce5f095344bd879188cd
2018-10-02 23:00:15 +00:00
jenkins-bot ecb9c147f9 Merge "Avoid jQuery in ve.dm.Model.static.describeChange(s)" 2018-09-28 16:19:26 +00:00
Ed Sanders 817bfbfa54 Avoid jQuery in ve.dm.Model.static.describeChange(s)
Change-Id: If30d12289eff66470044931ea5b38d2b81d04075
2018-09-28 10:55:45 +01:00
jenkins-bot cf5a06984b Merge "i18n: Drop unnecessary overwrites of en defaults from all languages" 2018-09-26 17:54:58 +00:00
Translation updater bot 7135619039 Localisation updates from https://translatewiki.net.
Change-Id: If1015195c33298fba26dcb33d9967f87095215d3
2018-09-26 13:45:35 +02:00