Difference between revisions of "MediaWiki:Common.js"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
		
	
| Bugman admin (talk | contribs)  (Removed the NavFrame code now in MediaWiki:Gadget-NavFrame.js.) Tag: Replaced |  (Attempt at setting the GPLv3 messages for the UploadWizard here.) | ||
| Line 11: | Line 11: | ||
| }()); | }()); | ||
| + | |||
| + | /* Set some UploadWizard messages */ | ||
| + | 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])."); | ||
| + | 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])."); | ||
Revision as of 13:38, 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-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]).");
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]).");

