en:w:User:BrandonXLF/HotDefaultSort

{{User:BrandonXLF/scripts/doc

|name=Hot Default Sort

|desc=Modify the default sort key

|released=November 11, 2019

|description=adds buttons beside the default sort key to add a default sort, modify the current default sort, and to remove the current default sort. UI is similar to Wikipedia:HotCat, but for default sort key rather than categories.

|skins=All

|v1 = hotDefaultSortInitKey

|e1 = function (key, unset) { key += ' foo'; return key; }

|d1 = Set to a function to run the DEFAULTSORT key through before it is added to the editing input. The function is called with two parameters, key - the DEFAULTSORT key, and unset - a boolean that is set to true when the DEFAULTSORY key is not defined on the page (in this case, the DEFAULTSORT keyt defaults to the page title).

}}