Commit graph

4824 commits

Author SHA1 Message Date
Subramanya Sastry 635be2e906 Tweak extension config a bit more
* Move the name property to the top level

Change-Id: Id8730f35e40ad9f01d250f29ef3c2545fd4fd612
2018-08-30 19:00:35 +00:00
Subramanya Sastry bf0a743c2d Document more extension-API related FIXMEs
* Cite-specific code has leaked in html2wt
* Other possible FIXMEs in Cite about generalizing or
  adding new extension API functions.

Change-Id: I30712a3af81edfce0760f4a45ab694c798fb294a
2018-08-29 21:48:43 +00:00
Fomafix b7eed36a09 Start showing warning for deprecated PHP entry point
Change-Id: I88b1c49d1e03b241581fa024bfc9e8f27ad90c73
2018-08-24 18:28:56 +02:00
Subramanya Sastry 62cd9789f2 Tweak extension DOM config for extensibility
* Make the dom part of extension registration / config more general
  to allow for other kinds of dom processors.

* For example, we will probably be letting extensions define DOM
  handlers that lets us take a document's subtree and convert it to
  self-contained top-level document.

Change-Id: I0ddfe3bc677041cedf63e79faa9c5af939953419
2018-08-23 19:39:16 +00:00
Arlo Breault 93371d4dee Support directionality for reference
Ports commit 1ca27aa from extensions/Cite

Bug: T198221
Depends-On: Iaf84966e37cea730c9eca07c19a555971ffeadf3
Change-Id: I28c8efa6fd5cb06220af4399aa26f3d01b8d3761
2018-08-23 14:36:04 -04:00
Arlo Breault 1d687e23f3 Use the dir parameter only from the full definition of a named ref tag
Bug: T196827
Change-Id: Iaf84966e37cea730c9eca07c19a555971ffeadf3
2018-08-22 19:31:23 -04:00
Translation updater bot fadce2ecf4 Localisation updates from https://translatewiki.net.
Change-Id: Ie80f3c35493c863d84de4949e4772ed75d1079c6
2018-08-22 22:35:35 +02:00
jenkins-bot 7bc115d318 Merge "Sync up with Parsoid citeParserTests.txt" 2018-08-21 14:09:19 +00:00
Translation updater bot 42f5c27b75 Localisation updates from https://translatewiki.net.
Change-Id: I486fbd7709258152b95acffd1325e0a261a4d743
2018-08-19 22:38:54 +02:00
Arlo Breault 97f346438c Sync up with Parsoid citeParserTests.txt
This now aligns with Parsoid commit 129d71f5d6eab8c87a0e6591fcad4ad5e55b8da2

Change-Id: If2f540f0adf317eaa3cac7d0413c6bde8adc58e7
2018-08-17 15:45:23 -04:00
Arlo Breault a118efbbd7 Ensure the ref.cachedHtml isn't being regenerated needlessly
Change-Id: If319ad282ed7dd437dce400417e4555291a2dc38
2018-08-16 19:34:04 -04:00
Arlo Breault 9928fe4044 Separate which source of data attributes are used in extractRefFromNode
Follow up to 53ae5aa

It's somewhat unclear which attributes belong on the representation for
the fragment, so don't rely on them unnecessarily.

Change-Id: Ib5ba0110291f0c02bd703482813b9567dab63cd6
2018-08-16 19:33:22 -04:00
Translation updater bot 4763e3dfd2 Localisation updates from https://translatewiki.net.
Change-Id: I65652c293084b1b43d53350b53f0c43d9a86aec9
2018-08-16 22:28:30 +02:00
Translation updater bot b7766532b7 Localisation updates from https://translatewiki.net.
Change-Id: I86e27c5d171bdec3f032e87c2b27b606c34e03bb
2018-08-15 22:18:22 +02:00
Subramanya Sastry 8fa5bc3376 Enable extensions to distinguish between <ext /> and <ext></ext>
* This now lets Cite distinguish between <ref></ref> and <ref />
  Seen in improvement in blacklisted output of a parser test.

Bug: T130224
Change-Id: If9511498fe8f6d091f8a725b51810eb452db95de
2018-08-14 21:47:43 +00:00
James D. Forrester a33f107079 VE: Make the OOUI citation icons available
This allows on-wiki use to be migrated to the standard icons rather than
in-repo ones, so that they can (later) be removed.

Change-Id: I19bec075c77396f163977962bbe1afb69a231c1e
2018-08-14 11:55:44 -07:00
Translation updater bot 627a674b99 Localisation updates from https://translatewiki.net.
Change-Id: I54d1f21c7d40edde19dbb76d21a22f88d45cc313
2018-08-10 22:18:08 +02:00
Translation updater bot 295d0f550b Localisation updates from https://translatewiki.net.
Change-Id: Id2059835f60d164e0ba24b50d1c5d14c5441b3fe
2018-08-09 22:23:30 +02:00
Subramanya Sastry 1a2b7e796f Remove Cite-specific flag from parser pipeline options
* Use a generic extTagOpts that is opaque to the core parser
  but the individual extension can inspect.

Change-Id: I4d1331604828d583b820084e00af68232ec767f8
2018-08-09 02:00:03 +00:00
Subramanya Sastry d8f4a31efe Handle <references></references> without crashing
* Fixes rt regressions on svwiki:Havre and a bunch of other titles.

Change-Id: I1d31ccf1045ba5a4fef9377101ad4e90a534c1e9
2018-08-09 02:00:01 +00:00
Translation updater bot 0b2f373c88 Localisation updates from https://translatewiki.net.
Change-Id: I49f20ed6cc83cd6e16d1d572acf680c19dad799a
2018-08-08 22:13:25 +02:00
Translation updater bot d859194323 Localisation updates from https://translatewiki.net.
Change-Id: Ib6a4285382bacd805602dae4e5154f3394a7abf3
2018-08-07 22:31:27 +02:00
Subramanya Sastry 53ae5aac06 Cite: Get rid of tokenHandler that relies on Parsoid internals
* This still exposes and exploits some Parsoid internals, but
  that can be fixed in the next round of updates.

* Cite (and any other extension) that want to manage fragments
  on their own vs. running the default fragment unpacking routine
  can now specify that they don't want the content unwrapped.

* Changes to parser tests are to rearrange the attrs and body
  attributes which switched positions in data-mw.

* The blacklist changes show that there has actually been an
  improvement in test failures.

Change-Id: I1e1a651e8f2d6d9456bb5849b0bce1f8a87c4446
2018-08-06 21:40:52 +00:00
Translation updater bot d4bad226c3 Localisation updates from https://translatewiki.net.
Change-Id: Ia58b72de17f26786121c6f0b5395aa1752f2ca47
2018-08-06 22:21:23 +02:00
Translation updater bot b4acd6e7fa Localisation updates from https://translatewiki.net.
Change-Id: Idbd2f12f412f0b7695f2d3def51fcaf03897fde7
2018-08-01 22:10:17 +02:00
Derk-Jan Hartman a603ef420f Make references not inherit bold or italic styling.
There is almost never a situation where this is desirable, yet it
happens quite a lot due to table headers etc having bold styling.
It confuses editors and tends to be less readable.

These style rules have been in en.wp:MediaWiki:Common.css for over 10
years or so, so probably a keeper.

Change-Id: If3d12383853a83d8ef14f1ec54c8c381b6c8f6a2
2018-08-01 14:57:37 +02:00
Translation updater bot 49285be063 Localisation updates from https://translatewiki.net.
Change-Id: I223a49833927444b4153b25bb521060fefc7a5bb
2018-07-31 22:32:50 +02:00
jenkins-bot d6dd82d782 Merge "Get document data using updated interface" 2018-07-29 00:32:45 +00:00
Thalia 2c77a9d66a Get document data using updated interface
Depends-On: Iea426be573f07c976b0c142357d5ed83e51db013
Depends-On: I36dad61ed614f007b16d7e9f47fcbfd02347f239
Change-Id: I9d9615f69d40822a72f31f0d86d7997dd0812523
2018-07-29 00:07:28 +00:00
Translation updater bot 6485e4ec2c Localisation updates from https://translatewiki.net.
Change-Id: Ifbb38f66c68561cb2423717199e731691c298a46
2018-07-28 22:29:33 +02:00
Translation updater bot 0be3b3f652 Localisation updates from https://translatewiki.net.
Change-Id: I8145d76cc0c4bc5beeb9bb9442b8920b71f8a972
2018-07-27 22:17:34 +02:00
libraryupgrader 19eb07b84d build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionAnnotations.UnrecognizedAnnotation

