Commit graph

2400 commits

Author SHA1 Message Date
Ed Sanders d937925367 QUnit: Remove all code for counting tests
Change-Id: Iff2ea4f957cd835ca489b0c189d1511c0409f71f
2017-04-28 16:49:43 +01:00
Translation updater bot 9b6d9874db Localisation updates from https://translatewiki.net.
Change-Id: Iae01cbefce106fe8de8728aaf08441fde08a0b8c
2017-04-27 22:32:40 +02:00
Translation updater bot 5b01316d8d Localisation updates from https://translatewiki.net.
Change-Id: I2ee63bde026af7f01ad8e735dfd65bc83dabee68
2017-04-25 22:38:28 +02:00
Translation updater bot 1b5b4fd864 Localisation updates from https://translatewiki.net.
Change-Id: I6757bda28a663bc0e3dd6e470187f6f951ed652b
2017-04-24 22:35:51 +02:00
Translation updater bot 6956b5a703 Localisation updates from https://translatewiki.net.
Change-Id: Ia7b295ab186efad30dd6da130979d0e64aa2fbc0
2017-04-23 22:26:57 +02:00
Translation updater bot cb97c23516 Localisation updates from https://translatewiki.net.
Change-Id: Iec7bd154b3ec3467aa4949af185eb280e862e73f
2017-04-22 22:41:26 +02:00
Translation updater bot c85c7d807b Localisation updates from https://translatewiki.net.
Change-Id: I446fd79dd5357abe87d2fbc505f311ec5d96f907
2017-04-21 22:43:29 +02:00
jenkins-bot e5c5886287 Merge "doc: Bump copyright year notice, 'team' name" 2017-04-20 23:24:51 +00:00
James D. Forrester efce5f2b49 Drop the pointless "AllowCiteGroups" config setting
Bug: T161144
Change-Id: Ie1454926b8bfa108a62d088991e66b6dae9c9f10
2017-04-20 22:56:08 +00:00
David Lynch 4841b7496c MWReferenceNode: Don't try to remove from the internal list if it's not added
Recent changes to setRoot in ve core (719f8c667) cause unroot to occur at a
point we weren't expecting, when adding a new reference.

Bug: T163267
Change-Id: If02ea08bb8b6db3be41d51ab44ce2a74cfe07914
2017-04-20 18:18:19 +01:00
Ed Sanders 1fe0fb2e70 Only remove from internal list if unroot from correct document
Bug: T163267
Change-Id: I11ff56fbd437e46aab516a50235f8077eea0af5b
2017-04-20 18:18:02 +01:00
James D. Forrester 0d20873fa6 doc: Bump copyright year notice, 'team' name
Change-Id: Ia090c417a1aa716b255613199b5e49616bf0517a
2017-04-20 16:50:43 +00:00
Ed Sanders 5b477ce3a1 Bring in wikitext paste tests from ve-mw
Depends-On: Ibea6994a208e4b0b1022896eb31dd2f36f0fd6c6
Change-Id: I244570c39e2f3595137c02e62cb91ba8eeab8a4a
2017-04-20 16:27:50 +00:00
Translation updater bot 60dcf86ce7 Localisation updates from https://translatewiki.net.
Change-Id: I4e31515309db654bf6754b8d735c4faae62045df
2017-04-19 22:52:29 +02:00
Translation updater bot 0d3b19d9d2 Localisation updates from https://translatewiki.net.
Change-Id: I50972660c81ecbfa2b0b3c018c74e4c5ab06e88e
2017-04-17 22:21:39 +02:00
Translation updater bot 4c1d01f158 Localisation updates from https://translatewiki.net.
Change-Id: I6edc9e189cbd89332379569db22cc97e45955222
2017-04-16 10:12:06 +02:00
Translation updater bot 3073bff32a Localisation updates from https://translatewiki.net.
Change-Id: I9d8364e9aaf84c0591a9d7563fa0460d0b144782
2017-04-15 10:43:22 +02:00
Translation updater bot 314e8a64a7 Localisation updates from https://translatewiki.net.
Change-Id: I0826ca3b6892070725b05eee357852c124b9fe65
2017-04-12 22:27:34 +02:00
Translation updater bot 2aadf5b824 Localisation updates from https://translatewiki.net.
Change-Id: I36b9af4b47144da75a4c0a66148a0dbb71f72e3a
2017-04-11 22:46:23 +02:00
L10n-bot 359ab85824 Merge "Localisation updates from https://translatewiki.net." 2017-04-10 20:44:44 +00:00
Translation updater bot 2eb7c318c8 Localisation updates from https://translatewiki.net.
Change-Id: I94a421c41c8b6c9180317f21a4ac1e196531012c
2017-04-10 22:44:35 +02:00
Ed Sanders a6460a3025 VisualDiff: Ignore changes to originalMw
This can happen when switching editors.

