mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-29 01:54:15 +00:00
d6cac31082
Add "maps" as an allowed root value to template data JSON. Maps allow applications to map equivalencies between their application-specific parameters and valid template parameters. Each Map has arbitrary keys (from the consuming application) that are mapped to one or more template parameters. * Added root.maps to TemplateDataBlob * Validates that values are strings or arrays * Validates that values are valid params * Added templatedata-invalid-param to i18n/en.json * Richer error message for when invalid value is a param * Fixed existing tests to work with new "maps" property * Added two new tests for maps * Test for invalid value (!string or !array) * Test for invalid parameter * Added specification for root.maps property and Map object Change-Id: I3bf5e002ad6c1632e02c4c2e393b244c51f77177
76 lines
4.6 KiB
JSON
76 lines
4.6 KiB
JSON
{
|
|
"@metadata": {
|
|
"authors": [
|
|
"Timo Tijhof",
|
|
"James D. Forrester"
|
|
]
|
|
},
|
|
"apihelp-templatedata-description": "Fetch data stored by the TemplateData extension.",
|
|
"apihelp-templatedata-example-1": "Return data for [[Template:Stub]] and [[Template:Example]]",
|
|
"apihelp-templatedata-param-format": "The format of the output.",
|
|
"apihelp-templatedata-param-lang": "Return localized values in this language. By default all available translations are returned.",
|
|
"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 TemplateData",
|
|
"templatedata-errormsg-jsonbadformat": "Bad JSON format. Either correct it, or delete the current <templatedata> tags and try again.",
|
|
"templatedata-helplink": "Information about TemplateData",
|
|
"templatedata-helplink-target": "//www.mediawiki.org/wiki/Special:MyLanguage/Help: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-param": "Invalid parameter \"$1\" for property \"$2\".",
|
|
"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"
|
|
}
|