mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-24 07:53:37 +00:00
Add 'boolean' type support
Bug: 55331 Change-Id: I2508e3cc6e04f1eb382e6ec18c636bebdfccbf99
This commit is contained in:
parent
ee2674c147
commit
759f0eef20
|
@ -101,6 +101,7 @@ $wgResourceModules['ext.templateDataGenerator.core'] = array(
|
|||
'templatedata-modal-table-param-type',
|
||||
'templatedata-modal-table-param-type-file',
|
||||
'templatedata-modal-table-param-type-number',
|
||||
'templatedata-modal-table-param-type-boolean',
|
||||
'templatedata-modal-table-param-type-page',
|
||||
'templatedata-modal-table-param-type-string',
|
||||
'templatedata-modal-table-param-type-undefined',
|
||||
|
|
|
@ -97,6 +97,7 @@ class TemplateDataBlob {
|
|||
'content',
|
||||
'line',
|
||||
'number',
|
||||
'boolean',
|
||||
'string',
|
||||
'unbalanced-wikitext',
|
||||
'unknown',
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
"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-boolean": "Boolean",
|
||||
"templatedata-modal-table-param-type-page": "Page",
|
||||
"templatedata-modal-table-param-type-string": "String",
|
||||
"templatedata-modal-table-param-type-undefined": "Undefined",
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
"templatedata-modal-table-param-type": "Label for a table heading: Type of the parameter.\n{{Identical|Type}}",
|
||||
"templatedata-modal-table-param-type-file": "A possible parameter type: File\n{{Identical|File}}",
|
||||
"templatedata-modal-table-param-type-number": "A possible parameter type: Number",
|
||||
"templatedata-modal-table-param-type-boolean": "A possible parameter type: Boolean",
|
||||
"templatedata-modal-table-param-type-page": "A possible parameter type: Page",
|
||||
"templatedata-modal-table-param-type-string": "A possible parameter type: String",
|
||||
"templatedata-modal-table-param-type-undefined": "A possible parameter type: Undefined",
|
||||
|
|
|
@ -75,6 +75,8 @@
|
|||
Any textual value.
|
||||
- number
|
||||
Any numerical value (without decimal points or thousand separators).
|
||||
- boolean
|
||||
A boolean value ('1' for true, '0' for false, '' for unknown).
|
||||
- wiki-page-name
|
||||
A valid MediaWiki page name for the current wiki. Doesn't have to exist,
|
||||
but if not, should be a valid page name to create.
|
||||
|
|
Loading…
Reference in a new issue