mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Go back to using a configurable link for documentation
The message allows per-wiki configuration. The default target is better for normal users of TemplateData than the previous hard-coded one and has already been translated in some languages from when it was used previously. This also moves the messages dependencies from `ext.templateData` to `ext.templateDataGenerator.ui`, which is the only module that uses them: the correct strings were displayed only by inheritance. Bug: T112011 Change-Id: I81ab684bb0ed9b0767df75635284c51129ac7000
This commit is contained in:
parent
446d759a7f
commit
fdd0514024
|
@ -61,12 +61,6 @@
|
|||
],
|
||||
"dependencies": [
|
||||
"ext.templateDataGenerator.ui"
|
||||
],
|
||||
"messages": [
|
||||
"templatedata-editbutton",
|
||||
"templatedata-helplink",
|
||||
"templatedata-helplink-target",
|
||||
"templatedata-errormsg-jsonbadformat"
|
||||
]
|
||||
},
|
||||
"ext.templateDataGenerator.data": {
|
||||
|
@ -99,6 +93,8 @@
|
|||
"messages": [
|
||||
"comma-separator",
|
||||
"templatedata-doc-no-params-set",
|
||||
"templatedata-editbutton",
|
||||
"templatedata-errormsg-jsonbadformat",
|
||||
"templatedata-exists-on-related-page",
|
||||
"templatedata-modal-button-add-language",
|
||||
"templatedata-modal-button-addparam",
|
||||
|
@ -153,7 +149,9 @@
|
|||
"templatedata-modal-title-paramorder",
|
||||
"templatedata-modal-title-templatedesc",
|
||||
"templatedata-modal-title-templateparam-details",
|
||||
"templatedata-modal-title-templateparams"
|
||||
"templatedata-modal-title-templateparams",
|
||||
"templatedata-helplink",
|
||||
"templatedata-helplink-target"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
editHelpButtonWidget = new OO.ui.ButtonWidget( {
|
||||
label: mw.msg( 'templatedata-helplink' ),
|
||||
classes: [ 'tdg-editscreen-main-helplink' ],
|
||||
href: 'https://www.mediawiki.org/wiki/Extension:TemplateData',
|
||||
href: mw.msg( 'templatedata-helplink-target' ),
|
||||
target: '_blank',
|
||||
framed: false
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue