"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
(ചെ.)No edit summary |
(ചെ.) Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?). |
||
വരി 119: | വരി 119: | ||
techterms: { |
techterms: { |
||
ShortName: "സാങ്കേതികപദസൂചി", |
ShortName: "സാങ്കേതികപദസൂചി", |
||
Template: " |
Template: "//ml.wikipedia.org/w/index.php?search={searchTerms} prefix:വിക്കിപീഡിയ:വിക്കിപദ്ധതി/സാങ്കേതികപദാവലി/മേഖലകൾ&fulltext=Search" |
||
}, |
}, |
||
wikiwix: { |
wikiwix: { |
||
വരി 181: | വരി 181: | ||
if (wgPageName == 'പ്രധാന_താൾ' || wgPageName == 'സംവാദം:പ്രധാന_താൾ') { |
if (wgPageName == 'പ്രധാന_താൾ' || wgPageName == 'സംവാദം:പ്രധാന_താൾ') { |
||
$(function () { |
$(function () { |
||
mw.util.addPortletLink('p-lang', ' |
mw.util.addPortletLink('p-lang', '//meta.wikimedia.org/wiki/List_of_Wikipedias', |
||
'പൂർണ്ണമായ പട്ടിക', 'interwiki-completelist', 'വിക്കിപീഡിയകളുടെ പൂർണ്ണമായ പട്ടിക'); |
'പൂർണ്ണമായ പട്ടിക', 'interwiki-completelist', 'വിക്കിപീഡിയകളുടെ പൂർണ്ണമായ പട്ടിക'); |
||
var nstab = document.getElementById('ca-nstab-main'); |
var nstab = document.getElementById('ca-nstab-main'); |
||
വരി 210: | വരി 210: | ||
if (mwCustomEditButtons) { |
if (mwCustomEditButtons) { |
||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", |
||
"speedTip": "തിരിച്ചുവിടൽ", |
"speedTip": "തിരിച്ചുവിടൽ", |
||
"tagOpen": "#തിരിച്ചുവിടുക [[", |
"tagOpen": "#തിരിച്ചുവിടുക [[", |
||
വരി 218: | വരി 218: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png", |
||
"speedTip": "വെട്ടുക", |
"speedTip": "വെട്ടുക", |
||
"tagOpen": "<s>", |
"tagOpen": "<s>", |
||
വരി 226: | വരി 226: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", |
||
"speedTip": "Line break", |
"speedTip": "Line break", |
||
"tagOpen": "<br />", |
"tagOpen": "<br />", |
||
വരി 234: | വരി 234: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png", |
||
"speedTip": "സൂപ്പർസ്ക്രിപ്റ്റ്", |
"speedTip": "സൂപ്പർസ്ക്രിപ്റ്റ്", |
||
"tagOpen": "<sup>", |
"tagOpen": "<sup>", |
||
വരി 242: | വരി 242: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png", |
||
"speedTip": "സബ്സ്ക്രിപ്റ്റ്", |
"speedTip": "സബ്സ്ക്രിപ്റ്റ്", |
||
"tagOpen": "<sub>", |
"tagOpen": "<sub>", |
||
വരി 250: | വരി 250: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/5/58/Button_small.png", |
||
"speedTip": "ചെറുതാക്കുക", |
"speedTip": "ചെറുതാക്കുക", |
||
"tagOpen": "<small>", |
"tagOpen": "<small>", |
||
വരി 258: | വരി 258: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png", |
||
"speedTip": "മറച്ചുവെയ്ക്കേണ്ട എഴുത്ത്", |
"speedTip": "മറച്ചുവെയ്ക്കേണ്ട എഴുത്ത്", |
||
"tagOpen": "<!-- ", |
"tagOpen": "<!-- ", |
||
വരി 266: | വരി 266: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png", |
||
"speedTip": "ചിത്രശാല ചേർക്കുക", |
"speedTip": "ചിത്രശാല ചേർക്കുക", |
||
"tagOpen": "\n<gallery>\n", |
"tagOpen": "\n<gallery>\n", |
||
വരി 274: | വരി 274: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", |
||
"speedTip": "Insert block of quoted text", |
"speedTip": "Insert block of quoted text", |
||
"tagOpen": "<blockquote>\n", |
"tagOpen": "<blockquote>\n", |
||
വരി 282: | വരി 282: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png", |
||
"speedTip": "പട്ടിക ചേർക്കുക", |
"speedTip": "പട്ടിക ചേർക്കുക", |
||
"tagOpen": '{| class="wikitable"\n|-\n', |
"tagOpen": '{| class="wikitable"\n|-\n', |
||
വരി 290: | വരി 290: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/2/20/Button_subst.png", |
||
"speedTip": "സബ്സ്റ്റിറ്റിയൂഷൻ (subst) ചേർക്കുക", |
"speedTip": "സബ്സ്റ്റിറ്റിയൂഷൻ (subst) ചേർക്കുക", |
||
"tagOpen": "{{ബദൽ:", |
"tagOpen": "{{ബദൽ:", |
||
വരി 298: | വരി 298: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", |
||
"speedTip": "അവലംബം നൽകാൻ", |
"speedTip": "അവലംബം നൽകാൻ", |
||
"tagOpen": "<ref>", |
"tagOpen": "<ref>", |
||
വരി 306: | വരി 306: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png", |
||
"speedTip": "പുസ്തകസ്രോതസ്സ്", |
"speedTip": "പുസ്തകസ്രോതസ്സ്", |
||
"tagOpen": "{{cite book ", |
"tagOpen": "{{cite book ", |
||
വരി 314: | വരി 314: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/2/2c/Button_cite_news.png", |
||
"speedTip": "വാർത്താസ്രോതസ്സ്", |
"speedTip": "വാർത്താസ്രോതസ്സ്", |
||
"tagOpen": "{{cite news ", |
"tagOpen": "{{cite news ", |
||
വരി 322: | വരി 322: | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { |
mwCustomEditButtons[mwCustomEditButtons.length] = { |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png", |
||
"speedTip": "വെബ്ബ്സ്രോതസ്സ്", |
"speedTip": "വെബ്ബ്സ്രോതസ്സ്", |
||
"tagOpen": "{{cite web ", |
"tagOpen": "{{cite web ", |
||
വരി 360: | വരി 360: | ||
def[10]=defc[8]; |
def[10]=defc[8]; |
||
def[def.length]={ |
def[def.length]={ |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/8/88/Btn_toolbar_enum.png", |
||
"speedTip": "എണ്ണമിട്ട പട്ടിക", |
"speedTip": "എണ്ണമിട്ട പട്ടിക", |
||
"tagOpen": "\n#", |
"tagOpen": "\n#", |
||
വരി 367: | വരി 367: | ||
}; |
}; |
||
def[def.length]={ |
def[def.length]={ |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/1/11/Btn_toolbar_liste.png", |
||
"speedTip": "എണ്ണമിടാത്ത പട്ടിക", |
"speedTip": "എണ്ണമിടാത്ത പട്ടിക", |
||
"tagOpen": "\n*", |
"tagOpen": "\n*", |
||
വരി 374: | വരി 374: | ||
}; |
}; |
||
def[def.length]={ |
def[def.length]={ |
||
"imageFile": " |
"imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png", |
||
"speedTip": "വർഗ്ഗം ചേർക്കുക", |
"speedTip": "വർഗ്ഗം ചേർക്കുക", |
||
"tagOpen": "[[Category:", |
"tagOpen": "[[Category:", |
19:38, 8 ജനുവരി 2012-നു നിലവിലുണ്ടായിരുന്ന രൂപം
/**
* Modifie Special:Search pour pouvoir utiliser différents moteurs de recherche,
* disponibles dans une boîte déroulante.
* Auteurs : Jakob Voss, Guillaume, importé depuis la Wiki allemande
* <pre><nowiki>
*/
function externalSearchEngines() {
if (typeof SpecialSearchEnhanced2Disabled != 'undefined') return;
var mainNode = document.getElementById("powersearch");
if (!mainNode) mainNode = document.getElementById("search");
if (!mainNode) return;
var beforeNode = document.getElementById("mw-search-top-table");
if (!beforeNode) return;
beforeNode = beforeNode.nextSibling;
if (!beforeNode) return;
var firstEngine = "mediawiki";
var choices = document.createElement("div");
choices.setAttribute("id","searchengineChoices");
choices.style.textAlign = "center";
var lsearchbox = document.getElementById("searchText");
var initValue = lsearchbox.value;
var space = "";
for (var id in searchEngines) {
var engine = searchEngines[id];
if(engine.ShortName)
{
if (space) choices.appendChild(space);
space = document.createTextNode(" ");
var attr = {
type: "radio",
name: "searchengineselect",
value: id,
onFocus: "changeSearchEngine(this.value)",
id: "searchengineRadio-"+id
};
var html = "<input";
for (var a in attr) html += " " + a + "='" + attr[a] + "'";
html += " />";
var span = document.createElement("span");
span.innerHTML = html;
choices.appendChild( span );
var label
if (engine.Template.indexOf('http') == 0) {
label = document.createElement("a");
label.href = engine.Template.replace("{searchTerms}", initValue).replace("{language}", "fr");
} else {
label = document.createElement("label");
}
label.appendChild( document.createTextNode( engine.ShortName ) );
choices.appendChild( label );
}
}
mainNode.insertBefore(choices, beforeNode);
var input = document.createElement("input");
input.id = "searchengineextraparam";
input.type = "hidden";
mainNode.insertBefore(input, beforeNode);
changeSearchEngine(firstEngine, initValue);
}
function changeSearchEngine(selectedId, searchTerms) {
var currentId = document.getElementById("searchengineChoices").currentChoice;
if (selectedId == currentId) return;
document.getElementById("searchengineChoices").currentChoice = selectedId;
var radio = document.getElementById('searchengineRadio-' + selectedId);
radio.checked = "checked";
var engine = searchEngines[selectedId];
var p = engine.Template.indexOf('?');
var params = engine.Template.substr(p+1);
var form;
if (document.forms["search"]) {
form = document.forms["search"];
} else {
form = document.getElementById("powersearch");
}
form.setAttribute("action", engine.Template.substr(0,p));
var l = ("" + params).split("&");
for (var idx = 0;idx < l.length;idx++) {
var p = l[idx].split("=");
var pValue = p[1];
if (pValue == "{language}") {
} else if (pValue == "{searchTerms}") {
$('#searchText').attr('name',p[0]);
} else {
$('#searchengineextraparam').attr('name',p[0]).val(pValue);
}
}
}
if (wgCanonicalSpecialPageName == "Search") {
var searchEngines = {
mediawiki: {
ShortName: "ആഭ്യന്തര അന്വേഷണം",
Template: "/w/index.php?search={searchTerms}"
},
techterms: {
ShortName: "സാങ്കേതികപദസൂചി",
Template: "//ml.wikipedia.org/w/index.php?search={searchTerms} prefix:വിക്കിപീഡിയ:വിക്കിപദ്ധതി/സാങ്കേതികപദാവലി/മേഖലകൾ&fulltext=Search"
},
wikiwix: {
ShortName: "വിക്കിവിക്സ്",
Template: "http://ml.wikiwix.com/index.php?action={searchTerms}&lang={language}"
},
google: {
ShortName: "ഗൂഗിൾ",
Template: "http://www.google.com/search?as_sitesearch=ml.wikipedia.org&hl={language}&q={searchTerms}"
},
wlive: {
ShortName: "വിൻഡോസ് ലൈവ്",
Template: "http://search.live.com/results.aspx?q={searchTerms}&q1=site:http://ml.wikipedia.org"
},
yahoo: {
ShortName: "യാഹൂ!",
Template: "http://search.yahoo.com/search?p={searchTerms}&vs=ml.wikipedia.org"
},
exalead: {
ShortName: "എക്സാലീഡ്",
Template: "http://www.exalead.com/wikipedia/results?q={searchTerms}&language=ml"
},
globalwpsearch: {
ShortName: "ഗ്ലോബൽ ഡബ്ല്യൂപി",
Template: "http://vs.aka-online.de/cgi-bin/globalwpsearch.pl?timeout=120&search={searchTerms}"
}
};
$(externalSearchEngines);
}
/** Interwiki links to featured articles ***************************************
*
* Description: Highlights interwiki links to featured articles (or
* equivalents) by changing the bullet before the interwiki link
* into a star.
* Maintainers: [[User:Junaidpv]] (updated to use jQuery)
*/
function LinkFA()
{
$('li', '#p-lang').each(function(){
var idPrefix = '#'+$(this).attr('class');
if($(idPrefix+'-fa').length>0) {
$(this).addClass('FA');
$(this).attr('title', 'ഈ ഭാഷയിൽ ഈ ലേഖനം തിരഞ്ഞെടുക്കപ്പെട്ടതാണ്.');
}else if($(idPrefix+'-ga').length>0) {
$(this).addClass('GA');
$(this).attr('title', 'ഈ ഭാഷയിൽ ഇതൊരു മികച്ച ലേഖനമാണ്.');
}
});
}
$( LinkFA );
/** Main Page layout fixes *********************************************************
*
* Description: Various layout fixes for the main page, including an
* additional link to the complete list of languages available
* and the renaming of the 'Article' to to 'Main Page'.
* Maintainers: User:AzaToth, User:R. Koot
*/
if (wgPageName == 'പ്രധാന_താൾ' || wgPageName == 'സംവാദം:പ്രധാന_താൾ') {
$(function () {
mw.util.addPortletLink('p-lang', '//meta.wikimedia.org/wiki/List_of_Wikipedias',
'പൂർണ്ണമായ പട്ടിക', 'interwiki-completelist', 'വിക്കിപീഡിയകളുടെ പൂർണ്ണമായ പട്ടിക');
var nstab = document.getElementById('ca-nstab-main');
if (nstab && wgUserLanguage=='ml') {
while (nstab.firstChild) {
nstab = nstab.firstChild;
}
nstab.nodeValue = 'പ്രധാന താൾ';
}else if (nstab) {
while (nstab.firstChild) nstab = nstab.firstChild
nstab.nodeValue = 'Main Page'
}
});
}
/**<pre><nowiki>*/
/** Extra toolbar options ******************************************************
*
* Description: UNDOCUMENTED
* Maintainers: [[User:MarkS]]?, [[User:Voice of All]], [[User:R. Koot]]
*/
//This is a modified copy of a script by User:MarkS for extra features added by User:Voice of All.
// This is based on the original code on Wikipedia:Tools/Editing tools
// To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]]
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
"speedTip": "തിരിച്ചുവിടൽ",
"tagOpen": "#തിരിച്ചുവിടുക [[",
"tagClose": "]]",
"sampleText": "എത്തിച്ചേരേണ്ട താൾ"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png",
"speedTip": "വെട്ടുക",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": "വെട്ടിക്കളയേണ്ട എഴുത്ത്"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
"speedTip": "Line break",
"tagOpen": "<br />",
"tagClose": "",
"sampleText": ""
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png",
"speedTip": "സൂപ്പർസ്ക്രിപ്റ്റ്",
"tagOpen": "<sup>",
"tagClose": "</sup>",
"sampleText": "സൂപ്പർസ്ക്രിപ്റ്റ് എഴുത്ത്"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png",
"speedTip": "സബ്സ്ക്രിപ്റ്റ്",
"tagOpen": "<sub>",
"tagClose": "</sub>",
"sampleText": "സബ്സ്ക്രിപ്റ്റ് എഴുത്ത്"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/5/58/Button_small.png",
"speedTip": "ചെറുതാക്കുക",
"tagOpen": "<small>",
"tagClose": "</small>",
"sampleText": "ചെറുതാക്കേണ്ട എഴുത്ത്"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png",
"speedTip": "മറച്ചുവെയ്ക്കേണ്ട എഴുത്ത്",
"tagOpen": "<!-- ",
"tagClose": " -->",
"sampleText": "കുറിപ്പ്"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png",
"speedTip": "ചിത്രശാല ചേർക്കുക",
"tagOpen": "\n<gallery>\n",
"tagClose": "\n</gallery>",
"sampleText": "Image:Example.jpg|അടിക്കുറിപ്പ്1\nImage:Example.jpg|അടിക്കുറിപ്പ്2"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png",
"speedTip": "Insert block of quoted text",
"tagOpen": "<blockquote>\n",
"tagClose": "\n</blockquote>",
"sampleText": "Block quote"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
"speedTip": "പട്ടിക ചേർക്കുക",
"tagOpen": '{| class="wikitable"\n|-\n',
"tagClose": "\n|}",
"sampleText": "! തലക്കുറി 1\n! തലക്കുറി 2\n! തലക്കുറി 3\n|-\n| വരി 1, കളം 1\n| വരി 1, കളം 2\n| വരി 1, കളം 3\n|-\n| വരി 2, കളം 1\n| വരി 2, കളം 2\n| വരി 2, കളം 3"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/2/20/Button_subst.png",
"speedTip": "സബ്സ്റ്റിറ്റിയൂഷൻ (subst) ചേർക്കുക",
"tagOpen": "{{ബദൽ:",
"tagClose": "}}",
"sampleText": "സ്വാഗതം"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
"speedTip": "അവലംബം നൽകാൻ",
"tagOpen": "<ref>",
"tagClose": "</ref>",
"sampleText": "അവലംബം"
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png",
"speedTip": "പുസ്തകസ്രോതസ്സ്",
"tagOpen": "{{cite book ",
"tagClose": "\n| last= \n| first= \n| authorlink= \n| coauthors= \n| editor= \n| others= \n| title= \n| origdate= \n| origyear= \n| origmonth= \n| url= \n| format= \n| accessdate= \n| accessyear= \n| accessmonth= \n| edition= \n| series= \n| date= \n| year= \n| month= \n| publisher= \n| location= \n| language= \n| isbn= \n| oclc= \n| doi= \n| id= \n| pages= \n| chapter= \n| chapterurl= \n| quote= \n}}",
"sampleText": ""
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/2/2c/Button_cite_news.png",
"speedTip": "വാർത്താസ്രോതസ്സ്",
"tagOpen": "{{cite news ",
"tagClose": "\n| first = \n| last = \n| authorlink = \n| author = \n| coauthors = \n| title = \n| url = \n| format = \n| work = \n| publisher = \n| pages = \n| page = \n| date = \n| accessdate = \n| language = \n}}",
"sampleText": ""
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "//upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png",
"speedTip": "വെബ്ബ്സ്രോതസ്സ്",
"tagOpen": "{{cite web ",
"tagClose": "\n| url = \n| title = \n| accessdate = \n| accessmonthday = \n| accessyear = \n| author = \n| last = \n| first = \n| authorlink = \n| coauthors = \n| date = \n| year = \n| month = \n| format = \n| work = \n| publisher = \n| pages = \n| language = \n| archiveurl = \n| archivedate = \n| quote = \n}}",
"sampleText": ""
};
}
/*</nowiki></pre>*/
/*<pre><nowiki>
ടൂൾ ബാർ ബട്ടണുകൾ അടുക്കിപ്പെറുക്കി വയ്ക്കാനുള്ള സ്ക്രിപ്റ്റ്
Maintainer : [[User:Tux the penguin]]
*/
function lija_rearrange()
{
var def,ext;
if(mwEditButtons)
def=mwEditButtons;
if(mwCustomEditButtons)
ext=mwCustomEditButtons;
if(def!=null && ext!=null)
{
var defc=def.slice();
var extc=ext.slice();
try
{
def[2]=extc[1];
def[3]=defc[4];
def[4]=extc[8];
def[5]=extc[5];
def[6]=extc[9];
def[7]=extc[2];
def[8]=defc[10];
def[9]=extc[6];
def[10]=defc[8];
def[def.length]={
"imageFile": "//upload.wikimedia.org/wikipedia/commons/8/88/Btn_toolbar_enum.png",
"speedTip": "എണ്ണമിട്ട പട്ടിക",
"tagOpen": "\n#",
"tagClose": "\n#രണ്ടാമത്തെ ഇനം\n#മൂന്നാമത്തെ ഇനം",
"sampleText": "ഒന്നാമത്തെ ഇനം"
};
def[def.length]={
"imageFile": "//upload.wikimedia.org/wikipedia/commons/1/11/Btn_toolbar_liste.png",
"speedTip": "എണ്ണമിടാത്ത പട്ടിക",
"tagOpen": "\n*",
"tagClose": "\n*രണ്ടാമത്തെ ഇനം\n*മൂന്നാമത്തെ ഇനം",
"sampleText": "ഒന്നാമത്തെ ഇനം"
};
def[def.length]={
"imageFile": "//upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png",
"speedTip": "വർഗ്ഗം ചേർക്കുക",
"tagOpen": "[[Category:",
"tagClose": "]]",
"sampleText": "ഉള്ളടക്കം"
};
ext[0]=defc[2];
ext[1]=defc[3];
ext[2]=defc[5];
ext[3]=defc[6];
ext[4]=extc[7];
ext[5]=defc[7];
ext[6]=extc[3];
ext[7]=extc[4];
ext[8]=extc[0];
ext[9]=extc[10];
ext[10]=extc[11];
ext[11]=defc[9];
}
catch(ex)
{
//എറർ ഉണ്ടായാൽ..... സഹിക്കുക. അല്ലാണ്ടെന്തു ചെയ്യാൻ ?
}
}
}
$(lija_rearrange);
//****************************************************************************************************************
//ടൂൾ ബാർ സ്ക്രിപ്റ്റ് ഇവിടെ അവസാനിയ്ക്കുന്നു.
//****************************************************************************************************************
/*</nowiki></pre>*/
/*
== Dynamic Navigation Bars (experimental) ==
<pre> */
// BEGIN Dynamic Navigation Bars (experimental)
// FIXME: currently only works for one nav bar on a page at a time
// ===============================================
// set up the words in your language
var NavigationBarHide = '[മറയ്ക്കുക]';
var NavigationBarShow = '[പ്രദർശിപ്പിക്കുക]';
// set up max count of Navigation Bars on page,
// if there are more, all will be hidden
// NavigationBarShowDefault = 0; // all bars will be hidden
// NavigationBarShowDefault = 1; // on pages with more than 1 bar all bars will be hidden
var NavigationBarShowDefault = 1;
//Honor the User Preferences
if ( getCookie('WikipediaPreferencesShowNav') != 'true' ) {
NavigationBarShowDefault = 0;
} else {
if ( wgNamespaceNumber == 0 ) NavigationBarShowDefault = 999 ;
}
/* </pre> */
/*
=== toggleNavigationBar ===*
<pre> */
// shows and hides content and picture (if available) of navigation bars
// Parameters:
// indexNavigationBar: the index of navigation bar to be toggled
function toggleNavigationBar(indexNavigationBar)
{
var NavToggle = document.getElementById("NavToggle" + indexNavigationBar);
var NavFrame = document.getElementById("NavFrame" + indexNavigationBar);
if (!NavFrame || !NavToggle) {
return false;
}
// if shown now
if (NavToggle.firstChild.data == NavigationBarHide) {
for (
var NavChild = NavFrame.firstChild;
NavChild;
NavChild = NavChild.nextSibling
) {
if (NavChild.className == 'NavPic') {
NavChild.style.display = 'none';
}
if (NavChild.className == 'NavContent') {
NavChild.style.display = 'none';
}
}
NavToggle.firstChild.data = NavigationBarShow;
// if hidden now
} else if (NavToggle.firstChild.data == NavigationBarShow) {
for (
var NavChild = NavFrame.firstChild;
NavChild;
NavChild = NavChild.nextSibling
) {
if (NavChild.className == 'NavPic') {
NavChild.style.display = 'block';
}
if (NavChild.className == 'NavContent') {
NavChild.style.display = 'block';
}
}
NavToggle.firstChild.data = NavigationBarHide;
}
}
/* </pre> */
/*
=== createNavigationBarToggleButton ===
<pre> */
// adds show/hide-button to navigation bars
function createNavigationBarToggleButton()
{
var indexNavigationBar = 0;
// iterate over all < div >-elements
for(
var i=0;
NavFrame = document.getElementsByTagName("div")[i];
i++
) {
// if found a navigation bar
if (NavFrame.className == "NavFrame") {
indexNavigationBar++;
var NavToggle = document.createElement("a");
NavToggle.className = 'NavToggle';
NavToggle.setAttribute('id', 'NavToggle' + indexNavigationBar);
NavToggle.setAttribute('href', 'javascript:toggleNavigationBar(' + indexNavigationBar + ');');
var NavToggleText = document.createTextNode(NavigationBarHide);
NavToggle.appendChild(NavToggleText);
// Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked)
for(
var j=0;
j < NavFrame.childNodes.length;
j++
) {
if (NavFrame.childNodes[j].className == "NavHead") {
NavFrame.childNodes[j].appendChild(NavToggle);
}
}
NavFrame.setAttribute('id', 'NavFrame' + indexNavigationBar);
}
}
// if more Navigation Bars found than Default: hide all
if (NavigationBarShowDefault < indexNavigationBar) {
for(
var i=1;
i<=indexNavigationBar;
i++
) {
toggleNavigationBar(i);
}
}
}
$(createNavigationBarToggleButton);
// END Dynamic Navigation Bars
// ======================
/* </pre> */
/*
==Cookies==
<pre> */
//Cookie helpers
//===========
function setCookie(cookieName, cookieValue) {
var today = new Date();
var expire = new Date();
var nDays = 30;
expire.setTime( today.getTime() + (3600000 * 24 * nDays) );
document.cookie = cookieName + "=" + escape(cookieValue)
+ ";path=/w"
+ ";expires="+expire.toGMTString();
document.cookie = cookieName + "=" + escape(cookieValue)
+ ";path=/wiki"
+ ";expires="+expire.toGMTString();
}
function getCookie(cookieName) {
var start = document.cookie.indexOf( cookieName + "=" );
if ( start == -1 ) return "";
var len = start + cookieName.length + 1;
if ( ( !start ) &&
( cookieName != document.cookie.substring( 0, cookieName.length ) ) )
{
return "";
}
var end = document.cookie.indexOf( ";", len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}
function deleteCookie(cookieName) {
if ( getCookie(cookieName) ) {
document.cookie = cookieName + "=" + ";path=/w" +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
document.cookie = cookieName + "=" + ";path=/wiki" +
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
}
/* </pre> */
/*
== Interproject links ==
<pre> */
function Projectlinks() {
var elements = new Array();
var spans = document.getElementsByTagName('span');
// filter for projectlinks
for (var i=0, j=0; i<spans.length; i++) {
if (spans[i].className == 'interProject') {
elements[j] = spans[i].getElementsByTagName('a')[0];
j++;
}
}
if (j) {
// create navbox
var plheader = document.createElement('h5');
plheader.appendChild(document.createTextNode('In other projects'));
var plbox = document.createElement('div');
plbox.setAttribute('class','pBody');
plbox.setAttribute('style','margin-top:0.7em;');
var pllist = document.createElement('ul');
// append
for (var i=0; i<elements.length; i++) {
var plitem = document.createElement('li');
plitem.appendChild(elements[i]);
pllist.appendChild(plitem);
}
plbox.appendChild(plheader);
plbox.appendChild(pllist);
document.getElementById("p-tb").appendChild(plbox);
}
}
$(Projectlinks);
/* </pre> */
/*
==addCharSubsetMenu==
<pre> */
/* add menu for selecting subsets of secial characters */
/***** must match MediaWiki:Edittools *****/
function addCharSubsetMenu() {
if($('#editpage-specialchars').length>0) {
/* default subset from cookie */
var s = parseInt( getCookie('edittoolscharsubset') );
if ( isNaN(s) ) s = 0;
var $menu = $('<select />')
.attr('id', 'charSubsetControl')
.css('display', 'inline');
$menu.change(chooseCharSubset)
.data('previousSelectedIndex', s)
.append($('<option />').text('ഫലകങ്ങൾ'))
.append($('<option />').text('വിക്കിവിന്യാസങ്ങൾ'))
.append($('<option />').text('അനുമതിപത്രങ്ങൾ'))
.append($('<option />').text('മലയാളം'))
.append($('<option />').text('കൊറിയൻ'))
.append($('<option />').text('ലത്തീൻ'))
.append($('<option />').text('ഐ.പി.എ.'))
.append($('<option />').text('പലവക'))
.append($('<option />').text('അറബി'))
.append($('<option />').text('ദേവനാഗരി'))
.append($('<option />').text('ഹിബ്രു'))
.append($('<option />').text('പഴയ ഇംഗ്ലീഷ്'))
.append($('<option />').text('വിക്കിവിന്യാസങ്ങൾ'));
$('#editpage-specialchars').prepend($menu);
/* update dropdown control to value of cookie */
$('#charSubsetControl')[0].selectedIndex = s;
$('p', '#editpage-specialchars').each(function(index) {
if(index==s) {
$(this).css('display', 'inline');
$(this).css('visibility', 'visible');
} else {
$(this).css('display', 'none');
$(this).css('visibility', 'hidden');
}
});
}
}
/* </pre> */
/*
===chooseCharSubsetMenu===
<pre> */
/* select subsection of special characters */
function chooseCharSubset() {
var selectedIndex = $(this).find(':selected').index();
$('p', '#editpage-specialchars').each(function(index) {
if(index==selectedIndex) {
$(this).css('display', 'inline');
$(this).css('visibility', 'visible');
}else {
$(this).css('display', 'none');
$(this).css('visibility', 'hidden');
}
});
setCookie('edittoolscharsubset', selectedIndex);
$(this).data('previousSelectedIndex', selectedIndex);
}
/* </pre> */
/*
== customizeWikipedia ==
<pre> */
function customizeWikipedia() {
addCharSubsetMenu();
}
$(customizeWikipedia);
/* </pre> */
/*HERE STARTS THE WORKING-CODE OF "METABOXES"*/
/* Funcionament de la Plantilla:Metacaixa
Implementat per: Usuari:Peleguer.
Actualitzat per Joanjoc seguint les indicacions d'en Martorell
*/
function MetaCaixaInit(){
//S'executa al carregar-se la pàgina, si hi ha metacaixes,
// s'assignen els esdeveniments als botons
//alert("MetaCaixaInit");
var i=0 //Inicialitzem comptador de caixes
for (i=0;i<=9;i++){
var vMc = document.getElementById("mc"+i);
if (!vMc) break;
//alert("MetaCaixaInit, trobada Metacaixa mc"+i);
var j=1 //Inicialitzem comptador de botons dins de la caixa
var vPsIni = 0 //Pestanya visible inicial
for (j=1;j<=9;j++){
var vBt = document.getElementById("mc"+i+"bt"+j);
if (!vBt) break;
//alert("MetaCaixaInit, trobat botó mc"+i+"bt"+j);
vBt.onclick = MetaCaixaMostraPestanya; //A cada botó assignem l'esdeveniment onclick
//alert (vBt.className);
if (vBt.className=="mcBotoSel") vPsIni=j; //Si tenim un botó seleccionat, en guardem l'index
}
//alert ("mc="+i+", ps="+j+", psini="+vPsIni );
if (vPsIni == 0) { //Si no tenim cap botó seleccionat, n'agafem un aleatòriament
vPsIni = 1+Math.floor((j-1)*Math.random()) ;
//alert ("Activant Pestanya a l'atzar; _mc"+i+"bt"+vPsIni +"_");
document.getElementById("mc"+i+"ps"+vPsIni).style.display = "block";
document.getElementById("mc"+i+"ps"+vPsIni).style.visibility = "visible";
document.getElementById("mc"+i+"bt"+vPsIni).className="mcBotoSel";
}
}
}
function MetaCaixaMostraPestanya(){
//S'executa al clicar una pestanya,
//aquella es fa visible i les altres s'oculten
var vMcNom = this.id.substr(0,3); //A partir del nom del botó, deduïm el nom de la caixa
var vIndex = this.id.substr(5,1); //I l'index
var i=1
for (i=1;i<=9;i++){ //busquem totes les pestanyes d'aquella caixa
//alert(vMcNom+"ps"+i);
var vPsElem = document.getElementById(vMcNom+"ps"+i);
if (!vPsElem) break;
if (vIndex==i){ //Si és la pestanya bona la mostrem i canviem la classe de botó
vPsElem.style.display = "block";
vPsElem.style.visibility = "visible";
document.getElementById(vMcNom+"bt"+i).className="mcBotoSel";
} else { //Sinó, l'ocultem i canviem la classe de botó
vPsElem.style.display = "none";
vPsElem.style.visibility = "hidden";
document.getElementById(vMcNom+"bt"+i).className="mcBoto";
}
}
return false; //evitem la recàrrega de la pàgina
}
$(MetaCaixaInit);
/*HERE FINISHES THE WORKING-CODE OF "METABOXES"*/
/** WikiMiniAtlas *******************************************************
*
* Description: WikiMiniAtlas is a popup click and drag world map.
* This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
* The script itself is located on meta because it is used by many projects.
* See [[Meta:WikiMiniAtlas]] for more information.
* Maintainers: [[User:Dschwen]]
*/
if (wgServer == "https://secure.wikimedia.org") {
var metaBase = "https://secure.wikimedia.org/wikipedia/meta";
} else {
var metaBase = "http://meta.wikimedia.org";
}
importScriptURI(metaBase+"/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400")
/** Collapsible tables *********************************************************
*
* Description: Allows tables to be collapsed, showing only the header. See
* [[Wikipedia:NavFrame]].
* Maintainers: [[User:R. Koot]]
*/
var autoCollapse = 2;
var collapseCaption = "മറയ്ക്കുക";
var expandCaption = "പ്രദർശിപ്പിക്കുക";
function collapseTable( tableIndex )
{
var Button = document.getElementById( "collapseButton" + tableIndex );
var Table = document.getElementById( "collapsibleTable" + tableIndex );
if ( !Table || !Button ) {
return false;
}
var Rows = Table.rows;
if ( Button.firstChild.data == collapseCaption ) {
for ( var i = 1; i < Rows.length; i++ ) {
Rows[i].style.display = "none";
}
Button.firstChild.data = expandCaption;
} else {
for ( var i = 1; i < Rows.length; i++ ) {
Rows[i].style.display = Rows[0].style.display;
}
Button.firstChild.data = collapseCaption;
}
}
function createCollapseButtons()
{
var tableIndex = 0;
var NavigationBoxes = new Object();
var Tables = document.getElementsByTagName( "table" );
for ( var i = 0; i < Tables.length; i++ ) {
if ( hasClass( Tables[i], "collapsible" ) ) {
/* only add button and increment count if there is a header row to work with */
var HeaderRow = Tables[i].getElementsByTagName( "tr" )[0];
if (!HeaderRow) continue;
var Header = HeaderRow.getElementsByTagName( "th" )[0];
if (!Header) continue;
NavigationBoxes[ tableIndex ] = Tables[i];
Tables[i].setAttribute( "id", "collapsibleTable" + tableIndex );
var Button = document.createElement( "span" );
var ButtonLink = document.createElement( "a" );
var ButtonText = document.createTextNode( collapseCaption );
Button.className = "collapseButton"; //Styles are declared in Common.css
ButtonLink.style.color = Header.style.color;
ButtonLink.setAttribute( "id", "collapseButton" + tableIndex );
ButtonLink.setAttribute( "href", "javascript:collapseTable(" + tableIndex + ");" );
ButtonLink.appendChild( ButtonText );
Button.appendChild( document.createTextNode( "[" ) );
Button.appendChild( ButtonLink );
Button.appendChild( document.createTextNode( "]" ) );
Header.insertBefore( Button, Header.childNodes[0] );
tableIndex++;
}
}
for ( var i = 0; i < tableIndex; i++ ) {
if ( hasClass( NavigationBoxes[i], "collapsed" ) || ( tableIndex >= autoCollapse && hasClass( NavigationBoxes[i], "autocollapse" ) ) ) {
collapseTable( i );
}
else if ( hasClass( NavigationBoxes[i], "innercollapse" ) ) {
var element = NavigationBoxes[i];
while (element = element.parentNode) {
if ( hasClass( element, "outercollapse" ) ) {
collapseTable ( i );
break;
}
}
}
}
}
$( createCollapseButtons );
var hasClass = (function () {
var reCache = {};
return function (element, className) {
return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
};
})();
/*Script for Image Annotation follows */
importScript('MediaWiki:Gadget-ImageAnnotator.js');