"ഉപയോക്താവ്:Sreejithk2000/MLW2-Update.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.
Content deleted Content added
(ചെ.) "ഉപയോക്താവ്:Sreejithk2000/MLW2-Update.js" സം‌രക്ഷിച്ചിരിക്കുന്നു: global script for security ([edit=sysop] (അനിശ്ചിതകാലം) [move=sysop] (അനിശ്ചിതക
(ചെ.) Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?).
 
വരി 3: വരി 3:
* {
* {
*/
*/
$.getJSON('http://commons.wikimedia.org/w/api.php?callback=?',
$.getJSON('//commons.wikimedia.org/w/api.php?callback=?',
{
{
action: 'query',
action: 'query',

13:42, 30 മാർച്ച് 2012-നു നിലവിലുള്ള രൂപം

$(document).ready(function() {
/* if (wgPageName == 'വിക്കിപീഡിയ:മലയാളം_വിക്കിമീഡിയയെ_സ്നേഹിക്കുന്നു-2' || wgPageName == 'ഫലകം:MLW2-Count') 
*  {
*/
   $.getJSON('//commons.wikimedia.org/w/api.php?callback=?',
   {
    action: 'query',
    prop: 'categoryinfo',
    titles: 'Category:Malayalam_loves_Wikimedia_event_-_2012',
    format: 'json'
   },
   function( data ) { 
	$.each(data.query.pages, function(i,item){
	    $('.MLW2-Count').each(function () {
		   $(this).html(item.categoryinfo.files);
	    });				
	});
     } 
   );
/*  } */
});
"https://ml.wikipedia.org/w/index.php?title=ഉപയോക്താവ്:Sreejithk2000/MLW2-Update.js&oldid=1281311" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്