/* generated javascript */
var skin = 'monobook';
var stylepath = '/skins-1.5';
/* MediaWiki:Common.js */
/** Extra toolbar options ****************************************************** mwCustomEditButtons = [];
to [[Special:Mypage/monobook.js]]
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png",
"speedTip": "Redirect",
"tagOpen": "#REDIRECT [[",
"tagClose": "]]",
"sampleText": "Insert text"};
}
//==================================================================
// Improvement of the search page v4
// Auteur : Marc Mongenet & Suisui
// Source licenced GFDL & GPL
function SpecialSearchEnhanced()
{
function SearchForm(engine_name, engine_url, logo_url, search_action_url,
search_field_name, add_search_field, field_array)
{
var span= document.createElement("span");
span.style.marginRight = "1em";
var form = document.createElement("form");
form.method = "get";
form.action = search_action_url;
form.style.display = "inline";
span.appendChild(form);
var input = document.createElement("input");
input.type = "hidden";
input.name = search_field_name;
form.appendChild(input);
for( var i in field_array){
var fld = document.createElement("input");
fld.type = "hidden";
fld.name = i;
fld.value = field_array[i];
form.appendChild(fld);
}
var submit = document.createElement("input");
submit.type = "submit";
submit.value = "Find media with Mayflower (do not retry on errors, please)";
form.appendChild(submit);
form.onsubmit = function() {
if(add_search_field == ""){
input.value = document.getElementById("lsearchbox").value;
}else{
input.value = document.getElementById("lsearchbox").value+add_search_field;
}
}
var a = document.createElement("a");
a.href = engine_url;
span.appendChild(a);
var img = document.createElement("img");
img.src = logo_url;
img.alt = engine_name;
img.style.borderWidth = "0";
img.style.padding = "5px";
img.style.width = "220px";
img.style.height = "53px";
a.appendChild(img);
return span;
}
if (typeof SpecialSearchEnhancedDisabled != 'undefined') return;
if (wgCanonicalNamespace != "Special" || wgCanonicalSpecialPageName != "Search") return;
if(skin == "monobook" || skin == "cologneblue" || skin == "simple"){var mainNode = document.getElementsByTagName("form");}
if (!mainNode) return;
mainNode = mainNode[0];
mainNode.appendChild(document.createElement("center"));
mainNode = mainNode.lastChild;
var searchValue = document.getElementById("lsearchbox").value;
var div= document.createElement("div");
div.style.width = "100%";
// ul.style.list-style-type = "none";
mainNode.appendChild(div);
var engine;
var mayflowero = new Object();
mayflowero["t"] = "n";
engine = SearchForm("MayFlower", "http://tools.wikimedia.de/~tangotango/mayflower/index.php", "http://tools.wikimedia.de/~tangotango/mayflower/mayflower-logo.png",
"http://tools.wikimedia.de/~tangotango/mayflower/search.php",
"q", "", mayflowero);
div.appendChild(engine);
}
addOnloadHook(SpecialSearchEnhanced);
/*
Top of Javascript */ //Embed cookie-based blocking method, not foolproof, but offers more control such as upload-only blocking document.write(''); //Fix for i18n localization not loading. if (wgUserLanguage != 'en') { document.write(''); } else { ta = new Object(); ta['pt-userpage'] = new Array('.','My user page'); ta['pt-anonuserpage'] = new Array('.','The user page for the ip you\'re editing as'); ta['pt-mytalk'] = new Array('n','My talk page'); ta['pt-anontalk'] = new Array('n','Discussion about edits from this ip address'); ta['pt-preferences'] = new Array('','My preferences'); ta['pt-watchlist'] = new Array('l','The list of pages you\'re monitoring for changes.'); ta['pt-mycontris'] = new Array('y','List of my contributions'); ta['pt-login'] = new Array('o','You are encouraged to log in, it is not mandatory however.'); ta['pt-anonlogin'] = new Array('o','You are encouraged to log in, it is not mandatory however.'); ta['pt-logout'] = new Array('o','Log out'); ta['ca-talk'] = new Array('t','Discussion about the content page'); ta['ca-edit'] = new Array('e','You can edit this page. Please use the preview button before saving.'); ta['ca-addsection'] = new Array('+','Add a comment to this discussion.'); ta['ca-viewsource'] = new Array('e','This page is protected. You can view its source.'); ta['ca-history'] = new Array('h','Past versions of this page.'); ta['ca-protect'] = new Array('=','Protect this page'); ta['ca-unprotect'] = new Array('=','Unprotect this page'); ta['ca-delete'] = new Array('d','Delete this page'); ta['ca-undelete'] = new Array('d','Restore the edits done to this page before it was deleted'); ta['ca-move'] = new Array('m','Move this page'); ta['ca-watch'] = new Array('w','Add this page to your watchlist'); ta['ca-unwatch'] = new Array('w','Remove this page from your watchlist'); ta['search'] = new Array('f','Search this wiki'); ta['p-logo'] = new Array('','Main Page'); ta['n-mainpage'] = new Array('z','Visit the Main Page'); ta['n-welcome'] = new Array('','Visit the Welcome Page'); ta['n-portal'] = new Array('','About the project, what you can do, where to find things'); ta['n-villagepump'] = new Array('','Visit the Village Pump'); ta['n-upload'] = new Array('u','Upload images or media files'); ta['n-recentchanges'] = new Array('r','The list of recent changes in the wiki.'); ta['n-latestfiles'] = new Array('','View the most recently uploaded images'); ta['n-randomimage'] = new Array('x','Load a random file'); ta['n-help'] = new Array('','The place to find out about Wikimedia Commons'); ta['n-contact'] = new Array('','How to contact Wikimedia Commons'); ta['n-sitesupport'] = new Array('','Support us'); ta['t-whatlinkshere'] = new Array('j','List of all wiki pages that link here'); ta['t-recentchangeslinked'] = new Array('k','Recent changes in pages linked from this page'); ta['feed-rss'] = new Array('','RSS feed for this page'); ta['feed-atom'] = new Array('','Atom feed for this page'); ta['t-contributions'] = new Array('','View the list of contributions of this user'); ta['t-emailuser'] = new Array('','Send a mail to this user'); ta['t-specialpages'] = new Array('q','List of all special pages'); ta['t-print'] = new Array('','Printable version of this page'); ta['t-permalink'] = new Array('','Permanent link to this version of the page'); ta['ca-nstab-main'] = new Array('c','View the content page'); ta['ca-nstab-user'] = new Array('c','View the user page'); ta['ca-nstab-media'] = new Array('c','View the media page'); ta['ca-nstab-special'] = new Array('','This is a special page, you can\'t edit the page itself.'); ta['ca-nstab-project'] = new Array('c','View the project page'); ta['ca-nstab-image'] = new Array('c','View the image page'); ta['ca-nstab-mediawiki'] = new Array('c','View the system message'); ta['ca-nstab-template'] = new Array('c','View the template'); ta['ca-nstab-help'] = new Array('c','View the help page'); ta['ca-nstab-category'] = new Array('c','View the category page'); // ========================================================================== // BEGIN: MediaWiki interface button strings definition for additional tabs // for embeding Duesentrieb's image tools. // The complete script which gets called here is located at MediaWiki:Extra-tabs.js // Interface strings, get defined in the localised Mediawiki:Monobook.js/ var tab_check_usage = 'check usage'; var tab_categorize = 'find categories'; var tab_log = 'log'; var tab_gallery = 'gallery'; var tab_orphans = 'orphans'; var tab_untagged = 'untagged'; var tab_tree = 'Tree'; var tab_catscan = 'CatScan'; var tab_blocklog = 'Blocklog'; var tab_wikipedia = 'en'; // embeds the global script document.write('