Commit graph

2304 commits

Author SHA1 Message Date
C. Scott Ananian 5812413f11 Extend 'format' spec to include custom format strings.
Thanks to Thiemo Mättig for the suggestion and specification at
Wikimania 2016 in Esino Lario.

This is an extended version of Thiemo's original specification.  This
version also allows specification of "own line" properties for
templates; that is, whether the template should be preceded/followed
by a newline, as requested by James Forrester.

Bug: T138492
Bug: T135667
Change-Id: Idc6b2680330e6bf5caec2bf6fc86a705d25bc649
2016-09-01 14:14:47 -07:00
James D. Forrester 4b85bdcb62 Don't pull in oojs-ui-toolbars, it's big and we don't use it
Change-Id: Id95bf98362f06d6b4db7426d2fdcacba2291d57b
2016-09-01 14:14:47 -07:00
jenkins-bot c4e50ccf5f Merge "Bump MediaWiki requirement to 1.26+" 2016-08-31 19:14:16 +00:00
jenkins-bot f12ac68e50 Merge "Only enable OOUI if it will be used" 2016-08-31 19:14:16 +00:00
Kunal Mehta f033cdcdd0 Bump MediaWiki requirement to 1.26+
Parser::enableOOUI() was introduced in 1.26.

Change-Id: I718ce9350b4f75585cdc7b4e8a7c39f0c22f3d12
2016-08-31 17:29:07 +00:00
Kunal Mehta 4d3d1b72a4 Only enable OOUI if it will be used
If the TemplateData blob failed validation, then OOUI would be enabled
in the ParserOutput even though it wouldn't be used.

Also fix casing of the Status::getHTML() function call.

Change-Id: I1c1cc8ffd46deecd12a07bb13730a073a3363019
2016-08-31 00:57:44 -07:00
Translation updater bot 6efd704c31 Localisation updates from https://translatewiki.net.
Change-Id: If2df3796fce4f781e5d0c2c2edfa01e384e1ce80
2016-08-29 22:39:53 +02:00
Translation updater bot 74d95cfb10 Localisation updates from https://translatewiki.net.
Change-Id: I9fe5da0538affedf996641ecd20e482fdcd99b7a
2016-08-28 22:42:09 +02:00
Translation updater bot efc9d56813 Localisation updates from https://translatewiki.net.
Change-Id: I7f73fb943ddb58d0221d6f3a63edef765fa6c9c5
2016-08-25 22:39:43 +02:00
Translation updater bot 9e17bca8a6 Localisation updates from https://translatewiki.net.
Change-Id: Ie32375d5255c591f39545998b8d48d5e34dbce94
2016-08-24 22:38:48 +02:00
Translation updater bot 0e1f6f6a39 Localisation updates from https://translatewiki.net.
Change-Id: I61cfe22ad39ff45110bf236ddf2d23a7d620b346
2016-08-24 10:36:53 +02:00
jenkins-bot 61360d69ec Merge "Make the help button a help link again" 2016-08-23 17:35:35 +00:00
David Lynch dbe26670af Make the help button a help link again
This gives it more visual indicators that it'll take you somewhere. Its
previous frameless-button appearance made it non-obvious that it was behaving
as a link.

Bug: T142484
Change-Id: I7732bf6db7ac63121d6ed1377c654ae8700895d1
2016-08-23 10:16:47 -05:00
Translation updater bot a826a89f0a Localisation updates from https://translatewiki.net.
Change-Id: I88fead354664fd11c29941e6a3f7bda7210117ef
2016-08-21 22:54:38 +02:00
Translation updater bot c248967012 Localisation updates from https://translatewiki.net.
Change-Id: Ibadfa08be74bd5ffd64bfdceb652eb9b8f1b4ada
2016-08-19 22:42:44 +02:00
jenkins-bot caef0269ac Merge "Fix renaming of parameters to another existing name" 2016-08-18 16:49:01 +00:00
jenkins-bot e6e6ae376c Merge "Fix renaming of parameters to the same name" 2016-08-18 16:47:45 +00:00
Translation updater bot 65a93d617f Localisation updates from https://translatewiki.net.
Change-Id: I658ab921ce2741a014a81d28892a1b1057378ee1
2016-08-17 22:41:30 +02:00
jenkins-bot 9e56136c0e Merge "Warn editors when they're adding blank TemplateData" 2016-08-17 16:47:11 +00:00
Alex Monk 05c83e5212 Fix renaming of parameters to another existing name
If the user tried to rename a parameter to "asd", but "asd" already existed,
we'd append "asd0", and the user would get "asdasd0". But what we actually
wanted to do was change it to "asd0".

Change-Id: I7fa05ed6fca54bc941e1843ebe6872a87383effb
2016-08-16 02:01:45 +01:00
Alex Monk aaa1841580 Fix renaming of parameters to the same name
Bug: T141574
Change-Id: Ifa26b5b215ec489415c47a0fbf72fbf2fcb3e09e
2016-08-16 02:01:27 +01:00
jenkins-bot 50572446d4 Merge "Dialog must listen for changes to the param names" 2016-08-15 16:42:22 +00:00
Translation updater bot 3319ec8a72 Localisation updates from https://translatewiki.net.
Change-Id: Idd91666800db14cd346150c0dc71df23e1165c8b
2016-08-14 22:29:48 +02:00
Translation updater bot f402e4de28 Localisation updates from https://translatewiki.net.
Change-Id: I77c6e3c243b3bfd8c152b20fbbe774ff44ca1d47
2016-08-13 22:32:11 +02:00
David Lynch 1564abd48d Dialog must listen for changes to the param names
Otherwise the second keystroke made while changing parameter names will cause
an error. I think this code previously assumed the change only happened once,
rather than on-keystroke.

