Difference between revisions of "MediaWiki:Common.js"
Bugman admin (talk | contribs) (Removed the NavFrame code now in MediaWiki:Gadget-NavFrame.js.) Tag: Replaced |
m (UploadWizard message fix.) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
}()); | }()); | ||
| + | |||
| + | /* Set some UploadWizard messages */ | ||
| + | mw.messages.set('mwe-upwiz-license-gpl-3.0', "GNU General Public Licence 3.0 ([$2 legal code])"); | ||
| + | mw.messages.set('mwe-upwiz-source-ownwork-gpl-3.0-explain', "(Anyone may use, share or remix {{PLURAL:$1|this work|these works}}, as long as they credit me and share any derivative work under this licence.)"); | ||
| + | mw.messages.set('mwe-upwiz-source-ownwork-assert-gpl-3.0', "I, $2, {{GENDER:$4|the copyright holder}} of {{PLURAL:$1|this work|these works}}, irrevocably grant anyone the right to use {{PLURAL:$1|this work|these works}} under the GNU General Public 3.0 licence ([$3 legal code])."); | ||
Latest revision as of 13:40, 27 October 2020
/* Any JavaScript here will be loaded for all users on every page load. */
/* Improvements for the HarvardReferences Mediawiki extension. */
importScript('HarvardReferences.js');
/* Test function, for testing if js works */
(function () {
var myElement = document.getElementById('mw-testing');
myElement.innerHTML = 'This is test HTML';
}());
/* Set some UploadWizard messages */
mw.messages.set('mwe-upwiz-license-gpl-3.0', "GNU General Public Licence 3.0 ([$2 legal code])");
mw.messages.set('mwe-upwiz-source-ownwork-gpl-3.0-explain', "(Anyone may use, share or remix {{PLURAL:$1|this work|these works}}, as long as they credit me and share any derivative work under this licence.)");
mw.messages.set('mwe-upwiz-source-ownwork-assert-gpl-3.0', "I, $2, {{GENDER:$4|the copyright holder}} of {{PLURAL:$1|this work|these works}}, irrevocably grant anyone the right to use {{PLURAL:$1|this work|these works}} under the GNU General Public 3.0 licence ([$3 legal code]).");