mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-24 07:53:37 +00:00
Add a wiki-template-name type for template names
Bug: T88900 Change-Id: Ia1c87072f453df4b756de6725c4b3ab1dda84497
This commit is contained in:
parent
7da1de4d5d
commit
62d3138216
|
@ -235,6 +235,10 @@ One of the following:
|
||||||
A valid MediaWiki file name for the current wiki. Doesn't have to exist,
|
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
|
but if not, should be a valid file name to upload. Should not include any
|
||||||
localised or standard namespace prefix ("Foo" not "File:Foo").
|
localised or standard namespace prefix ("Foo" not "File:Foo").
|
||||||
|
- `wiki-template-name`<br/>
|
||||||
|
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`<br/>
|
- `content`<br/>
|
||||||
Page content (such as text style, links and images etc.).
|
Page content (such as text style, links and images etc.).
|
||||||
- `unbalanced-wikitext`<br/>
|
- `unbalanced-wikitext`<br/>
|
||||||
|
|
|
@ -111,6 +111,7 @@ class TemplateDataBlob {
|
||||||
'wiki-page-name',
|
'wiki-page-name',
|
||||||
'wiki-user-name',
|
'wiki-user-name',
|
||||||
'wiki-file-name',
|
'wiki-file-name',
|
||||||
|
'wiki-template-name',
|
||||||
);
|
);
|
||||||
|
|
||||||
static $typeCompatMap = array(
|
static $typeCompatMap = array(
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
"templatedata-modal-table-param-type-undefined",
|
"templatedata-modal-table-param-type-undefined",
|
||||||
"templatedata-modal-table-param-type-wiki-file-name",
|
"templatedata-modal-table-param-type-wiki-file-name",
|
||||||
"templatedata-modal-table-param-type-wiki-page-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-type-wiki-user-name",
|
||||||
"templatedata-modal-table-param-uneditablefield",
|
"templatedata-modal-table-param-uneditablefield",
|
||||||
"templatedata-modal-title",
|
"templatedata-modal-title",
|
||||||
|
|
|
@ -88,6 +88,7 @@
|
||||||
"templatedata-modal-table-param-type-undefined": "Undefined",
|
"templatedata-modal-table-param-type-undefined": "Undefined",
|
||||||
"templatedata-modal-table-param-type-wiki-file-name": "File",
|
"templatedata-modal-table-param-type-wiki-file-name": "File",
|
||||||
"templatedata-modal-table-param-type-wiki-page-name": "Page",
|
"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-type-wiki-user-name": "User",
|
||||||
"templatedata-modal-table-param-uneditablefield": "Uneditable",
|
"templatedata-modal-table-param-uneditablefield": "Uneditable",
|
||||||
"templatedata-modal-title": "Template documentation editor",
|
"templatedata-modal-title": "Template documentation editor",
|
||||||
|
|
|
@ -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-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-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-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-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-table-param-uneditablefield": "Placeholder text notifying the user the field is uneditable",
|
||||||
"templatedata-modal-title": "Title of the edit dialog.",
|
"templatedata-modal-title": "Title of the edit dialog.",
|
||||||
|
|
|
@ -142,6 +142,7 @@ mw.TemplateData.Model.static.getAllProperties = function ( getFullData ) {
|
||||||
'date',
|
'date',
|
||||||
'wiki-page-name',
|
'wiki-page-name',
|
||||||
'string',
|
'string',
|
||||||
|
'wiki-template-name',
|
||||||
'unbalanced-wikitext',
|
'unbalanced-wikitext',
|
||||||
'undefined',
|
'undefined',
|
||||||
'wiki-user-name'
|
'wiki-user-name'
|
||||||
|
|
Loading…
Reference in a new issue