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:
Thiemo Kreuz 2020-08-19 17:30:05 +02:00
parent 1c91be000e
commit a5fe1bfbb9

View file

@ -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'
],