Moriel Schottlender
c525aef5b0
Allow adding a new parameter again
...
Due to a bug, new parameters could not be added unless they were
previously deleted. This commit fixes that bug.
Change-Id: I3784d1b3d650893f26abb63994d13c08b148075b
2015-02-19 02:02:15 +00:00
Moriel Schottlender
d59d517339
Warn if a TemplateData block already exists in related page
...
Check if there already is a TemplateData block in a related
page and warn the user if that is the case. Related pages are
either the /doc page or, if we are already in a /doc page, its
immediate parent.
Bug: T74062
Change-Id: I83212f14ecd2dcc18970d21ad0d833b461405390
2015-02-18 17:56:13 -08:00
jenkins-bot
c087fe89c7
Merge "Change global class variables to mw.TemplateData"
2015-02-19 01:49:42 +00:00
Moriel Schottlender
e6e728b58e
Change global class variables to mw.TemplateData
...
Nest all classes for the templatedata dialog in mw.TemplateData
namespace.
Change-Id: Ib514378c9fbc0fb993b3cbc2fa48ced920167226
2015-02-18 17:47:08 -08:00
Moriel Schottlender
4757a83f88
Display a message when no parameters are defined
...
If no parameters are defined in the TemplateData, have the table
display a specific message noting that.
Bug: T53429
Change-Id: I3c9ae31ef9eafab7f94325fcd58e14a3e45c9818
2015-02-18 17:43:16 -08:00
Moriel Schottlender
ba0349866f
Display TemplateData parameter table according to param order
...
Have the parameter order in the display table appear according to
the paramOrder setting. If the setting isn't explicitly set in the
TemplateData string, the parameters will be in order of appearance.
Change-Id: Ibbd5a7b28f722c51788b9ed0f5ac577902ce4b7a
2015-02-18 16:53:59 -08:00
Translation updater bot
985e8b56bf
Localisation updates from https://translatewiki.net .
...
Change-Id: I1ae1fa3965936ee47c96fbdfe23b68b2c764e9f6
2015-02-18 22:06:37 +01:00
Translation updater bot
82986955b2
Localisation updates from https://translatewiki.net .
...
Change-Id: I79f53b348601b0135433e53d3e837c82f5b20cd8
2015-02-17 21:54:23 +01:00
Translation updater bot
7b6aa00ef8
Localisation updates from https://translatewiki.net .
...
Change-Id: I77889b4973f395d78d416620b84436aaabb74a82
2015-02-16 21:57:07 +01:00
Translation updater bot
4b1961dca9
Localisation updates from https://translatewiki.net .
...
Change-Id: I29fddfa00753297f22b9db1c2fd1d0a75bb33658
2015-02-13 22:21:58 +01:00
Translation updater bot
35b536763d
Localisation updates from https://translatewiki.net .
...
Change-Id: I37eb0bd606604f43ef4ac8f234875e865f0de95b
2015-02-12 21:36:22 +01:00
Translation updater bot
7b7d4836ab
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic4c33fbe6628061ecf6335bea7c5228a328335a0
2015-02-11 22:29:12 +01:00
Translation updater bot
75d6906924
Localisation updates from https://translatewiki.net .
...
Change-Id: I86b58db28492346504e3f086367edc5252ff978a
2015-02-10 22:17:10 +01:00
Translation updater bot
229006ce38
Localisation updates from https://translatewiki.net .
...
Change-Id: I0759b0421b1403edfc085f437115c08bde6db828
2015-02-09 21:37:34 +01:00
Translation updater bot
672b6b6a58
Localisation updates from https://translatewiki.net .
...
Change-Id: Ieeb59d52baf4c71e6937fd4381a8904197ce52ef
2015-02-08 21:49:51 +01:00
Translation updater bot
0b3d8d5bb7
Localisation updates from https://translatewiki.net .
...
Change-Id: I91918cd3d938af317b870aa064bd40ce21dafea5
2015-02-07 21:48:50 +01:00
Translation updater bot
9dffcfbe51
Localisation updates from https://translatewiki.net .
...
Change-Id: Id8273c0b15d298ed7a941b5f29f01ce9ef2d3828
2015-02-06 21:07:40 +01:00
Translation updater bot
32c9190f0b
Localisation updates from https://translatewiki.net .
...
Change-Id: I9a058b6478d5854867f642696588347ad7e05557
2015-02-05 23:07:20 +01:00
Translation updater bot
53bbb3b875
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaf62250d795a663196d217b6c8a870136aa6c70b
2015-02-04 22:28:27 +01:00
jenkins-bot
39da09b516
Merge "Use ActionFieldLayout for language and auto-choose new lang on add"
2015-02-03 00:54:15 +00:00
Translation updater bot
76c9692953
Localisation updates from https://translatewiki.net .
...
Change-Id: I9775b234de44122eaf2f9d08cd559db8ed8569aa
2015-02-02 22:31:30 +01:00
Translation updater bot
d67225b2d3
Localisation updates from https://translatewiki.net .
...
Change-Id: I7326d7a9d0c8b7a2852f5085f51126e55f79ec34
2015-01-30 21:52:40 +01:00
jenkins-bot
492f933bb8
Merge "Reset paramOrder widget on dialog setup"
2015-01-30 17:50:17 +00:00
Moriel Schottlender
3ad7e0b1e3
Reset paramOrder widget on dialog setup
...
Make sure that every time the dialog is open, the paramOrder
widget is emptied so it can be refilled fresh from the model.
Bug: T88126
Change-Id: I628c66710cb1f2f77385b16c627585350f357c45
2015-01-30 17:41:41 +00:00
Translation updater bot
54df9f5f6d
Localisation updates from https://translatewiki.net .
...
Change-Id: I449afa72b7e2c7648f1c624f4bcd269c34e31acb
2015-01-29 23:07:29 +01:00
Moriel Schottlender
d141e924f6
Use ActionFieldLayout for language and auto-choose new lang on add
...
Change the current hacky layout to the proper ActionFieldLayout,
and also make sure that when the user adds a language, the new
language is selected.
Change-Id: I737a1dcfc08bd47829661daf3c08e2e480670842
2015-01-29 11:58:56 -08:00
jenkins-bot
afeb20a469
Merge "Allow adding a deleted parameter in the templatedata dialog"
2015-01-29 02:56:40 +00:00
Moriel Schottlender
b3877b327d
Allow adding a deleted parameter in the templatedata dialog
...
If a user adds a parameter that was previously deleted, the
parameter properties will be completely emptied, and the parameter
will be added as if it is new.
Bug: T86916
Change-Id: Ib739ee09229750f94314636d4290dbe6662b4c0f
2015-01-28 18:50:43 -08:00
Translation updater bot
d35296b00a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ibaa6d061ae69d8c0a5499fdb45d6607885212855
2015-01-28 22:38:58 +01:00
Translation updater bot
80d79f3eee
Localisation updates from https://translatewiki.net .
...
Change-Id: I53daf9e67340ff073aff3d8732b4e216faf3610a
2015-01-27 22:16:31 +01:00
Translation updater bot
b2f2787957
Localisation updates from https://translatewiki.net .
...
Change-Id: Icc18d9d95b470f86a89c7b1569868255a8d51f48
2015-01-26 22:42:19 +01:00
Translation updater bot
a24073138d
Localisation updates from https://translatewiki.net .
...
Change-Id: I5a21cf8ac10596d57199d095fee1cd42a76c6111
2015-01-25 21:50:40 +01:00
Translation updater bot
14ae044cff
Localisation updates from https://translatewiki.net .
...
Change-Id: I7d580e964cb773ff5e08d8277b90ee2b10b9dc36
2015-01-23 22:30:14 +01:00
Moriel Schottlender
d212901649
Add param order drag/drop widget to TemplateData dialog
...
Make sure the parameter order is editable with the drag/drop widget.
Change-Id: I35079907b2ed9f5ecdcd438dd69ed9892ce3e428
2015-01-23 19:02:56 +00:00
Translation updater bot
1bf4ae185d
Localisation updates from https://translatewiki.net .
...
Change-Id: I5727d150eacb424e26fc4828606145447bcc0098
2015-01-22 23:23:38 +01:00
Translation updater bot
c9663f4f9b
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia948b0d132bde497290e6f60d71994eeba1e0964
2015-01-20 22:00:47 +01:00
jenkins-bot
459236923c
Merge "Adapt the type input to work with the new ooui getMenu()"
2015-01-20 17:32:38 +00:00
Moriel Schottlender
edf70972e1
Adapt the type input to work with the new ooui getMenu()
...
The type in the templatedata editor didn't update because the events
were attached to the previous ooui SelectWidget, and should be
adjusted to use the new methods.
Bug: T86922
Change-Id: I619d1cc69f672d2d03d7dafa97ba3d950de9d89d
2015-01-20 17:19:40 +00:00
Translation updater bot
f6ecc4a5cc
Localisation updates from https://translatewiki.net .
...
Change-Id: I0c98b57a5c69f1f3b006da4b02386f7f99599e27
2015-01-19 22:05:10 +01:00
Translation updater bot
d9ecc878e1
Localisation updates from https://translatewiki.net .
...
Change-Id: I9a68481e63b7464d0716f07c768beb4b8a9d88c4
2015-01-18 22:22:23 +01:00
jenkins-bot
b4fb04a142
Merge "Add deprecated switch to the editor"
2015-01-17 03:45:11 +00:00
Ricordisamoa
9639d78e4f
Show "no description" in italic grey also for deprecated parameters
...
Timo Tijhof's initial commit b7080c5f90
inexplicably caused the "mw-templatedata-doc-muted" class to be added
to the description field only when $paramObj->deprecated was false.
Bug: T69794
Change-Id: Iad86f5dbc48046faa09f39c339fce95db3331208
2015-01-16 23:58:05 +01:00
Moriel Schottlender
ee56d518fb
Add deprecated switch to the editor
...
The 'deprecated' boolean property was missing from the templatedata
edit dialog.
Change-Id: Ib05e832d8fc91896816b3f8b22f7678dacb245cd
2015-01-16 11:00:27 -08:00
Translation updater bot
a0fbe90630
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia8216989b3586309364e98e06f51ec9121d0ed24
2015-01-15 22:50:54 +01:00
jenkins-bot
6d9b97fdf8
Merge "Trim aliases on save"
2015-01-15 01:47:55 +00:00
Moriel Schottlender
16cca5b1a2
Trim aliases on save
...
Make sure that aliases get trimmed and are not getting extra spaces
when saving a parameter.
NOTE: To prevent dirty diffs, only parameters that are 'touched'
(viewed or edited directly in the editor) will be trimmed. The editor
will keep all other "wrong" values that have trailing or preceding
whitespaces as-is.
Bug: T85330
Change-Id: I64ecb88a7d736fa36b5e6debf2e94b0d37152020
2015-01-12 15:29:38 -08:00
Translation updater bot
e779af4312
Localisation updates from https://translatewiki.net .
...
Change-Id: Ibc13f6f37ed021d4d8a8b63518ad69a85d0d10c1
2015-01-12 22:39:26 +01:00
Ori Livneh
74b46c14d8
MWException -> Exception
...
Change-Id: I9ed1d8c331787718ed85ef61fdda4714247fc72b
2015-01-09 19:05:53 -08:00
Translation updater bot
b86d1ff5fd
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifa8c23c1327c7936b7805ff793b7491f1b900adb
2015-01-09 22:11:17 +01:00
Translation updater bot
6093a4de5d
Localisation updates from https://translatewiki.net .
...
Change-Id: I7ece7e52c66180483d7d4c983cb1ff51074e461a
2015-01-08 22:47:07 +01:00