mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "Let help link target be locally over-ridden; default to the MW help page"
This commit is contained in:
commit
8210018147
|
@ -67,6 +67,7 @@ $wgResourceModules['ext.templateDataGenerator.editPage'] = array(
|
|||
'messages' => array(
|
||||
'templatedata-editbutton',
|
||||
'templatedata-helplink',
|
||||
'templatedata-helplink-target',
|
||||
'templatedata-errormsg-jsonbadformat',
|
||||
)
|
||||
);
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
"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}})",
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
"templatedata-editbutton": "The label of the button to manage templatedata, appearing above the editor field.",
|
||||
"templatedata-errormsg-jsonbadformat": "Error message that appears in case the JSON string is not possible to parse. The user is asked to either correct the json syntax or delete the values between the <templatedata> tags and try again.",
|
||||
"templatedata-helplink": "The label of the link to the TemplateData documentation, appearing above the editor field.",
|
||||
"templatedata-helplink-target": "{{Optional}} The target of the link to the TemplateData documentation",
|
||||
"templatedata-invalid-duplicate-value": "Displayed when an array that must only contain unique values contains a duplicate.\n* $1 - name of property containing the duplicate\n* $2 - name of property with first occurrence of value\n* $3 - the value being duplicated",
|
||||
"templatedata-invalid-empty-array": "Error message when a property that must be non-empty is empty. Parameters:\n* $1 - property name (\"paramOrder\" or \"sets.{$setNr}.params\")",
|
||||
"templatedata-invalid-length": "Error message when generated JSON's length exceed database limits.\n* $1 - length of generated JSON\n* $2 - maximal allowed length",
|
||||
|
|
|
@ -1395,7 +1395,7 @@
|
|||
$helpLink: $( '<a>' )
|
||||
.addClass( 'tdg-editscreen-main-helplink' )
|
||||
.text( mw.msg( 'templatedata-helplink' ) )
|
||||
.attr( 'href', 'https://www.mediawiki.org/wiki/Extension:TemplateData' )
|
||||
.attr( 'href', mw.msg( 'templatedata-helplink-target' ) )
|
||||
.attr( 'target', '_blank' ),
|
||||
/**
|
||||
* Define the error box for the main template edit
|
||||
|
|
Loading…
Reference in a new issue