Commit graph

1697 commits

Author SHA1 Message Date
Translation updater bot 92367e532e Localisation updates from https://translatewiki.net.
Change-Id: I015fa8d41136c2eed9a24899b49c5a5a443a3b71
2019-01-18 22:19:17 +01:00
jenkins-bot f9f9efdb06 Merge "Remove default value for 'paramOrder'" 2019-01-14 19:51:58 +00:00
Translation updater bot 56c5388d97 Localisation updates from https://translatewiki.net.
Change-Id: Ie4404837dc895b60991e7be43263e8e106658968
2019-01-13 22:13:47 +01:00
Translation updater bot 7ced037c38 Localisation updates from https://translatewiki.net.
Change-Id: Iacfe46926deb67dfd4660bd77d060c0a99054500
2019-01-10 22:49:24 +01:00
Translation updater bot a804524f85 Localisation updates from https://translatewiki.net.
Change-Id: Id31970e9845f35fc184ff8f14f978da74d499f86
2019-01-08 22:30:11 +01:00
Timo Tijhof 4aaa9dfcf8 Remove default value for 'paramOrder'
When normalising a TemplateData blob for API consumers, we previously
automatically generated the 'paramOrder' with the order of the keys
as they were specified in the JSON blob (which, unlike in JS, is
known to be reliable in PHP).

While this was useful to some extent, it made it mandatory for
Parsoid and VisualEditor to always re-order properties during
edits to match the specified order.

In order to allow the order to remain flexible/unspecified, the
original Specification made paramOrder optional, but during the
implementation I gave it a default, which kind of defeated that
intention. This patch fixes that.

Bug: T138200
Change-Id: Ib40d23dac7e75274083f95a25c5aa1c22dfffb22
2019-01-08 19:55:59 +00:00
Translation updater bot 3ce417774a Localisation updates from https://translatewiki.net.
Change-Id: I9622380b6a233d3caa6012289f8841c7e858bd50
2019-01-06 22:30:27 +01:00
Umherirrender 9ac1604d19 Improve param doc
Change-Id: Idc0780dae2748d6353ae7e1731f183307489626a
2019-01-03 00:21:18 +01:00
Timo Tijhof d71bdf2f08 Specification: Fix "properties" typo in § 3.2.8
Change-Id: I07d12cc759224474bf631ae5ab50d5819fe60756
2019-01-01 16:59:07 -08:00
Translation updater bot 079d17f313 Localisation updates from https://translatewiki.net.
Change-Id: I33a52a386a636cb85c1ee5054b531bc3481baff6
2019-01-01 22:21:50 +01:00
Timo Tijhof 498c66f451 tests: Add coverage for TemplateDataBlob::getHtml
Change-Id: I04caf657ac72f90d1dc0797f293d5a4f61cfdf08
2018-12-29 20:43:02 +00:00
Translation updater bot 545ee5f3d9 Localisation updates from https://translatewiki.net.
Change-Id: I1f8ff79e3fc168081232378f33b79c055efe6a77
2018-12-20 22:41:50 +01:00
Translation updater bot fca2e21096 Localisation updates from https://translatewiki.net.
Change-Id: Iec7111e5653d0b9a53ae3972e2b61be2aa569d13
2018-12-19 22:22:52 +01:00
Translation updater bot 885dcf79b7 Localisation updates from https://translatewiki.net.
Change-Id: I1501e951ce866be7135d76d6fcc69bc8da23df6b
2018-12-18 22:48:33 +01:00
Kunal Mehta f21a1a0017 build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I7f51224c618c89e57e472fdeca52dceed4c05263
2018-12-17 18:58:37 -08:00
Translation updater bot 2d0468ec6b Localisation updates from https://translatewiki.net.
Change-Id: I94f7af716dab97e4e3cda41eee5adcc5b8aa9b2d
2018-12-14 22:22:23 +01:00
Translation updater bot 9b10fa593d Localisation updates from https://translatewiki.net.
Change-Id: I4fd7ac9b3e0c49778d8a4f49afbf21c4e7d061cb
2018-12-11 22:40:01 +01:00
jenkins-bot 4221945fc9 Merge "Ignore bang magic word in table syntax when guessing parameters" 2018-12-10 23:55:08 +00:00
Translation updater bot 2cb82489ca Localisation updates from https://translatewiki.net.
Change-Id: I8215a2a701d00a37dff1a907f801012015c5ce6a
2018-12-05 22:30:31 +01:00
jenkins-bot 8e05faa41f Merge "Move all apihelp translatable messages to separate files" 2018-12-05 11:02:13 +00:00
Translation updater bot d75728b6a5 Localisation updates from https://translatewiki.net.
Change-Id: I16725fe198967bd73bcf00357b686055842d874d
2018-12-03 22:35:32 +01:00
zoranzoki21 ac59e27411 Move all apihelp translatable messages to separate files
Bug: T189982
Change-Id: I0614e26ad8205209f3efd5c480248740eee92aed
2018-12-03 20:41:20 +00:00
Translation updater bot f9795889f0 Localisation updates from https://translatewiki.net.
Change-Id: I7a80517bccc55e4bd87af9d53b858bc2a9f96d14
2018-11-30 22:50:06 +01:00
jenkins-bot d7145f1180 Merge "Update eslint-config-wikimedia to 0.9.0" 2018-11-30 21:28:32 +00:00
jenkins-bot 2b3b57b21d Merge "Use ve.deactivationComplete hook instead of ve.deactivate" 2018-11-30 20:27:28 +00:00
Translation updater bot 21653eb0d8 Localisation updates from https://translatewiki.net.
Change-Id: I5dccd4e28119c956e6c6629303279e928ee860fd
2018-11-29 22:27:43 +01:00
Ed Sanders 47c3c69baa Update eslint-config-wikimedia to 0.9.0
Also bump stylelint (no fixes required)

