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",
|
|
|
|
"ApiTemplateData": "includes/api/ApiTemplateData.php"
|
2015-05-29 19:35:35 +00:00
|
|
|
},
|
2015-02-20 23:43:08 +00:00
|
|
|
"Hooks": {
|
|
|
|
"ParserFirstCallInit": [
|
|
|
|
"TemplateDataHooks::onParserFirstCallInit"
|
|
|
|
],
|
|
|
|
"PageContentSave": [
|
|
|
|
"TemplateDataHooks::onPageContentSave"
|
|
|
|
],
|
|
|
|
"ResourceLoaderTestModules": [
|
|
|
|
"TemplateDataHooks::onResourceLoaderTestModules"
|
|
|
|
],
|
|
|
|
"ResourceLoaderRegisterModules": [
|
|
|
|
"TemplateDataHooks::onResourceLoaderRegisterModules"
|
|
|
|
],
|
|
|
|
"EditPage::showEditForm:initial": [
|
|
|
|
"TemplateDataHooks::onEditPage"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"MessagesDirs": {
|
|
|
|
"TemplateData": [
|
2018-12-03 20:21:13 +00:00
|
|
|
"i18n",
|
|
|
|
"i18n/api"
|
2015-02-20 23:43:08 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"ResourceModules": {
|
|
|
|
"ext.templateData": {
|
2018-02-03 15:30:02 +00:00
|
|
|
"styles": "resources/ext.templateData.css"
|
2015-02-20 23:43:08 +00:00
|
|
|
},
|
|
|
|
"ext.templateDataGenerator.editPage": {
|
|
|
|
"scripts": [
|
|
|
|
"modules/ext.templateDataGenerator.editPage.js"
|
2018-11-14 14:48:56 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.templateDataGenerator.editTemplatePage": {
|
|
|
|
"scripts": [
|
|
|
|
"modules/ext.templateDataGenerator.editTemplatePage.js"
|
2015-02-20 23:43:08 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
2018-02-16 12:59:29 +00:00
|
|
|
"ext.templateDataGenerator.ui",
|
2018-06-10 20:15:28 +00:00
|
|
|
"mediawiki.api"
|
2015-02-20 23:43:08 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.templateDataGenerator.data": {
|
|
|
|
"scripts": [
|
|
|
|
"modules/ext.templateDataGenerator.js",
|
2015-03-07 00:17:21 +00:00
|
|
|
"modules/ext.templateDataGenerator.data.js",
|
|
|
|
"modules/ext.templateDataGenerator.sourceHandler.js"
|
2015-02-20 23:43:08 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"oojs"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.templateDataGenerator.ui": {
|
|
|
|
"styles": "modules/ext.templateDataGenerator.ui.css",
|
|
|
|
"scripts": [
|
2016-12-03 16:18:51 +00:00
|
|
|
"modules/ext.templateDataGenerator.target.js",
|
2016-02-19 17:03:14 +00:00
|
|
|
"modules/widgets/ext.templateDataGenerator.paramSelectWidget.js",
|
|
|
|
"modules/widgets/ext.templateDataGenerator.paramWidget.js",
|
|
|
|
"modules/widgets/ext.templateDataGenerator.paramImportWidget.js",
|
2015-02-20 23:43:08 +00:00
|
|
|
"modules/widgets/ext.templateDataGenerator.languageResultWidget.js",
|
|
|
|
"modules/widgets/ext.templateDataGenerator.languageSearchWidget.js",
|
|
|
|
"modules/ext.templateDataGenerator.ui.tdDialog.js"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
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",
|
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",
|
2018-01-22 03:50:57 +00:00
|
|
|
"jquery.textSelection",
|
2016-12-06 11:53:13 +00:00
|
|
|
"ext.templateDataGenerator.ui.images"
|
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",
|
|
|
|
"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",
|
|
|
|
"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",
|
|
|
|
"templatedata-modal-placeholder-paramkey",
|
|
|
|
"templatedata-modal-search-input-placeholder",
|
|
|
|
"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": {
|
|
|
|
"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": {
|
|
|
|
"ltr": "modules/images/block-rtl.svg",
|
|
|
|
"rtl": "modules/images/block-ltr.svg"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"template-format-inline": {
|
|
|
|
"file": "modules/images/inline.svg"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"ext.templateDataGenerator.ui.images": {
|
|
|
|
"class": "ResourceLoaderImageModule",
|
|
|
|
"selectorWithVariant": ".oo-ui-icon-{name}.oo-ui-image-invert",
|
|
|
|
"selectorWithoutVariant": ".oo-ui-icon-{name}",
|
|
|
|
"variants": {
|
|
|
|
"invert": {
|
|
|
|
"color": "#FFFFFF",
|
|
|
|
"global": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"images": {
|
|
|
|
"parameter-set": {
|
|
|
|
"file": {
|
|
|
|
"ltr": "modules/images/parameter-set-ltr.svg",
|
|
|
|
"rtl": "modules/images/parameter-set-rtl.svg"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-02-20 23:43:08 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "",
|
|
|
|
"remoteExtPath": "TemplateData"
|
|
|
|
},
|
2016-12-03 16:18:51 +00:00
|
|
|
"VisualEditorPluginModules": [
|
|
|
|
"ext.templateDataGenerator.editPage"
|
|
|
|
],
|
2015-05-29 19:35:35 +00:00
|
|
|
"config": {
|
|
|
|
"TemplateDataUseGUI": true
|
|
|
|
},
|
|
|
|
"manifest_version": 1
|
2015-02-20 23:43:08 +00:00
|
|
|
}
|