diff --git a/Specification.md b/Specification.md index 1cc31b4d..a76108e4 100644 --- a/Specification.md +++ b/Specification.md @@ -235,6 +235,10 @@ One of the following: A valid MediaWiki file name for the current wiki. Doesn't have to exist, but if not, should be a valid file name to upload. Should not include any localised or standard namespace prefix ("Foo" not "File:Foo"). +- `wiki-template-name`
+ A valid MediaWiki template name for the current wiki. Doesn't have to exist, + but if not, should be a valid template name to create. Should not include any + localised or standard namespace prefix ("Foo" not "Template:Foo"). - `content`
Page content (such as text style, links and images etc.). - `unbalanced-wikitext`
diff --git a/TemplateDataBlob.php b/TemplateDataBlob.php index bd30a2b1..449754cb 100644 --- a/TemplateDataBlob.php +++ b/TemplateDataBlob.php @@ -111,6 +111,7 @@ class TemplateDataBlob { 'wiki-page-name', 'wiki-user-name', 'wiki-file-name', + 'wiki-template-name', ); static $typeCompatMap = array( diff --git a/extension.json b/extension.json index 0a96b6cd..b70fe668 100644 --- a/extension.json +++ b/extension.json @@ -141,6 +141,7 @@ "templatedata-modal-table-param-type-undefined", "templatedata-modal-table-param-type-wiki-file-name", "templatedata-modal-table-param-type-wiki-page-name", + "templatedata-modal-table-param-type-wiki-template-name", "templatedata-modal-table-param-type-wiki-user-name", "templatedata-modal-table-param-uneditablefield", "templatedata-modal-title", diff --git a/i18n/en.json b/i18n/en.json index 0bc182a3..0c82cfb3 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -88,6 +88,7 @@ "templatedata-modal-table-param-type-undefined": "Undefined", "templatedata-modal-table-param-type-wiki-file-name": "File", "templatedata-modal-table-param-type-wiki-page-name": "Page", + "templatedata-modal-table-param-type-wiki-template-name": "Template", "templatedata-modal-table-param-type-wiki-user-name": "User", "templatedata-modal-table-param-uneditablefield": "Uneditable", "templatedata-modal-title": "Template documentation editor", diff --git a/i18n/qqq.json b/i18n/qqq.json index b8b3cb24..34ff16d4 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -97,6 +97,7 @@ "templatedata-modal-table-param-type-undefined": "A possible parameter type: Undefined\n{{Related|Templatedata-modal-table-param-type}}\n{{Identical|Undefined}}", "templatedata-modal-table-param-type-wiki-file-name": "A possible parameter type: File\n{{Related|Templatedata-modal-table-param-type}}\n{{Identical|File}}", "templatedata-modal-table-param-type-wiki-page-name": "A possible parameter type: Page\n{{Related|Templatedata-modal-table-param-type}}\n{{Identical|Page}}", + "templatedata-modal-table-param-type-wiki-template-name": "A possible parameter type: Template\n{{Related|Templatedata-modal-table-param-type}}\n{{Identical|Template}}", "templatedata-modal-table-param-type-wiki-user-name": "A possible parameter type: User\n{{Related|Templatedata-modal-table-param-type}}\n{{Identical|User}}", "templatedata-modal-table-param-uneditablefield": "Placeholder text notifying the user the field is uneditable", "templatedata-modal-title": "Title of the edit dialog.", diff --git a/modules/ext.templateDataGenerator.data.js b/modules/ext.templateDataGenerator.data.js index 39dfbd83..dbb07704 100644 --- a/modules/ext.templateDataGenerator.data.js +++ b/modules/ext.templateDataGenerator.data.js @@ -142,6 +142,7 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) { 'date', 'wiki-page-name', 'string', + 'wiki-template-name', 'unbalanced-wikitext', 'undefined', 'wiki-user-name'