mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-28 01:30:00 +00:00
4f3e647758
Add an 'autovalue' parameter property to the TemplateData spec. And implement it in the validation for the API and in the editor. Also added tests to make sure all parameter attributes preserve their values before and after parsing, including the 'autovalue' parameter. Bug: 51428 Change-Id: Iffb376a804d39388d2b5b6ea3583ef2a292eea41
70 lines
4 KiB
JSON
70 lines
4 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Timo Tijhof",
|
|
"James D. Forrester"
|
|
]
|
|
},
|
|
"templatedata-desc": "Implement data storage for template parameters (using JSON)",
|
|
"templatedata-doc-desc-empty": "No description.",
|
|
"templatedata-doc-param-autovalue": "Auto value",
|
|
"templatedata-doc-param-autovalue-empty": "empty",
|
|
"templatedata-doc-param-default": "Default",
|
|
"templatedata-doc-param-default-empty": "empty",
|
|
"templatedata-doc-param-desc": "Description",
|
|
"templatedata-doc-param-desc-empty": "no description",
|
|
"templatedata-doc-param-name": "Parameter",
|
|
"templatedata-doc-param-status": "Status",
|
|
"templatedata-doc-param-status-deprecated": "deprecated",
|
|
"templatedata-doc-param-status-optional": "optional",
|
|
"templatedata-doc-param-status-required": "required",
|
|
"templatedata-doc-param-status-suggested": "suggested",
|
|
"templatedata-doc-param-type": "Type",
|
|
"templatedata-doc-params": "Template parameters",
|
|
"templatedata-editbutton": "Manage template documentation",
|
|
"templatedata-errormsg-jsonbadformat": "Bad JSON format. Either correct it, or delete the current <templatedata> tags and try again.",
|
|
"templatedata-helplink": "Information about TemplateData",
|
|
"templatedata-invalid-duplicate-value": "Property \"$1\" (\"$3\") is a duplicate of \"$2\".",
|
|
"templatedata-invalid-empty-array": "Property \"$1\" must have at least one value in its array.",
|
|
"templatedata-invalid-length": "Data too large to save ({{formatnum:$1}} {{PLURAL:$1|byte|bytes}}, {{PLURAL:$2|limit is}} {{formatnum:$2}})",
|
|
"templatedata-invalid-missing": "Required property \"$1\" not found.",
|
|
"templatedata-invalid-parse": "Syntax error in JSON.",
|
|
"templatedata-invalid-type": "Property \"$1\" is expected to be of type \"$2\".",
|
|
"templatedata-invalid-unknown": "Unexpected property \"$1\".",
|
|
"templatedata-invalid-value": "Invalid value for property \"$1\".",
|
|
"templatedata-modal-button-addparam": "Add parameter",
|
|
"templatedata-modal-button-apply": "Apply",
|
|
"templatedata-modal-button-cancel": "Cancel",
|
|
"templatedata-modal-button-delparam": "Remove",
|
|
"templatedata-modal-button-importParams": "Import parameters",
|
|
"templatedata-modal-errormsg": "Errors found. Please make sure there are no empty or duplicate parameter names, and that the parameter name does not include \"$1\", \"$2\" or \"$3\".",
|
|
"templatedata-modal-errormsg-import-noparams": "No new parameters found during import.",
|
|
"templatedata-modal-errormsg-import-paramsalreadyexist": "Some parameters were not imported, because they already exist in the editor: $1",
|
|
"templatedata-modal-notice-import-numparams": "$1 new {{PLURAL:$1|parameter was|parameters were}} imported.",
|
|
"templatedata-modal-table-param-actions": "Actions",
|
|
"templatedata-modal-table-param-aliases": "Aliases (comma separated)",
|
|
"templatedata-modal-table-param-autovalue": "Auto value",
|
|
"templatedata-modal-table-param-default": "Default",
|
|
"templatedata-modal-table-param-desc": "Description",
|
|
"templatedata-modal-table-param-label": "Label",
|
|
"templatedata-modal-table-param-name": "Name",
|
|
"templatedata-modal-table-param-required": "Required",
|
|
"templatedata-modal-table-param-suggested": "Suggested",
|
|
"templatedata-modal-table-param-type": "Type",
|
|
"templatedata-modal-table-param-type-boolean": "Boolean",
|
|
"templatedata-modal-table-param-type-content": "Content",
|
|
"templatedata-modal-table-param-type-date": "Date",
|
|
"templatedata-modal-table-param-type-line": "Line",
|
|
"templatedata-modal-table-param-type-number": "Number",
|
|
"templatedata-modal-table-param-type-string": "String",
|
|
"templatedata-modal-table-param-type-unbalanced-wikitext": "Unbalanced wikitext",
|
|
"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-user-name": "User",
|
|
"templatedata-modal-table-param-uneditablefield": "Uneditable",
|
|
"templatedata-modal-title": "Template documentation editor",
|
|
"templatedata-modal-title-templatedesc": "Template description",
|
|
"templatedata-modal-title-templateparams": "Template parameters"
|
|
}
|