mw.ForeignStructuredUpload: Remove #getTemplateName
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 4 May 2016 19:31:50 +0000 (15:31 -0400)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 4 May 2016 19:31:50 +0000 (15:31 -0400)
Having this overridable doesn't really help at all when the template
parameters' names aren't.

Change-Id: I43b1b50c62df78d8a6c912a138cf277677450381

resources/src/mediawiki/mediawiki.ForeignStructuredUpload.js

index c03c0d1..f90071c 100644 (file)
@@ -85,8 +85,7 @@
        ForeignStructuredUpload.prototype.getText = function () {
                return (
                        '== {{int:filedesc}} ==\n' +
-                       '{{' +
-                       this.getTemplateName() +
+                       '{{Information' +
                        '\n|description=' +
                        this.getDescriptions() +
                        '\n|date=' +
                return this.date.toString();
        };
 
-       /**
-        * Gets the name of the template to use for creating the file metadata.
-        * Override in subclasses for other templates.
-        *
-        * @private
-        * @return {string}
-        */
-       ForeignStructuredUpload.prototype.getTemplateName = function () {
-               return 'Information';
-       };
-
        /**
         * Fetches the wikitext for any descriptions that have been added
         * to the upload.