Commit graph

292 commits

Author SHA1 Message Date
jenkins-bot 306c5eba74 Merge "ce.MWReferencesListNode: wait for content before destroying temporary view node" 2017-08-21 15:47:33 +00:00
Translation updater bot c04825e958 Localisation updates from https://translatewiki.net.
Change-Id: I8a46615690b6a63bd0d7203ba6b9648adcc51a19
2017-08-19 08:48:59 +02:00
David Lynch 05ffafc2e4 ce.MWReferencesListNode: wait for content before destroying temporary view node
Probably as fallout from the jQuery 3 update and associated promise-async
changes, `viewNode.destroy()` in the reflist preview caused problems when
adding a new reference with the generated content nodes which were actually
having to make an API call for their contents. New functions for waiting for
content generation to finish were added to core, and will defer the
destruction of the placeholder view until after it's done rendering.

Bug: T168932
Change-Id: I700bff9979a3356626aa311bfdf030da686f5878
Depends-On: Ic12973c0b46af50e0f1933137282a142f32e7de2
2017-08-16 11:47:47 -05:00
Translation updater bot fd7df1b12b Localisation updates from https://translatewiki.net.
Change-Id: I98038875feb23523bb891ca66e9d0e1fb952999f
2017-08-14 08:57:58 +02:00
David Chan 2efa23e5b5 Fix expected remove data to match actual remove data exactly
Change-Id: I0fb294265fc41015da842f7505bdedb39db7b91a
2017-08-13 11:41:30 -04:00
Translation updater bot eababab85d Localisation updates from https://translatewiki.net.
Change-Id: Icc41778dbfe94cba9f9f015b6b0189b543e44697
2017-08-08 22:40:21 +02:00
Translation updater bot f334bfc246 Localisation updates from https://translatewiki.net.
Change-Id: I0275564829d3762970479792a407daeeb20389b8
2017-08-03 22:45:16 +02:00
Translation updater bot 3b904a0cdd Localisation updates from https://translatewiki.net.
Change-Id: I2bcc19d8bb82c2727640b2acda7810b9c913363f
2017-07-31 22:38:47 +02:00
Translation updater bot 3f98c2dce3 Localisation updates from https://translatewiki.net.
Change-Id: If80ecbffa1da0d8bee0b80cf34afd36cffb1840a
2017-07-28 22:23:21 +02:00
Translation updater bot ce9c22ed05 Localisation updates from https://translatewiki.net.
Change-Id: I4f93a8f6b292c1709fb02dbb3f138f7b2adb8601
2017-07-26 22:27:07 +02:00
James D. Forrester bee8160fd8 tests: Use new QUnit 2 module hook names
Replacing QUnit.setup()/QUnit.teardown() with the already-available-
in-qunit-1.x QUnit.beforeEach()/QUnit.afterEach() methods.

Bug: T170873
Change-Id: I5bfca33c1d4d920d54c2c54b483be78c61b6d0d7
2017-07-25 23:46:33 +00:00
Translation updater bot 9730a26735 Localisation updates from https://translatewiki.net.
Change-Id: I3c7b5bba7d1ec4769059fe2a43a9461d090a2b41
2017-07-24 22:50:30 +02:00
Translation updater bot 1382660496 Localisation updates from https://translatewiki.net.
Change-Id: I9d114fb581fa82836faa459cb77cbf525a139b3a
2017-07-22 22:30:05 +02:00
Translation updater bot d581b2117b Localisation updates from https://translatewiki.net.
Change-Id: I3cd8f0e01dfa45cb172f7e0ecfea626ec03fd8c8
2017-07-21 22:29:37 +02:00
Translation updater bot 8606addf2a Localisation updates from https://translatewiki.net.
Change-Id: Ie8ed68c62d4be27726381822d4e962a471ca4d22
2017-07-20 22:37:19 +02:00
Translation updater bot 15e3d2f52f Localisation updates from https://translatewiki.net.
Change-Id: I553f2ec456da7f94e8a17d8af97196ffa1eaf6b1
2017-07-19 22:27:03 +02:00
Umherirrender 085f28a969 Run stylelint also for less file
File was added with I6f9b85cd6cfdb055692b1f537d569c158900f7c9

