mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
8c27921232
This adds a TemplateData manager to the edit page in the Template namespace. If a <templatedata> tag already exists, the tool will parse it and display it in a visual interface that the user can then manipulate in their own language. If there is no <templatedata> tag, the dialog will appear empty and allow users to add and tweak their desired template parameter data. The tool also allows rudimentary parameter import, which picks up the parameters from a current template into the GUI to make the user's life easier when producing TemplateData. The template documentation editor feature is off by default. To enable it use $wgTemplateDataUseGUI = true in LocalSettings. Bug: 50436 Change-Id: I863a8199c0b08cc52b320ed00dcba912dd2aeefc
34 lines
420 B
Plaintext
34 lines
420 B
Plaintext
{
|
|
/* Common */
|
|
|
|
// Enforcing
|
|
"camelcase": true,
|
|
"curly": true,
|
|
"eqeqeq": true,
|
|
"immed": true,
|
|
"latedef": true,
|
|
"newcap": true,
|
|
"noarg": true,
|
|
"noempty": true,
|
|
"nonew": true,
|
|
"quotmark": "single",
|
|
"trailing": true,
|
|
"undef": true,
|
|
"unused": true,
|
|
// Legacy
|
|
"onevar": true,
|
|
|
|
/* Local */
|
|
|
|
// Environment
|
|
"browser": true,
|
|
// Legacy
|
|
"nomen": true,
|
|
|
|
"predef": [
|
|
"mediaWiki",
|
|
"jQuery",
|
|
"QUnit"
|
|
]
|
|
}
|