Change-Id: Iec86efcdf5488918e53d69a0217d1ec4e3bb7f88
2017-04-10 21:18:26 +01:00
James D. Forrester 11769a5196 stylelint: Drop old 'no-unsupported-browser-features' rule
Unsupported now.

Change-Id: I176c1f446ee2196327f6a4135090d666dc3dd1cc
2017-04-10 08:58:33 -07:00
James D. Forrester 003cc38e6c build: Bump devDependencies to latest
grunt-banana-checker  0.5.0  →  0.6.0
 grunt-stylelint       0.6.0  →  0.7.0

Change-Id: Ia22ef6b12209d17d4faf6f168049aec2afdba4f7
2017-04-10 08:57:27 -07:00
Translation updater bot 76d3e0e57a Localisation updates from https://translatewiki.net.
Change-Id: Iee455167d41de5314d101c7257a547518b8934dc
2017-04-09 22:39:38 +02:00
Translation updater bot 2634b8755a Localisation updates from https://translatewiki.net.
Change-Id: I1e622175160c8243fa4810b1c45baf5c5b956c58
2017-04-08 22:53:26 +02:00
James D. Forrester ddb3e9088a i18n: Don't try to spell out all the options that are allowed
Bug: T160628
Change-Id: Ibf728277c5bd4df5d3e8534848ee686239090376
2017-04-08 04:10:29 +00:00
Translation updater bot c490a2acb9 Localisation updates from https://translatewiki.net.
Change-Id: I6664679c4c15622e140f124a5f6ca9488466d507
2017-04-01 22:37:34 +02:00
Translation updater bot 54be4ff768 Localisation updates from https://translatewiki.net.
Change-Id: I39693a6994ed5412ca7d06f597501c32e4d1341b
2017-03-29 22:26:10 +02:00
Translation updater bot fb9d53a26d Localisation updates from https://translatewiki.net.
Change-Id: I5ff4620684f5783d933fb3d51a3308c8c7a27873
2017-03-26 22:23:23 +02:00
jenkins-bot 149d6ed3b4 Merge "Send better HTML to the clipboard" 2017-03-20 17:02:28 +00:00
Ed Sanders b58db89aac build: Update stylelint to 0.4.1
Change-Id: Ia7d685d9e10468d2303c68dc88fee8811251ffcb
2017-03-20 14:37:33 +00:00
jenkins-bot dd570be4f5 Merge "build: Mark Node file as ES6" 2017-03-20 13:59:50 +00:00
Ed Sanders 61a624584b Send better HTML to the clipboard
Change-Id: Id8539697e6b30fd98e672452eda9b9c792c3c366
2017-03-20 13:42:03 +00:00
Ed Sanders e0f297ae39 build: Mark Node file as ES6
Change-Id: I041ff8fa7d22a8e6a4aa6877c4136d8086593956
2017-03-20 10:47:54 +00:00
Translation updater bot 2f0e463773 Localisation updates from https://translatewiki.net.
Change-Id: I9722558ccb50bb44221d2bb100c543d7f7aabeea
2017-03-19 22:20:41 +01:00
Translation updater bot 6eca092563 Localisation updates from https://translatewiki.net.
Change-Id: I278666d4b76881d3e5965ad417bdffe4b57d34eb
2017-03-18 22:37:23 +01:00
Translation updater bot 28fcb10372 Localisation updates from https://translatewiki.net.
Change-Id: I821143b492a00211c21c1483100def7bb5e28265
2017-03-17 22:24:38 +01:00
Translation updater bot aac0f3dd40 Localisation updates from https://translatewiki.net.
Change-Id: I9bedf2b563f36211c56eab59098425ec086ed3e0
2017-03-16 23:08:53 +01:00
Translation updater bot 98b262a683 Localisation updates from https://translatewiki.net.
Change-Id: Ibc350877bd07b5db4400c5aa9a074b5406349d3d
2017-03-15 22:31:51 +01:00
Timo Tijhof 04c3ad0107 Implement responsive columns for reference lists
This is based on the popular 'count' parameter from Template:Reflist on
English Wikipedia, which has also been adopted by many other wikis.

