mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-23 18:29:55 +00:00
Add a wiki-file-name type for file names
Bug: 52652 Change-Id: Ibe8d143abbb607eb71549536aaac6555528813cc
This commit is contained in:
parent
4f7fa2f424
commit
fb34a07c02
|
@ -99,6 +99,7 @@ $wgResourceModules['ext.templateDataGenerator.core'] = array(
|
|||
'templatedata-modal-table-param-required',
|
||||
'templatedata-modal-table-param-suggested',
|
||||
'templatedata-modal-table-param-type',
|
||||
'templatedata-modal-table-param-type-file',
|
||||
'templatedata-modal-table-param-type-number',
|
||||
'templatedata-modal-table-param-type-page',
|
||||
'templatedata-modal-table-param-type-string',
|
||||
|
|
|
@ -102,12 +102,14 @@ class TemplateDataBlob {
|
|||
'unknown',
|
||||
'wiki-page-name',
|
||||
'wiki-user-name',
|
||||
'wiki-file-name',
|
||||
);
|
||||
|
||||
static $typeCompatMap = array(
|
||||
'string/line' => 'line',
|
||||
'string/wiki-page-name' => 'wiki-page-name',
|
||||
'string/wiki-user-name' => 'wiki-user-name',
|
||||
'string/wiki-file-name' => 'wiki-file-name',
|
||||
);
|
||||
|
||||
if ( $data === null ) {
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
"templatedata-modal-table-param-required": "Required",
|
||||
"templatedata-modal-table-param-suggested": "Suggested",
|
||||
"templatedata-modal-table-param-type": "Type",
|
||||
"templatedata-modal-table-param-type-file": "File",
|
||||
"templatedata-modal-table-param-type-number": "Number",
|
||||
"templatedata-modal-table-param-type-page": "Page",
|
||||
"templatedata-modal-table-param-type-string": "String",
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
"templatedata-modal-table-param-required": "Label for a table heading: Required status of the parameter",
|
||||
"templatedata-modal-table-param-suggested": "Label for a table heading: Suggested status of the parameter",
|
||||
"templatedata-modal-table-param-type": "Label for a table heading: Type of the parameter",
|
||||
"templatedata-modal-table-param-type-file": "A possible parameter type: File",
|
||||
"templatedata-modal-table-param-type-number": "A possible parameter type: Number",
|
||||
"templatedata-modal-table-param-type-page": "A possible parameter type: Page",
|
||||
"templatedata-modal-table-param-type-string": "A possible parameter type: String",
|
||||
|
|
|
@ -688,6 +688,7 @@
|
|||
'number': mw.msg( 'templatedata-modal-table-param-type-number' ),
|
||||
'string': mw.msg( 'templatedata-modal-table-param-type-string' ),
|
||||
'string/wiki-user-name': mw.msg( 'templatedata-modal-table-param-type-user' ),
|
||||
'string/wiki-file-name': mw.msg( 'templatedata-model-table-param-type-file' ),
|
||||
'string/wiki-page-name': mw.msg( 'templatedata-modal-table-param-type-page' )
|
||||
};
|
||||
domObjects = {
|
||||
|
|
|
@ -82,6 +82,10 @@
|
|||
A valid MediaWiki user name for the current wiki. Doesn't have to exist,
|
||||
but if not, should be a valid user name to create. Should not include any
|
||||
localised or standard namespace prefix ("Foo" not "User:Foo").
|
||||
- wiki-file-name
|
||||
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").
|
||||
- content
|
||||
Page content (such as text style, links and images etc.).
|
||||
- unbalanced-wikitext
|
||||
|
|
Loading…
Reference in a new issue