Change-Id: I0ec5400422c5f8dc9f38c64dc3051a512fe20afe
2017-07-18 19:44:31 +00:00
Ed Sanders 302ba7e111 build: Upgrade grunt-eslint from 19.0.0 to 20.0.0, and stylelint
Change-Id: I79a64db9ac8b41dd66e72ee0309851c966b8295f
2017-07-18 13:03:56 +01:00
Translation updater bot 64028291ec Localisation updates from https://translatewiki.net.
Change-Id: I57d3e641f34f0099277c015eae54ea0d25b687b7
2017-07-14 22:27:07 +02:00
Translation updater bot 3680f9e14d Localisation updates from https://translatewiki.net.
Change-Id: Ifcfad3c4849f97061e75e3e21d467fdd738ff3df
2017-07-12 22:55:58 +02:00
jenkins-bot 8c4ca272c4 Merge "Reduce column-width to 25em for Minerva skin" 2017-07-11 12:05:48 +00:00
Translation updater bot 520abe5370 Localisation updates from https://translatewiki.net.
Change-Id: Id33853b244a72f06e9352857f3746c3d409714cd
2017-07-05 22:20:47 +02:00
Translation updater bot f9e8154f7f Localisation updates from https://translatewiki.net.
Change-Id: Iabb0e1b15543718bdac292c6f509383cda6655c8
2017-07-04 22:26:11 +02:00
Translation updater bot 66ce478b08 Localisation updates from https://translatewiki.net.
Change-Id: I411da931decd6274e328590b7757e06780ef2c2e
2017-07-02 22:30:11 +02:00
Translation updater bot f7cb114df7 Localisation updates from https://translatewiki.net.
Change-Id: If26e61b00f2263ca4bdbae140d615984ecdd82c0
2017-06-30 23:13:11 +02:00
Translation updater bot 312deb5aed Localisation updates from https://translatewiki.net.
Change-Id: I852c5efb2ab56f40557a317dd352754d5cab812e
2017-06-28 22:42:59 +02:00
Translation updater bot 65230fbe9d Localisation updates from https://translatewiki.net.
Change-Id: I44bdceff6755a8b1c96027ee9f48ab7f21f246d3
2017-06-27 22:18:54 +02:00
Translation updater bot 13220b23aa Localisation updates from https://translatewiki.net.
Change-Id: I9a06a6e4b82d995e426d3446770fb9f78eb52958
2017-06-26 22:42:51 +02:00
jenkins-bot 8b3ca486a6 Merge "Visual diff: Show correct reference indices in diff" 2017-06-26 19:35:32 +00:00
Thalia 1a5d90b4e3 Visual diff: Show correct reference indices in diff
Bug: T162819
Change-Id: I7eec4ee12a24ff99388cc0c95a24d50f321511f9
2017-06-26 19:19:03 +00:00
Translation updater bot bc76363702 Localisation updates from https://translatewiki.net.
Change-Id: Icfab306df57e62e400cec141dcb55048762c09ff
2017-06-23 22:27:26 +02:00
Translation updater bot 4a89a8c673 Localisation updates from https://translatewiki.net.
Change-Id: Idb5546fecd638f5682e29d68753a2bd345182ab4
2017-06-22 22:45:47 +02:00
Translation updater bot d78488e355 Localisation updates from https://translatewiki.net.
Change-Id: Ib4b92cccb44b631c1cd5775bb0d6868207709b59
2017-06-21 22:36:41 +02:00
Translation updater bot 5b9230e3c1 Localisation updates from https://translatewiki.net.
Change-Id: Ie0651f5eafc1d02d44566ee6f95ab7e23f1ab49d
2017-06-20 22:36:08 +02:00
jenkins-bot 66dabf8821 Merge "VisualEditor: Add a placeholder to MWReferenceDialog to make it less awful when empty" 2017-06-20 19:19:03 +00:00
James D. Forrester 347f21d11e VisualEditor: Add a placeholder to MWReferenceDialog to make it less awful when empty
Change-Id: I086d7243127ee411ea043bf29f4d4a5ae5d657a0
2017-06-17 01:21:48 +00:00
jdlrobson bb9720edff Reduce column-width to 25em for Minerva skin
Current Minerva skin is purposely restricted to 55.8em
This means references will never be split into 2 columns as 30em*2=60em.
Dropping it to 25em would mean the CSS applies here and no more than 2
columns would ever be used to display references.

