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:
Ltrlg 2015-09-10 23:40:22 +02:00 committed by Jforrester
parent 446d759a7f
commit fdd0514024
2 changed files with 6 additions and 8 deletions

View file

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

View file

@ -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
} );