mediawiki-extensions-Visual.../modules/ve-mw/ui
Thiemo Kreuz 97486b2b3d Rename and document definition of "empty" in ve.ui.MWParameterPage
I found this while working on T274551, which is all about the
definition of "empty".

In the old sidebar a parameter's name is dimmed (gray) as long as
the parameter's value is empty. This stops working entirely when
there is a default value.

My first impulse was "this is a bug". When there is a default
value, both the empty string and the default value (when the user
enters it exactly) typically trigger the same behavior: The
template uses the default value, just as if the user entered it.

But this code is correct because of the way it is used. Only
parameters that are "truly" empty should be visually marked as
such. The moment there is a default value it is either impossible
to change this back to an empty string – meaning the parameter
can never be truly empty – or the empty string is meaningful user
input.

Bug: T274551
Change-Id: I90657bfe83e56afd3942428c0dd8a47b444e39c9
2021-08-11 07:24:41 +00:00
..
actions
commands
contextitems Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
datatransferhandlers MWWikitextStringTransferHandler: Factor out Parsoid->DOM conversion 2021-01-20 19:49:27 +00:00
dialogs Merge "Minor JSDoc documentation fixes in template dialog code" 2021-07-29 12:13:17 +00:00
elements Add icons to the show/hide button in the ExpandableContentElement 2021-06-29 08:33:22 +00:00
inspectors Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
pages Rename and document definition of "empty" in ve.ui.MWParameterPage 2021-08-11 07:24:41 +00:00
styles Adjust the styling for the template parameter search 2021-07-16 18:03:48 +02:00
tools Document and use mw.Api parameter defaults 2021-07-12 09:13:59 +02:00
widgets Merge "MWInternalLinkAnnotationWidget: show disambiguation pages last" 2021-07-28 03:00:52 +00:00
ve.ui.MWCommandRegistry.js Add command to insert non-breaking space 2021-04-08 00:09:35 +02:00
ve.ui.MWExtensionWindow.js
ve.ui.MWSequenceRegistry.js
ve.ui.MWSurface.js
ve.ui.MWTransclusionsBooklet.js Method for getting the currently selected element 2021-06-10 15:32:07 +02:00
ve.ui.MWWikitextCommandRegistry.js Add command to insert non-breaking space 2021-04-08 00:09:35 +02:00
ve.ui.MWWikitextDataTransferHandlerFactory.js
ve.ui.MWWikitextSequenceRegistry.js
ve.ui.MWWikitextSurface.js
ve.ui.MWWikitextTransferRegistry.js