User:Silicon Soldier/global.js

PurgeButtonText = 'Purge'; importArticles({   type: 'script',    articles: [        'u:dev:PurgeButton/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:MediaWiki:FileUsageAuto-update/code.js',        'u:dev:PageRenameAuto-update/code.js',        'u:dev:CatNav/code.js'    ] });

if (mw.config.get('wgCanonicalSpecialPageName') === 'Upload' && !mw.config.get('wpForReUpload')) { var o1 = new headerObject; o1.header = "Test Header"; var o2 = new textObject; o2.name = "Test Name"; o1.addContent(o2.getHTML); $('#mw-htmlform-description').append(o1.getHTML); }; "use strict"; /* var headerObject = { header: "", content: "", empty: function { this.header = ""; this.content = ""; },   addContent: function (content) { this.content += content; },   getHTML: function  { return "" + this.header + " " + this.content; } }; function headerObject { var header = ""; var content = "";

this.empty = function { this.header = ""; this.content = ""; };

this.addContent = function { this.content += content; }

this.getHTML = function { return "" + this.header + " " + this.content; } } /* var textObject = { name: "", getHTML: function { return " "; } }; function textObject { var name = ""; this.getHTML = function { return " "; } }