Bug: T160497
Change-Id: I6f9b85cd6cfdb055692b1f537d569c158900f7c9
2017-06-16 11:17:35 -07:00
Translation updater bot 5aebd50674 Localisation updates from https://translatewiki.net.
Change-Id: Ib67684b3421ad0afdf1d2acf0a313c1b0e406967
2017-06-13 22:23:27 +02:00
jenkins-bot d0ac407b34 Merge "Reduce column width from 35em to 30em" 2017-06-13 16:15:35 +00:00
Translation updater bot eba77bef5d Localisation updates from https://translatewiki.net.
Change-Id: Id820cd4e357d5bd8797c752ec3a5ba37fcc6b38c
2017-06-11 22:17:27 +02:00
Translation updater bot 0520b23ca5 Localisation updates from https://translatewiki.net.
Change-Id: I278c90344684e8cd03ed059e47cac36aca2af55b
2017-06-06 22:24:57 +02:00
Translation updater bot 8139d5f089 Localisation updates from https://translatewiki.net.
Change-Id: I864ac24ac5f16806bcb42ab7980913668e30128a
2017-06-05 22:53:17 +02:00
Translation updater bot 345e08d31f Localisation updates from https://translatewiki.net.
Change-Id: Ic19badbe3f7db5ecad6ef5a1b1455ad181a50eed
2017-06-03 22:26:55 +02:00
Translation updater bot b618538281 Localisation updates from https://translatewiki.net.
Change-Id: I1e7bf6694b64fe1e1d5e17b575990a77fa60b647
2017-06-02 22:26:19 +02:00
Translation updater bot 40b4900f94 Localisation updates from https://translatewiki.net.
Change-Id: Id4c2c1ed34b7c1cd4e4518d6517a7394f572b1df
2017-06-01 22:51:42 +02:00
Translation updater bot 6fe38195d8 Localisation updates from https://translatewiki.net.
Change-Id: If3b7e3e4f3eb75bb2f816a3ca7352886cbe4fd1e
2017-05-28 22:15:50 +02:00
Translation updater bot 42ca8d6d8a Localisation updates from https://translatewiki.net.
Change-Id: I8f0191c8a357abec512f46c9318d92943e54764d
2017-05-26 22:26:57 +02:00
Translation updater bot cf5d3bea55 Localisation updates from https://translatewiki.net.
Change-Id: I1add477618550418d8c4a8973ad8001664501871
2017-05-25 22:31:05 +02:00
Translation updater bot b9bba49b31 Localisation updates from https://translatewiki.net.
Change-Id: I25db26cd2c82ae461d90ae8992d30337a6669cac
2017-05-24 22:39:57 +02:00
Translation updater bot 8ae6ec2c27 Localisation updates from https://translatewiki.net.
Change-Id: I15e95bbe81abdf213b80584392bfefc03a69b65b
2017-05-23 22:43:31 +02:00
Translation updater bot 831786a556 Localisation updates from https://translatewiki.net.
Change-Id: If1701146b330f0596c2d329f3f3aed4b6f7d5c8c
2017-05-21 22:34:46 +02:00
Jforrester 9c25cd288f Merge "Revert "Update ve.ui.MWWikitextStringTransferHandler.test results for <p> wrapping"" 2017-05-21 14:33:03 +00:00
Jforrester 978b098025 Revert "Update ve.ui.MWWikitextStringTransferHandler.test results for <p> wrapping"
This reverts commit ca45349b84.

Change-Id: If4ca5fdb57fbddd0eb89aa8adf4c47a0c005e023
2017-05-21 14:09:06 +00:00
Translation updater bot da75ae0e4a Localisation updates from https://translatewiki.net.
Change-Id: Ia36ed0f7e287c0ac538ba39e85ad6c3a5e248f63
2017-05-20 22:27:51 +02:00
James D. Forrester 9a17d9342b Describe group changes for references and references lists
Bug: T160589
Change-Id: Ifccafdf08704f67027dae2703ff2ded809fb6ab7
2017-05-20 14:26:58 +00:00
James D. Forrester ca45349b84 Update ve.ui.MWWikitextStringTransferHandler.test results for <p> wrapping
Change-Id: I782d13187e30d9a871b9805ee28e8a43eae6c61e
Depends-On: Ibd21e6a78c3958db1c0ec8f0317c4c07f3fa5735
2017-05-19 19:33:11 +02:00
Nemo bis 832f787641 Revert "Localisation updates from https://translatewiki.net."
Mistaken addition of English strings as Hindi messages.
https://translatewiki.net/wiki/Thread:User_talk:Sfic/Import_of_English_strings_to_Hindi

This reverts commit 29557f0102.