Change-Id: I97d67cdecbc4849a5d73a53852a9b8b4b6139d1c
2018-07-27 03:34:41 +00:00
jenkins-bot 10bb5b6157 Merge "Deal with <references/> inside a <ref> in automatic references list" 2018-07-25 16:23:11 +00:00
Timo Tijhof e86ffeba3a Deal with <references/> inside a <ref> in automatic references list
The Cite extension already had a recursion guard around the parsing of
`<references/>`, to prevent another `<ref>` containing `<references/>`
from producing a weirdly nested references list.

When an explicit `<references/>` tag is not included in the page, or
`<ref>` tags exist after the last explicit `<references/>`, the extension
automatically adds a reference list at the end of the page, to make the
references still displayed.

This automatic references list creation was bypassing the recursion
guard, causing the weirdly nested output *and* a PHP Notice from
`mRefs[$group]` becoming undefined. This commit sets the recursion guard
state during that automatic references list creation to prevent this.

Bug: T182929
Change-Id: I87737dcf39a4fc15e119a1090a9c34d6b9633c21
2018-07-25 15:39:20 +00:00
Translation updater bot 2f7e050056 Localisation updates from https://translatewiki.net.
Change-Id: I32191f9f09e790d44138ab44840642e6f86aa558
2018-07-24 22:09:40 +02:00
Translation updater bot 580a008af7 Localisation updates from https://translatewiki.net.
Change-Id: I5600138f4129aa90d751119b729f0bd358d9fb90
2018-07-23 22:31:02 +02:00
Translation updater bot eebab2324c Localisation updates from https://translatewiki.net.
Change-Id: Iad2da337807804cfc72b9e2409dfe9b1f7098092
2018-07-22 22:08:40 +02:00
Translation updater bot 8b8d2ef640 Localisation updates from https://translatewiki.net.
Change-Id: I6c49d27a991b58b220463c583793c8158abb85c7
2018-07-21 22:11:37 +02:00
Translation updater bot d07660a410 Localisation updates from https://translatewiki.net.
Change-Id: Ic23ea75fe75a3e64a113a7fd1007865d92ef77d6
2018-07-19 22:30:23 +02:00
Translation updater bot 1851e261ea Localisation updates from https://translatewiki.net.
Change-Id: I46dc02571083f2abb636635ba019a8328920295f
2018-07-18 22:12:25 +02:00
Translation updater bot e48b325bc4 Localisation updates from https://translatewiki.net.
Change-Id: I08521fe1f0b95434f0114fcabdb40438818aafc6
2018-07-16 22:19:50 +02:00
Translation updater bot d45b6e8056 Localisation updates from https://translatewiki.net.
Change-Id: Ice8eb50fee9e375b0359516efc944e532c549974
2018-07-14 22:20:22 +02:00
Translation updater bot 046297f360 Localisation updates from https://translatewiki.net.
Change-Id: I8a99726d84ae5de1b6f1df83d388039032d3889d
2018-07-12 22:38:29 +02:00
Translation updater bot e4902524b2 Localisation updates from https://translatewiki.net.
Change-Id: Ia0cc70db00cffa075aeec1d8e0a686c7110af1b5
2018-07-11 22:39:30 +02:00
Translation updater bot c1b77b092e Localisation updates from https://translatewiki.net.
Change-Id: I3f00282a3860cee11e976aa4171ff3562fbfe7db
2018-07-07 22:52:28 +02:00
Translation updater bot bd02bf9557 Localisation updates from https://translatewiki.net.
Change-Id: I4d7c0a80e98b2bf5a37632035c695fb6d8eb65b5
2018-07-05 22:43:39 +02:00
Translation updater bot 65ebb13131 Localisation updates from https://translatewiki.net.
Change-Id: If0c256f33f98baf86c296c35e2a3d22aeb76b809
2018-07-02 22:10:23 +02:00
Translation updater bot a59f8a085d Localisation updates from https://translatewiki.net.
Change-Id: I3e04c8cceae727e5470d4ae4fdb2404639f9bfb8
2018-06-30 22:30:17 +02:00
Translation updater bot 270b1b56ba Localisation updates from https://translatewiki.net.
Change-Id: I3cbf13202bc9fa6053325d3c69600fdbc40f1741
2018-06-29 22:25:43 +02:00
Translation updater bot d0073f4060 Localisation updates from https://translatewiki.net.
Change-Id: I1d70595d17590a80d48f20b878a34f57c7e6e49b
2018-06-28 22:20:58 +02:00