Change-Id: Ia6bd3a8c0392eafb939f9ff05827e1320f56b706
2018-11-29 14:19:33 +00:00
Ed Sanders e0cab02231 Use ve.deactivationComplete hook instead of ve.deactivate
We want to deprecate the latter.

Change-Id: Id1ae1049738220a86adb36cb3961592e3d8ca27c
2018-11-29 14:01:32 +00:00
James D. Forrester 64367bfebe eslint: Drop 'dot-notation' rule
Bug: T210552
Change-Id: I61010c115d5660ca76832e5380e12466b5b537f1
2018-11-28 11:14:08 -08:00
Sam Wilson 75e54ae999 Ignore bang magic word in table syntax when guessing parameters
Three-braces-and-a-bang can be a table starting construct in templates.

This also fixes an overlooked bug in which the test wasn't checking
array element key names.

Bug: T157029
Change-Id: I69ed4fc9fe3bb126b7b39abea0f58ad56adf3885
2018-11-27 11:46:23 +08:00
Ed Sanders 822d0cd345 Rename module editPage→editTemplatePage, create minimal new editPage module
VisualEditorPluginModules loads whenever VE loads, so create a minimal
loader page to check if we are in the template namespace before loading
the rest of the TemplateData init code.

Bug: T208765
Change-Id: Id127eb4a2472a6ce9da7672f9237b182cf6be2eb
2018-11-24 00:14:03 +00:00
libraryupgrader a71ecb3953 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: Icbaa6edc54535c79390a11da27054cb6c91a8b42
2018-11-16 14:38:18 +00:00
jenkins-bot db3d73bc84 Merge "eslint: Introduce wikimedia/qunit ruleset" 2018-11-15 23:57:55 +00:00
jenkins-bot 7b7b1bacbd Merge "build: Update devDependencies" 2018-11-15 23:51:42 +00:00
jenkins-bot 201efff49a Merge "Separate parameter aliases in the description table with spaces" 2018-11-15 23:51:41 +00:00
Ed Sanders 9a8c807f51 eslint: Introduce wikimedia/qunit ruleset
Change-Id: I3972918c00e69d325c5cb2055d4996a8c07b1034
2018-11-15 23:21:32 +00:00
Ed Sanders 0736e6d572 build: Update devDependencies
eslint-config-wikimedia      0.5.0  →   0.8.1
 grunt-eslint                20.1.0  →  21.0.0
 grunt-stylelint              0.9.0  →  0.10.1
 stylelint                    8.2.0  →   9.2.0
 stylelint-config-wikimedia   0.4.2  →   0.4.3

