Add 'boolean' type support

Bug: 55331
Change-Id: I2508e3cc6e04f1eb382e6ec18c636bebdfccbf99
This commit is contained in:
James D. Forrester 2014-05-09 19:44:25 +02:00 committed by Timo Tijhof
parent ee2674c147
commit 759f0eef20
5 changed files with 6 additions and 0 deletions

View file

@ -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',

View file

@ -97,6 +97,7 @@ class TemplateDataBlob {
'content',
'line',
'number',
'boolean',
'string',
'unbalanced-wikitext',
'unknown',

View file

@ -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",

View file

@ -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",

View file

@ -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.