Kullanıcı:Headersalreadysent/monobook.js: Revizyonlar arasındaki fark

Ubuntu Türkiye Wiki sitesinden
Gezinti kısmına atla Arama kısmına atla
Değişiklik özeti yok
k (Headersalreadysent Kullanıcı:Canosayan/monobook.js sayfasını Kullanıcı:Headersalreadysent/monobook.js sayfasına taşıdı: Kullanıcıyı "Canosayan" isminden "Headersalreadysent" ismine yen...)
 
(Aynı kullanıcının aradaki diğer 10 değişikliği gösterilmiyor)
1. satır: 1. satır:
// <nowiki>
var button = {
// dynamically load Commons-style Edittools
"imageFile": "images/5/56/Button_big.png", // image to be shown on the button (may be a full URL too), 22x22 pixels
function createEdittoolsLink(){
"speedTip": "big text", // text shown in a tooltip when hovering the mouse over the button
// get div.mw-editTools
"tagOpen": "<big>", // the text to use to mark the beginning of the block
var box = document.getElementById('wpTextbox1');
"tagClose": "</big>",      // the text to use to mark the end of the block (if any)
while( box && box.className != 'mw-editTools' )
"sampleText": "big text"  // the sample text to place inside the block
box = box.nextSibling;
};
if( !box )
mwCustomEditButtons.push(button);
return;
// create a link
var lnk = document.createElement('a');
lnk.href = 'javascript:loadCommonsTools()';
lnk.title = 'Load Commons-style Edittools';
lnk.id = 'loadCommonsEdittoos';
lnk.appendChild(document.createTextNode('[load edittools]'));
lnk.style.cssText = 'float:right';
box.appendChild(lnk);
}
function loadCommonsTools(){
importScript('MediaWiki:Scripts/Edittools1.js');
var lnk = document.getElementById('loadCommonsEdittoos');
if( lnk )
lnk.parentNode.removeChild(lnk);
}
if( doneOnloadHook )
createEdittoolsLink();
else
addOnloadHook( createEdittoolsLink );
// Add Insert Buttons
function addInsertButton( img, speedTip, tagOpen, tagClose, sampleText ){
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/' + img,
'speedTip': speedTip,
'tagOpen': tagOpen,
'tagClose': tagClose,
'sampleText': sampleText
};
}
addInsertButton( 'wikipedia/commons/c/c8/Button_redirect.png', 'Redirect', '#REDIRECT [[', ']]', '' ); //+ buttons
addInsertButton( 'wikisource/ru/a/a9/Button-dash.png', ' — ', '—', '', '' );
addInsertButton( 'wikipedia/commons/2/2a/Button_category_plus.png', 'Category', '[[Category:', ']]', '' );
// </nowiki>

13.11, 26 Ekim 2013 itibarı ile sayfanın şu anki hâli

var button = {
	"imageFile": "images/5/56/Button_big.png", // image to be shown on the button (may be a full URL too), 22x22 pixels
	"speedTip": "big text", // text shown in a tooltip when hovering the mouse over the button
	"tagOpen": "<big>", // the text to use to mark the beginning of the block
	"tagClose": "</big>",      // the text to use to mark the end of the block (if any)
	"sampleText": "big text"  // the sample text to place inside the block
};
mwCustomEditButtons.push(button);