Change-Id: I21d7b4e1418f2f9bf22d380b1302158c56ab4886
2018-11-15 23:14:32 +00:00
Bartosz Dziewoński 1421878eee Separate parameter aliases in the description table with spaces
This allows them to wrap over multiple lines if necessary, greatly
improving the result for templates with ridiculous number of aliases,
like <https://en.wikipedia.org/wiki/Template:Cite_book/TemplateData>.

Change-Id: I5826ac31b83e81f89f85e87f9098570b3759ccfb
2018-11-15 23:08:18 +00:00
Translation updater bot d9174e7052 Localisation updates from https://translatewiki.net.
Change-Id: Ifb58d24d967a12f3921641bb6bc42f7ae09aa343
2018-11-15 23:00:28 +01:00
Ed Sanders 34924e0a0b Remove VETarget, use textSelection API
The textSelection API works with VE wikitext mode , so we
can use the same code for both editors.

Change-Id: I9032733b14d115bad8dcadefc50e791cf30eed7d
2018-11-14 14:53:42 +00:00
Translation updater bot d30c1be1f2 Localisation updates from https://translatewiki.net.
Change-Id: I7f3821e8da04e396c19cf4bdcc04d115108cae05
2018-11-12 22:12:56 +01:00
Translation updater bot bb3a30f02c Localisation updates from https://translatewiki.net.
Change-Id: I732a074f22b0db11dfbf43978684fe668f9781f8
2018-11-11 22:33:54 +01:00
Translation updater bot 2cd9625494 Localisation updates from https://translatewiki.net.
Change-Id: I974bb4bdb583d2d34bcb39374e995741ba1a1b96
2018-11-10 22:28:28 +01:00
Translation updater bot 57b6fb03fa Localisation updates from https://translatewiki.net.
Change-Id: I57cd5fa289aae5b39da3e7aae4be477796cf4725
2018-11-04 22:42:43 +01:00
Translation updater bot 91cf82c038 Localisation updates from https://translatewiki.net.
Change-Id: I9d5bc27234327af4863e81bf4bf9d728ecefa61f
2018-11-03 11:03:27 +01:00
Bjornskjald 096d558272
Add stripping leading and trailing spaces from the "format" field
Bug: T177973
Change-Id: I5fc30479485da59b5ea097f97a2dfb7ec149918f
2018-11-01 22:55:40 +01:00
Translation updater bot 8d95685c11 Localisation updates from https://translatewiki.net.
Change-Id: I11ae21d24aa0b1c7275b8fde64ba349bdd771591
2018-11-01 22:23:29 +01:00
jenkins-bot 593d23fd36 Merge "Don't store templatedata pageprop on doc-subpage" 2018-10-31 15:21:49 +00:00
Umherirrender bce29bdc6e Start showing warning for deprecated PHP entry point
Change-Id: I43d7febac9ae620d739dd494a87aba2a7010801c
2018-10-26 22:00:05 +02:00
Translation updater bot 66c5185896 Localisation updates from https://translatewiki.net.
Change-Id: I32967ebfaa1cb8c89e04383707163cbf8a3eb012
2018-10-23 22:09:06 +02:00