Bug: T142889
Change-Id: I0e9c096a053667c51bbce74ee3ce1bd573ae7d49
2016-08-12 17:31:04 -07:00
Translation updater bot 5c312f7543 Localisation updates from https://translatewiki.net.
Change-Id: I08919c408fa9729186ce32557bfdc7292bae1c7f
2016-08-12 23:15:48 +02:00
Translation updater bot bee2e2fa6a Localisation updates from https://translatewiki.net.
Change-Id: I06892d12e9cf802f6cc57ba8f4fce8aab1efb8d0
2016-08-11 23:58:42 +02:00
Translation updater bot 41dbd9e799 Localisation updates from https://translatewiki.net.
Change-Id: Id2c03177104702603eca039f92362d95b7a9e371
2016-08-10 22:39:32 +02:00
jenkins-bot 642986d454 Merge "Make cancelling edit dialog less confusing." 2016-08-10 05:59:04 +00:00
Translation updater bot d42f543ddb Localisation updates from https://translatewiki.net.
Change-Id: Ic5eb60e0bf5030f74cfa966036e0bbc199f20949
2016-08-09 22:32:54 +02:00
C. Scott Ananian 76756dfaf1 Make cancelling edit dialog less confusing.
Bug: T142514
Change-Id: Id3a5dd75ec34c92d654c65f34723847251a3e52a
2016-08-09 14:47:11 -04:00
James D. Forrester f46951c94f build: Fix stylelint devDependencies
Change-Id: Ib2953ff01613c495680edd2b6271efabf181575a
2016-08-05 10:55:11 -07:00
Reedy 080aa0cfe7 Remove 'UnitTestList' hook
No longer needed now that extension unittests are autodiscovered.

Bug: T142120
Bug: T142121
Change-Id: I1e6718113af00c1bfc1ca0adff7abb36c3982b8a
2016-08-05 17:42:24 +01:00
Translation updater bot c6341214ae Localisation updates from https://translatewiki.net.
Change-Id: I4b72543fb2ffe36b473de5e942632770d8845447
2016-07-19 22:29:23 +02:00
Translation updater bot f1d2cd0ffc Localisation updates from https://translatewiki.net.
Change-Id: I5f97638ee79ee273812ef82dabaf4e1b025567cf
2016-07-16 23:00:22 +02:00
Translation updater bot d0f6ceb189 Localisation updates from https://translatewiki.net.
Change-Id: I449d4e7f473deb3c22d794ff506beec04b3c9fd7
2016-07-15 22:31:26 +02:00
Alex Monk 1de010108e Warn editors when they're adding blank TemplateData
Bug: T123207
Change-Id: I512ce01a0c7221e7636d26e546d1cbac5395b76b
2016-07-14 03:01:38 +01:00
Translation updater bot 9d53b1d0a7 Localisation updates from https://translatewiki.net.
Change-Id: I74b397f855c2eb31d2b9107773f3093d8d1e7210
2016-07-13 22:38:15 +02:00
Translation updater bot 0e1dc9732b Localisation updates from https://translatewiki.net.
Change-Id: I3882bff33bad3c982921c7699da193444d4526ac
2016-07-08 23:11:24 +02:00
Translation updater bot 01f3a87cde Localisation updates from https://translatewiki.net.
Change-Id: Ica9d4134373e28ae4f24e3db2bd0be0decfc6881
2016-07-07 22:39:31 +02:00
Translation updater bot fcf9301424 Localisation updates from https://translatewiki.net.
Change-Id: Iba9c424f6e5d7c498511a1a4beb01e174a0ec699
2016-07-04 22:33:40 +02:00
Alex Monk 5fe2360d99 Move around parameter renaming logic to update paramOrder
Also make getNewValidParameterKey actually return (probably not necessary for
this commit but I discovered it in the process).

Bug: T138800
Change-Id: I94ec6729b98c126b609b747fe4ce04a5fc02f616
2016-06-29 13:41:04 +01:00
Translation updater bot 746c743a32 Localisation updates from https://translatewiki.net.
Change-Id: I414eb3ad4f7088d58d28ea064fd86a57addd943a
2016-06-27 23:09:17 +02:00
Translation updater bot 0f446f8736 Localisation updates from https://translatewiki.net.
Change-Id: I7007116da5cbb6782019de0a3f852c216c750200
2016-06-24 11:17:29 +02:00
Translation updater bot 3008613fe4 Localisation updates from https://translatewiki.net.
Change-Id: Id218924016656142486d8add90321a9b83b7f7e2
2016-06-21 23:32:16 +02:00
Translation updater bot e5649de3fc Localisation updates from https://translatewiki.net.
Change-Id: I238c09af21749f8cb7eac8b50a807b0767fb9b7e
2016-06-17 22:32:11 +02:00
Translation updater bot 2773caede1 Localisation updates from https://translatewiki.net.
Change-Id: I605752de85ca7bf3bc336b7973d17b3473adf13b
2016-06-16 22:30:08 +02:00
Translation updater bot 96a41f66bb Localisation updates from https://translatewiki.net.
Change-Id: I9fa722f5f00301d5e81d3cd38dd16449ed042ae4
2016-06-12 22:17:15 +02:00
Translation updater bot ba86bfbc29 Localisation updates from https://translatewiki.net.
Change-Id: Ica10bbb1c5e6f33cc4c63eda05480a81e66b6a30
2016-06-11 10:58:08 +02:00
Translation updater bot 28481250f9 Localisation updates from https://translatewiki.net.
Change-Id: I4a973bca25076369604af7ab83bc46e98e5c9475
2016-06-10 22:19:53 +02:00