| 1 | { |
| 2 | "name": "TemplateData", |
| 3 | "version": "0.1.2", |
| 4 | "author": [ |
| 5 | "Timo Tijhof", |
| 6 | "Moriel Schottlender", |
| 7 | "James D. Forrester", |
| 8 | "Trevor Parscal", |
| 9 | "Bartosz Dziewoński", |
| 10 | "Marielle Volz", |
| 11 | "..." |
| 12 | ], |
| 13 | "url": "https://www.mediawiki.org/wiki/Extension:TemplateData", |
| 14 | "descriptionmsg": "templatedata-desc", |
| 15 | "license-name": "GPL-2.0-or-later", |
| 16 | "type": "parserhook", |
| 17 | "requires": { |
| 18 | "MediaWiki": ">= 1.43" |
| 19 | }, |
| 20 | "APIModules": { |
| 21 | "templatedata": "MediaWiki\\Extension\\TemplateData\\Api\\ApiTemplateData" |
| 22 | }, |
| 23 | "AutoloadNamespaces": { |
| 24 | "MediaWiki\\Extension\\TemplateData\\": "includes/" |
| 25 | }, |
| 26 | "Hooks": { |
| 27 | "EditPage::showEditForm:fields": "main", |
| 28 | "ParserFirstCallInit": "main", |
| 29 | "MultiContentSave": "main", |
| 30 | "ResourceLoaderRegisterModules": "main", |
| 31 | "EditPage::showEditForm:initial": "main", |
| 32 | "ParserFetchTemplateData": "main", |
| 33 | "OutputPageBeforeHTML": "main" |
| 34 | }, |
| 35 | "HookHandlers": { |
| 36 | "main": { |
| 37 | "class": "MediaWiki\\Extension\\TemplateData\\Hooks", |
| 38 | "services": [ |
| 39 | "MainConfig" |
| 40 | ] |
| 41 | } |
| 42 | }, |
| 43 | "MessagesDirs": { |
| 44 | "TemplateData": [ |
| 45 | "i18n", |
| 46 | "i18n/api" |
| 47 | ] |
| 48 | }, |
| 49 | "ResourceModules": { |
| 50 | "ext.templateData": { |
| 51 | "localBasePath": "modules/ext.templateData", |
| 52 | "remoteExtPath": "TemplateData/modules/ext.templateData", |
| 53 | "styles": "templateData.less" |
| 54 | }, |
| 55 | "ext.templateDataGenerator.editPage": { |
| 56 | "localBasePath": "modules/ext.templateDataGenerator.editPage", |
| 57 | "remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.editPage", |
| 58 | "packageFiles": [ |
| 59 | "init.js" |
| 60 | ] |
| 61 | }, |
| 62 | "ext.templateDataGenerator.data": { |
| 63 | "localBasePath": "modules/ext.templateDataGenerator.data", |
| 64 | "remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.data", |
| 65 | "packageFiles": [ |
| 66 | "init.js", |
| 67 | "Model.js", |
| 68 | "SourceHandler.js" |
| 69 | ], |
| 70 | "dependencies": [ |
| 71 | "oojs" |
| 72 | ] |
| 73 | }, |
| 74 | "ext.templateDataGenerator.editTemplatePage.loading": { |
| 75 | "localBasePath": "modules/ext.templateDataGenerator.editTemplatePage", |
| 76 | "remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.editTemplatePage", |
| 77 | "styles": "templateDataGenerator.placeholder.less" |
| 78 | }, |
| 79 | "ext.templateDataGenerator.editTemplatePage": { |
| 80 | "localBasePath": "modules/ext.templateDataGenerator.editTemplatePage", |
| 81 | "remoteExtPath": "TemplateData/modules/ext.templateDataGenerator.editTemplatePage", |
| 82 | "styles": "templateDataGenerator.ui.less", |
| 83 | "packageFiles": [ |
| 84 | "init.js", |
| 85 | "widgets/ParamSelectWidget.js", |
| 86 | "widgets/ParamWidget.js", |
| 87 | "widgets/ParamImportWidget.js", |
| 88 | "widgets/LanguageResultWidget.js", |
| 89 | "widgets/LanguageSearchWidget.js", |
| 90 | "Dialog.js", |
| 91 | "Metrics.js", |
| 92 | "Target.js" |
| 93 | ], |
| 94 | "dependencies": [ |
| 95 | "mediawiki.api", |
| 96 | "mediawiki.language", |
| 97 | "mediawiki.user", |
| 98 | "oojs-ui-core", |
| 99 | "oojs-ui-widgets", |
| 100 | "oojs-ui-windows", |
| 101 | "oojs-ui.styles.icons-layout", |
| 102 | "oojs-ui.styles.icons-interactions", |
| 103 | "oojs-ui.styles.icons-moderation", |
| 104 | "ext.templateData", |
| 105 | "ext.templateData.images", |
| 106 | "ext.templateDataGenerator.data", |
| 107 | "jquery.uls.data", |
| 108 | "jquery.textSelection", |
| 109 | "web2017-polyfills" |
| 110 | ], |
| 111 | "messages": [ |
| 112 | "comma-separator", |
| 113 | "templatedata-doc-no-params-set", |
| 114 | "templatedata-doc-param-status-optional", |
| 115 | "templatedata-doc-param-status-deprecated", |
| 116 | "templatedata-doc-param-status-required", |
| 117 | "templatedata-doc-param-status-suggested", |
| 118 | "templatedata-doc-param-type-boolean", |
| 119 | "templatedata-doc-param-type-content", |
| 120 | "templatedata-doc-param-type-date", |
| 121 | "templatedata-doc-param-type-line", |
| 122 | "templatedata-doc-param-type-number", |
| 123 | "templatedata-doc-param-type-string", |
| 124 | "templatedata-doc-param-type-unbalanced-wikitext", |
| 125 | "templatedata-doc-param-type-unknown", |
| 126 | "templatedata-doc-param-type-url", |
| 127 | "templatedata-doc-param-type-wiki-file-name", |
| 128 | "templatedata-doc-param-type-wiki-page-name", |
| 129 | "templatedata-doc-param-type-wiki-template-name", |
| 130 | "templatedata-doc-param-type-wiki-user-name", |
| 131 | "templatedata-editbutton", |
| 132 | "templatedata-errormsg-jsonbadformat", |
| 133 | "templatedata-errormsg-insertblank", |
| 134 | "templatedata-exists-on-related-page", |
| 135 | "templatedata-modal-button-add-language", |
| 136 | "templatedata-modal-button-addparam", |
| 137 | "templatedata-modal-button-addmap", |
| 138 | "templatedata-modal-button-apply", |
| 139 | "templatedata-modal-button-back", |
| 140 | "templatedata-modal-button-cancel", |
| 141 | "templatedata-modal-button-changelang", |
| 142 | "templatedata-modal-button-delparam", |
| 143 | "templatedata-modal-button-done", |
| 144 | "templatedata-modal-button-importParams", |
| 145 | "templatedata-modal-button-map", |
| 146 | "templatedata-modal-button-removemap", |
| 147 | "templatedata-modal-button-saveparam", |
| 148 | "templatedata-modal-confirmcancel", |
| 149 | "templatedata-modal-current-language", |
| 150 | "templatedata-modal-errormsg", |
| 151 | "templatedata-modal-errormsg-duplicate-name", |
| 152 | "templatedata-modal-errormsg-import-noparams", |
| 153 | "templatedata-modal-format-block", |
| 154 | "templatedata-modal-format-custom", |
| 155 | "templatedata-modal-format-inline", |
| 156 | "templatedata-modal-format-null", |
| 157 | "templatedata-modal-format-placeholder", |
| 158 | "templatedata-modal-json-error-replace", |
| 159 | "templatedata-modal-notice-import-numparams", |
| 160 | "templatedata-modal-placeholder-add-new-map-input", |
| 161 | "templatedata-modal-placeholder-paramkey", |
| 162 | "templatedata-modal-search-input-placeholder", |
| 163 | "templatedata-modal-placeholder-mapinfo", |
| 164 | "templatedata-modal-placeholder-prompt-map-name", |
| 165 | "templatedata-modal-table-param-aliases", |
| 166 | "templatedata-modal-table-param-autovalue", |
| 167 | "templatedata-modal-table-param-suggestedvalues", |
| 168 | "templatedata-modal-placeholder-multiselect", |
| 169 | "templatedata-modal-table-param-default", |
| 170 | "templatedata-modal-table-param-status", |
| 171 | "templatedata-modal-table-param-deprecated", |
| 172 | "templatedata-modal-table-param-deprecatedValue", |
| 173 | "templatedata-modal-table-param-description", |
| 174 | "templatedata-modal-table-param-example", |
| 175 | "templatedata-modal-table-param-importoption", |
| 176 | "templatedata-modal-table-param-importoption-subtitle", |
| 177 | "templatedata-modal-table-param-label", |
| 178 | "templatedata-modal-table-param-name", |
| 179 | "templatedata-modal-table-param-required", |
| 180 | "templatedata-modal-table-param-suggested", |
| 181 | "templatedata-modal-table-param-type", |
| 182 | "templatedata-modal-title", |
| 183 | "templatedata-modal-title-addparam", |
| 184 | "templatedata-modal-title-choose-language", |
| 185 | "templatedata-modal-title-language", |
| 186 | "templatedata-modal-title-paramorder", |
| 187 | "templatedata-modal-title-templatedesc", |
| 188 | "templatedata-modal-title-templateformat", |
| 189 | "templatedata-modal-title-templateformatstring", |
| 190 | "templatedata-modal-title-templateparam-details", |
| 191 | "templatedata-modal-title-templateparams", |
| 192 | "templatedata-helplink", |
| 193 | "templatedata-helplink-target" |
| 194 | ] |
| 195 | }, |
| 196 | "ext.templateData.images": { |
| 197 | "localBasePath": "modules/ext.templateData.images", |
| 198 | "class": "MediaWiki\\ResourceLoader\\ImageModule", |
| 199 | "selectorWithVariant": ".oo-ui-icon-{name}.oo-ui-image-invert", |
| 200 | "selectorWithoutVariant": ".oo-ui-icon-{name}", |
| 201 | "variants": { |
| 202 | "invert": { |
| 203 | "color": "#FFFFFF", |
| 204 | "global": true |
| 205 | } |
| 206 | }, |
| 207 | "images": { |
| 208 | "template-format-block": { |
| 209 | "file": { |
| 210 | "ltr": "block-rtl.svg", |
| 211 | "rtl": "block-ltr.svg" |
| 212 | } |
| 213 | }, |
| 214 | "template-format-inline": { |
| 215 | "file": "inline.svg" |
| 216 | }, |
| 217 | "parameter-set": { |
| 218 | "file": { |
| 219 | "ltr": "parameter-set-ltr.svg", |
| 220 | "rtl": "parameter-set-rtl.svg" |
| 221 | } |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | }, |
| 226 | "QUnitTestModule": { |
| 227 | "localBasePath": "tests/qunit", |
| 228 | "remoteExtPath": "TemplateData/tests/qunit", |
| 229 | "scripts": [ |
| 230 | "ext.templateData.tests.js" |
| 231 | ], |
| 232 | "dependencies": [ |
| 233 | "ext.templateDataGenerator.data" |
| 234 | ] |
| 235 | }, |
| 236 | "attributes": { |
| 237 | "VisualEditor": { |
| 238 | "PluginModules": [ |
| 239 | "ext.templateDataGenerator.editPage" |
| 240 | ] |
| 241 | } |
| 242 | }, |
| 243 | "config": { |
| 244 | "TemplateDataUseGUI": { |
| 245 | "value": true |
| 246 | } |
| 247 | }, |
| 248 | "manifest_version": 2 |
| 249 | } |