That template's 'count' parameter allows maximum flexibility on a per-
page basis. This was important because the template can't know how many
references the list will contain. Users typically manually add (and
later, increment) the 'count' parameter when the list exceeds a certain
threshold.

The template currently sets an exact column count (via the CSS3
property `column-count`).

This patch improves on that by instead using the closely related CSS3
`column-width` property. This automatically derives the column count
based on the available space in the browser window. It will thus create
two or three columns on a typical desktop screen, and two or no columns
on a mobile device.

The specified width is the minimum width of a column. This ensures that
the list is not split when rendered on a narrow screen or mobile device.

It also hooks into the raw list before parsing and adds the class only
when the list will contain more than a certain number of items. This
prevents very short lists from being split into multiple columns.

Templates like Template:Reflist on English Wikipedia currently are not
able to set inline styles on the list element directly, which is why
they set it on a `<div>` wrapping the `<references />` output. Because
of this, the feature of the Cite extension must not be enabled at the
same time, as that would result in both the template's wrapper and the
references list being split. The end result would involve sitations with
three columns split in four sub-columns, creating a complicated mess of
nine intermixed columns.

To provide a smooth migration for wikis, this feature can be disabled by
default using `$wgCiteResponsiveReferences = false`. Each individual
template createing reference list can then be migrated, by removing the
wrapper column styles and instead settting the new "responsive"
attribute, like so: `<references responsive />`.

Once any conflicting templates have been migrated, the default for the
wiki can be swapped by setting `$wgCiteResponsiveReferences = true`.

If wikis wish for some templates to keep their custom column splitting
behaviour, templates can also opt-out by setting `responsive="0"`, which
will make sure that it will keep behaving the current way even after the
feature becomes enabled by default for the wiki.

In summary, when disabled by default, pages can opt into this system
with `<references responsive />`. When enabled by default, pages can opt
out of the system with `<references responsive=0 />`.

* Deprecate cite_references_prefix/cite_references_suffix.

  This message is rarely used and opens up compatibility hazards.
  It was already removed by Parsoid, but the PHP implementation
  still had it. It's typically used to add inline styles to the
  wrapper which is more appropiately done in Common.css (or
  obsoleted as part of the skin or Cite extenion itself nowadays
  depending on what style in question).

  It was also a HTML-style message with separated open and close
  segments, which is an anti-pattern in itself.

* Declare module target explicitly and include mobile. The absence of
  this stylesheet caused subtle BiDi/RTL bugs on mobile.

Bug: T33597
Change-Id: Ia535f9b722e825e71e792b36356febc3bd444387
2017-03-07 22:42:47 +00:00
Translation updater bot 254951d227 Localisation updates from https://translatewiki.net.
Change-Id: I3868f820121ea735c96c906221974bdcf544084d
2017-03-01 22:21:28 +01:00
Translation updater bot 6a0017a356 Localisation updates from https://translatewiki.net.
Change-Id: I0d29ce305e3b1d495598b9ec190f22bd2dd3127f
2017-02-28 22:52:10 +01:00
Translation updater bot d39ee8806d Localisation updates from https://translatewiki.net.
Change-Id: I3e540c37ae098ed658e10d57606d7b6da325d2cd
2017-02-26 22:27:37 +01:00
Translation updater bot 6bd3c5ecc8 Localisation updates from https://translatewiki.net.
Change-Id: I3756894ba4688349b4584e67e54d118d3e868e96
2017-02-25 22:19:21 +01:00
Translation updater bot 2371fe219e Localisation updates from https://translatewiki.net.
Change-Id: Ib8a49cb7dfc765383e43904c5d790c6c201a11d1
2017-02-24 22:22:40 +01:00
Arlo Breault dff5d42d5f Sync up with Parsoid citeParserTests.txt
This now aligns with Parsoid commit e23a818554548cd922ee262ea1d8da47ea457248

Change-Id: I58155797c8c63b7ef64be74450647059cc5e28ca
2017-02-22 09:22:29 -08:00
Translation updater bot 174a93a4b0 Localisation updates from https://translatewiki.net.
Change-Id: Id99b330d2098e0fc7f05fb92a836d9948bc756a4
2017-02-19 22:24:14 +01:00
Translation updater bot 204b6a7621 Localisation updates from https://translatewiki.net.
Change-Id: Iebe54825250d094a8c6e6c4d2406ff87a1a6b2a0
2017-02-16 22:37:55 +01:00
Translation updater bot cf9b2c9633 Localisation updates from https://translatewiki.net.
Change-Id: Id0249fc01a38184b96f658fe934c5126f639e1dc
2017-02-10 22:19:15 +01:00