Change-Id: Ib11b72582ba6d884e5eb2f12f7ef051e31bf1337
2017-05-19 09:05:23 +00:00
Translation updater bot 29557f0102 Localisation updates from https://translatewiki.net.
Change-Id: I6ea5c8c70158379dc6533057d2afa9bf8140798d
2017-05-18 22:32:01 +02:00
Translation updater bot 29aca3bd67 Localisation updates from https://translatewiki.net.
Change-Id: I824e7d73e0aa88f9bb95a046c14d21946c8bf28b
2017-05-14 22:20:41 +02:00
Translation updater bot ec8d2a5e27 Localisation updates from https://translatewiki.net.
Change-Id: Ib5dfc905016be914ae1ad793ab7c7f03b66c8f01
2017-05-13 22:22:20 +02:00
Translation updater bot 0cf2a0dbc6 Localisation updates from https://translatewiki.net.
Change-Id: I7669aeaed29941f1adde9627e56885aa08ec7357
2017-05-12 22:51:42 +02:00
Translation updater bot a47bf238b9 Localisation updates from https://translatewiki.net.
Change-Id: Ie99b5faf188959f0e1db191b3305fe840e80293c
2017-05-11 23:04:39 +02:00
James D. Forrester 490e193f7f Reduce column width from 35em to 30em
Bug: T161788
Change-Id: I9c8e0479187ff92af5207145f52bb73519cecf29
2017-05-11 12:56:34 -07:00
Translation updater bot 2ec3dbd58f Localisation updates from https://translatewiki.net.
Change-Id: Ic4e5d45af78141ae47d525cc6d2542371b82eb06
2017-05-09 22:44:07 +02:00
Translation updater bot 3566d06de0 Localisation updates from https://translatewiki.net.
Change-Id: I5c5d9e7a5cbafd790c816a385a27bb7f3307ea88
2017-05-08 22:37:42 +02:00
Ed Sanders 1dcdeae9f6 build: Update eslint to 0.4.0 and make pass
Change-Id: I9f4508345ca6dadf617e8ed0e1dd11d28fa01c79
2017-05-04 21:09:05 +00:00
Ed Sanders db1e5a5907 Remove separate stylelint config for VE
Change-Id: I94fbce9b572a08eba2c1c2290f6777fe2f465e01
2017-04-28 17:31:20 +01:00
Ed Sanders d937925367 QUnit: Remove all code for counting tests
Change-Id: Iff2ea4f957cd835ca489b0c189d1511c0409f71f
2017-04-28 16:49:43 +01:00
jenkins-bot e5c5886287 Merge "doc: Bump copyright year notice, 'team' name" 2017-04-20 23:24:51 +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 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
Translation updater bot 76d3e0e57a Localisation updates from https://translatewiki.net.
Change-Id: Iee455167d41de5314d101c7257a547518b8934dc
2017-04-09 22:39:38 +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
Ed Sanders 61a624584b Send better HTML to the clipboard
Change-Id: Id8539697e6b30fd98e672452eda9b9c792c3c366
2017-03-20 13:42:03 +00: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 6a0017a356 Localisation updates from https://translatewiki.net.
Change-Id: I0d29ce305e3b1d495598b9ec190f22bd2dd3127f
2017-02-28 22:52:10 +01: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
Translation updater bot e129c05dba Localisation updates from https://translatewiki.net.
Change-Id: I2edb80594630318bfe5c7683735f052a6d67d266
2017-02-07 22:39:48 +01:00
Translation updater bot 6d169dca22 Localisation updates from https://translatewiki.net.
Change-Id: I7076b3aec1866308c7f51f59f51b6a4482ffe111
2017-02-06 22:26:49 +01:00
Translation updater bot 72b07873f3 Localisation updates from https://translatewiki.net.
Change-Id: I7fd6090b003545d150775092ac8453e062773e83
2017-01-28 22:31:08 +01:00
Translation updater bot b4441fe5ca Localisation updates from https://translatewiki.net.
Change-Id: Ib7a67a8359810da9775fd5775e7d5b5cb9403106
2017-01-23 22:24:26 +01:00
Translation updater bot 417d4b3285 Localisation updates from https://translatewiki.net.
Change-Id: Icbdce3f9a4ec9cfcc3dbd0d66054ecf79eabeb1e
2017-01-21 22:20:06 +01:00
Translation updater bot f18107effc Localisation updates from https://translatewiki.net.
Change-Id: I291de1659ce54a9675f693ae74c9124ed8520d65
2017-01-20 09:20:38 +01:00
Translation updater bot e7a2c9c1f9 Localisation updates from https://translatewiki.net.
Change-Id: I095d6fb59a1bed01640503940c4c8f1bcdf48e35
2017-01-04 22:30:04 +01:00
Translation updater bot ae20c91abf Localisation updates from https://translatewiki.net.
Change-Id: I9dfd1d34aed73e88e63094ae450e6640bf66676f
2016-12-28 10:45:06 +01:00
Translation updater bot 8a7820e865 Localisation updates from https://translatewiki.net.
Change-Id: I00e77ce7ddadbb53c613b8647ec211b122a4239a
2016-12-18 22:12:24 +01:00
Translation updater bot b9843c74fa Localisation updates from https://translatewiki.net.
Change-Id: Ie577da1b742c285e1d6b9f40fe9c2446854a95ec
2016-12-12 22:21:24 +01:00
Ed Sanders 4ff0db7100 Force word break in context preview for long links
Bug: T152680
Change-Id: I50c547703d86def747655567a76702e9bc6610e7
2016-12-08 13:11:18 +00:00