mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-24 16:03:45 +00:00
b313bbe485
Refactor and rewrite the templatedata editor to make it more flexible and adaptable to new types. Separating the model from the gui, and adding new and improved unit tests. Also added features: * Map depracated param types into current types. * Retrieve template code from top template page if we are in a subpage. * Mark parameters that do not appear in the template code. * Add parameter types and a more flexible way to add and adjust the types. * Add a link to TemplateData documentation from the main edit page. * Add support for paramOrder; order the parameters according to the given array. * Make the template parameter table sortable so users can change the paraOrder. Bug: 59745 Bug: 65951 Bug: 66920 Bug: 67310 Bug: 67621 Change-Id: I65a76c2b772ef76c5dbbe71dd433c881c097b202
23 lines
296 B
Plaintext
23 lines
296 B
Plaintext
{
|
|
// Enforcing
|
|
"bitwise": true,
|
|
"eqeqeq": true,
|
|
"es3": true,
|
|
"freeze": true,
|
|
"latedef": true,
|
|
"noarg": true,
|
|
"nonew": true,
|
|
"undef": true,
|
|
"unused": true,
|
|
"strict": false,
|
|
|
|
// Environment
|
|
"browser": true,
|
|
|
|
"globals": {
|
|
"jQuery": false,
|
|
"QUnit": false,
|
|
"mediaWiki": false
|
|
}
|
|
}
|