mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Move "Unknown" type to the top of the dropdown
"Unknown" is the special, default value when nothing else is specified. It feels wrong to find this in alphabetical order between all the other values, as if "Unknown" is something I'm expected to pick. While this is possible, it's almost never necessary. "Unknown" is the default anyway. If I'm fine with that, I never change it. But if I want to pick something else, I typically expect the list to show the "nothing selected yet" default first so I can easily avoid it. Change-Id: I283a1b0545efba208af777a0b2056740263dfc32
This commit is contained in:
parent
1c91be000e
commit
a5fe1bfbb9
|
@ -142,6 +142,7 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) {
|
|||
type: {
|
||||
type: 'select',
|
||||
children: [
|
||||
'unknown',
|
||||
'boolean',
|
||||
'content',
|
||||
'wiki-file-name',
|
||||
|
@ -152,7 +153,6 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) {
|
|||
'string',
|
||||
'wiki-template-name',
|
||||
'unbalanced-wikitext',
|
||||
'unknown',
|
||||
'url',
|
||||
'wiki-user-name'
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue