2015-02-20 23:43:08 +00:00
|
|
|
{
|
|
|
|
"name": "TemplateData",
|
2017-12-18 20:57:57 +00:00
|
|
|
"version": "0.1.2",
|
2015-02-20 23:43:08 +00:00
|
|
|
"author": [
|
|
|
|
"Timo Tijhof",
|
|
|
|
"Moriel Schottlender",
|
|
|
|
"James D. Forrester",
|
|
|
|
"Trevor Parscal",
|
|
|
|
"Bartosz Dziewoński",
|
|
|
|
"Marielle Volz",
|
|
|
|
"..."
|
|
|
|
],
|
|
|
|
"url": "https://www.mediawiki.org/wiki/Extension:TemplateData",
|
|
|
|
"descriptionmsg": "templatedata-desc",
|
2018-03-02 23:40:38 +00:00
|
|
|
"license-name": "GPL-2.0-or-later",
|
2015-02-20 23:43:08 +00:00
|
|
|
"type": "parserhook",
|
2015-10-30 00:02:04 +00:00
|
|
|
"requires": {
|
2019-01-20 20:27:17 +00:00
|
|
|
"MediaWiki": ">= 1.33.0"
|
2015-10-30 00:02:04 +00:00
|
|
|
},
|
2015-02-20 23:43:08 +00:00
|
|
|
"APIModules": {
|
|
|
|
"templatedata": "ApiTemplateData"
|
|
|
|
},
|
2015-05-29 19:35:35 +00:00
|
|
|
"AutoloadClasses": {
|
2018-04-24 23:50:31 +00:00
|
|
|
"TemplateDataHooks": "includes/TemplateDataHooks.php",
|
|
|
|
"TemplateDataBlob": "includes/TemplateDataBlob.php",
|
2019-07-08 01:46:33 +00:00
|
|
|
"TemplateDataCompressedBlob": "includes/TemplateDataCompressedBlob.php",
|
2018-04-24 23:50:31 +00:00
|
|
|
"ApiTemplateData": "includes/api/ApiTemplateData.php"
|
2015-05-29 19:35:35 +00:00
|
|
|
},
|
2015-02-20 23:43:08 +00:00
|
|
|
"Hooks": {
|
2020-03-12 18:04:02 +00:00
|
|
|
"ParserFirstCallInit": "TemplateDataHooks::onParserFirstCallInit",
|
|
|
|
"PageContentSave": "TemplateDataHooks::onPageContentSave",
|
|
|
|
"ResourceLoaderRegisterModules": "TemplateDataHooks::onResourceLoaderRegisterModules",
|
|
|
|
"EditPage::showEditForm:initial": "TemplateDataHooks::onEditPage",
|
|
|
|
"ParserFetchTemplateData": "TemplateDataHooks::onParserFetchTemplateData"
|
2015-02-20 23:43:08 +00:00
|
|
|
},
|
|
|
|
"MessagesDirs": {
|
|
|
|
"TemplateData": [
|
2018-12-03 20:21:13 +00:00
|
|
|
"i18n",
|
|
|
|
"i18n/api"
|
2015-02-20 23:43:08 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"ResourceModules": {
|
|
|
|
"ext.templateData": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"localBasePath": "modules/ext.templateData",
|
|
|
|
"remoteExtPath": "TemplateData/modules/ext.templateData",
|
|
|
|
"styles": "templateData.css"
|
2015-02-20 23:43:08 +00:00
|
|
|
},
|
|
|
|
"ext.templateDataGenerator.editPage": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"localBasePath": "modules/ext.templateDataGenerator.editPage",
|
|
|
|
"remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.editPage",
|
2015-02-20 23:43:08 +00:00
|
|
|
"scripts": [
|
2020-03-12 18:18:02 +00:00
|
|
|
"init.js"
|
2018-11-14 14:48:56 +00:00
|
|
|
]
|
|
|
|
},
|
2015-02-20 23:43:08 +00:00
|
|
|
"ext.templateDataGenerator.data": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"localBasePath": "modules/ext.templateDataGenerator.data",
|
|
|
|
"remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.data",
|
2015-02-20 23:43:08 +00:00
|
|
|
"scripts": [
|
2020-03-12 18:18:02 +00:00
|
|
|
"index.js",
|
|
|
|
"Model.js",
|
|
|
|
"SourceHandler.js"
|
2015-02-20 23:43:08 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"oojs"
|
|
|
|
]
|
|
|
|
},
|
2019-09-12 22:19:49 +00:00
|
|
|
"ext.templateDataGenerator.editTemplatePage": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"localBasePath": "modules/ext.templateDataGenerator.editTemplatePage",
|
|
|
|
"remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.editTemplatePage",
|
|
|
|
"styles": "templateDataGenerator.ui.css",
|
2015-02-20 23:43:08 +00:00
|
|
|
"scripts": [
|
2020-03-12 18:18:02 +00:00
|
|
|
"Target.js",
|
|
|
|
"widgets/ParamSelectWidget.js",
|
|
|
|
"widgets/ParamWidget.js",
|
|
|
|
"widgets/ParamImportWidget.js",
|
|
|
|
"widgets/LanguageResultWidget.js",
|
|
|
|
"widgets/LanguageSearchWidget.js",
|
2020-08-07 18:27:18 +00:00
|
|
|
"widgets/GroupWidget.js",
|
|
|
|
"widgets/ItemWidget.js",
|
2020-03-12 18:18:02 +00:00
|
|
|
"Dialog.js",
|
|
|
|
"init.js"
|
2015-02-20 23:43:08 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
2019-09-12 22:19:49 +00:00
|
|
|
"mediawiki.api",
|
2016-09-01 21:14:36 +00:00
|
|
|
"oojs-ui-core",
|
|
|
|
"oojs-ui-widgets",
|
|
|
|
"oojs-ui-windows",
|
2017-06-03 10:49:41 +00:00
|
|
|
"oojs-ui.styles.icons-layout",
|
|
|
|
"oojs-ui.styles.icons-interactions",
|
2020-09-18 13:53:40 +00:00
|
|
|
"oojs-ui.styles.icons-moderation",
|
2016-01-13 05:04:02 +00:00
|
|
|
"ext.templateData",
|
2017-05-10 01:45:33 +00:00
|
|
|
"ext.templateData.images",
|
2015-02-20 23:43:08 +00:00
|
|
|
"ext.templateDataGenerator.data",
|
2016-12-06 11:53:13 +00:00
|
|
|
"jquery.uls.data",
|
2019-09-13 02:10:38 +00:00
|
|
|
"jquery.textSelection"
|
2015-02-20 23:43:08 +00:00
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"comma-separator",
|
|
|
|
"templatedata-doc-no-params-set",
|
2016-01-13 19:29:05 +00:00
|
|
|
"templatedata-doc-param-type-boolean",
|
|
|
|
"templatedata-doc-param-type-content",
|
|
|
|
"templatedata-doc-param-type-date",
|
|
|
|
"templatedata-doc-param-type-line",
|
|
|
|
"templatedata-doc-param-type-number",
|
|
|
|
"templatedata-doc-param-type-string",
|
|
|
|
"templatedata-doc-param-type-unbalanced-wikitext",
|
|
|
|
"templatedata-doc-param-type-unknown",
|
|
|
|
"templatedata-doc-param-type-url",
|
|
|
|
"templatedata-doc-param-type-wiki-file-name",
|
|
|
|
"templatedata-doc-param-type-wiki-page-name",
|
|
|
|
"templatedata-doc-param-type-wiki-template-name",
|
|
|
|
"templatedata-doc-param-type-wiki-user-name",
|
2015-09-10 21:40:22 +00:00
|
|
|
"templatedata-editbutton",
|
|
|
|
"templatedata-errormsg-jsonbadformat",
|
2016-07-12 22:40:46 +00:00
|
|
|
"templatedata-errormsg-insertblank",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-exists-on-related-page",
|
|
|
|
"templatedata-modal-button-add-language",
|
|
|
|
"templatedata-modal-button-addparam",
|
2020-08-07 18:27:18 +00:00
|
|
|
"templatedata-modal-button-addmap",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-button-apply",
|
|
|
|
"templatedata-modal-button-back",
|
|
|
|
"templatedata-modal-button-cancel",
|
|
|
|
"templatedata-modal-button-changelang",
|
|
|
|
"templatedata-modal-button-delparam",
|
2015-09-14 11:25:22 +00:00
|
|
|
"templatedata-modal-button-done",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-button-importParams",
|
2020-06-11 15:33:52 +00:00
|
|
|
"templatedata-modal-button-map",
|
2020-08-07 18:27:18 +00:00
|
|
|
"templatedata-modal-button-removemap",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-button-restoreparam",
|
|
|
|
"templatedata-modal-button-saveparam",
|
2016-01-11 23:26:54 +00:00
|
|
|
"templatedata-modal-confirmcancel",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-current-language",
|
|
|
|
"templatedata-modal-errormsg",
|
2018-02-01 18:22:41 +00:00
|
|
|
"templatedata-modal-errormsg-duplicate-name",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-errormsg-import-noparams",
|
2015-10-02 10:34:57 +00:00
|
|
|
"templatedata-modal-format-block",
|
2016-08-07 01:03:53 +00:00
|
|
|
"templatedata-modal-format-custom",
|
|
|
|
"templatedata-modal-format-inline",
|
2016-03-01 17:10:23 +00:00
|
|
|
"templatedata-modal-format-null",
|
2016-08-07 01:03:53 +00:00
|
|
|
"templatedata-modal-format-placeholder",
|
2015-05-29 19:35:35 +00:00
|
|
|
"templatedata-modal-json-error-replace",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-notice-import-numparams",
|
2020-08-07 18:27:18 +00:00
|
|
|
"templatedata-modal-placeholder-add-new-map-input",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-placeholder-paramkey",
|
|
|
|
"templatedata-modal-search-input-placeholder",
|
2020-06-11 15:33:52 +00:00
|
|
|
"templatedata-modal-placeholder-mapinfo",
|
2020-08-07 18:27:18 +00:00
|
|
|
"templatedata-modal-placeholder-prompt-map-name",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-table-param-actions",
|
|
|
|
"templatedata-modal-table-param-aliases",
|
|
|
|
"templatedata-modal-table-param-autovalue",
|
|
|
|
"templatedata-modal-table-param-default",
|
|
|
|
"templatedata-modal-table-param-deprecated",
|
2015-05-29 19:35:35 +00:00
|
|
|
"templatedata-modal-table-param-deprecatedValue",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-table-param-description",
|
2015-05-29 19:35:35 +00:00
|
|
|
"templatedata-modal-table-param-example",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-table-param-importoption",
|
|
|
|
"templatedata-modal-table-param-importoption-subtitle",
|
|
|
|
"templatedata-modal-table-param-label",
|
|
|
|
"templatedata-modal-table-param-name",
|
|
|
|
"templatedata-modal-table-param-required",
|
|
|
|
"templatedata-modal-table-param-suggested",
|
|
|
|
"templatedata-modal-table-param-type",
|
|
|
|
"templatedata-modal-table-param-uneditablefield",
|
|
|
|
"templatedata-modal-title",
|
|
|
|
"templatedata-modal-title-addparam",
|
|
|
|
"templatedata-modal-title-choose-language",
|
|
|
|
"templatedata-modal-title-language",
|
|
|
|
"templatedata-modal-title-paramorder",
|
|
|
|
"templatedata-modal-title-templatedesc",
|
2015-10-02 10:34:57 +00:00
|
|
|
"templatedata-modal-title-templateformat",
|
2016-08-07 01:03:53 +00:00
|
|
|
"templatedata-modal-title-templateformatstring",
|
2015-02-20 23:43:08 +00:00
|
|
|
"templatedata-modal-title-templateparam-details",
|
2015-09-10 21:40:22 +00:00
|
|
|
"templatedata-modal-title-templateparams",
|
|
|
|
"templatedata-helplink",
|
|
|
|
"templatedata-helplink-target"
|
2015-02-20 23:43:08 +00:00
|
|
|
]
|
2016-12-06 11:53:13 +00:00
|
|
|
},
|
|
|
|
"ext.templateData.images": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"localBasePath": "modules/ext.templateData.images",
|
2016-12-06 11:53:13 +00:00
|
|
|
"class": "ResourceLoaderImageModule",
|
|
|
|
"selectorWithVariant": ".oo-ui-icon-{name}.oo-ui-image-invert",
|
|
|
|
"selectorWithoutVariant": ".oo-ui-icon-{name}",
|
|
|
|
"variants": {
|
|
|
|
"invert": {
|
|
|
|
"color": "#FFFFFF",
|
|
|
|
"global": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"images": {
|
|
|
|
"template-format-block": {
|
|
|
|
"file": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"ltr": "block-rtl.svg",
|
|
|
|
"rtl": "block-ltr.svg"
|
2016-12-06 11:53:13 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"template-format-inline": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"file": "inline.svg"
|
2019-09-13 02:10:38 +00:00
|
|
|
},
|
2016-12-06 11:53:13 +00:00
|
|
|
"parameter-set": {
|
|
|
|
"file": {
|
2020-03-12 18:18:02 +00:00
|
|
|
"ltr": "parameter-set-ltr.svg",
|
|
|
|
"rtl": "parameter-set-rtl.svg"
|
2016-12-06 11:53:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-02-20 23:43:08 +00:00
|
|
|
}
|
|
|
|
},
|
2020-05-11 21:25:42 +00:00
|
|
|
"QUnitTestModule": {
|
2020-05-11 19:42:55 +00:00
|
|
|
"localBasePath": "tests/qunit",
|
|
|
|
"remoteExtPath": "TemplateData/tests/qunit",
|
|
|
|
"scripts": [
|
|
|
|
"ext.templateData.tests.js"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"ext.templateDataGenerator.data"
|
|
|
|
]
|
|
|
|
},
|
2020-05-12 01:05:21 +00:00
|
|
|
"attributes": {
|
|
|
|
"VisualEditor": {
|
|
|
|
"PluginModules": [
|
|
|
|
"ext.templateDataGenerator.editPage"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2015-05-29 19:35:35 +00:00
|
|
|
"config": {
|
2020-05-12 01:05:21 +00:00
|
|
|
"TemplateDataUseGUI": {
|
|
|
|
"value": true
|
|
|
|
}
|
2015-05-29 19:35:35 +00:00
|
|
|
},
|
2020-05-12 01:05:21 +00:00
|
|
|
"manifest_version": 2
|
2015-02-20 23:43:08 +00:00
|
|
|
}
|