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 9 değişikliği gösterilmiyor)
1. satır: 1. satır:
 
var button = {
MediaWiki:Edittools.js
"imageFile": "images/5/56/Button_big.png", // image to be shown on the button (may be a full URL too), 22x22 pixels
From MediaWiki.org
"speedTip": "big text", // text shown in a tooltip when hovering the mouse over the button
Jump to: navigation, search
"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)
Note - After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh); Konqueror: click Reload or press F5; Opera: clear the cache in Tools → Preferences; Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.
"sampleText": "big text"  // the sample text to place inside the block
 
};
/* <source lang="javascript"><nowiki> Top of Javascript */
mwCustomEditButtons.push(button);
// Drop down box for the Special character menu in [[MediaWiki:Edittools]]
// will be called from [[MediaWiki:Common.js]].
// Adapted from:
// http://commons.wikimedia.org/wiki/MediaWiki:Edittools.js
// Switch for people that don't want it
if (load_edittools == true)
{
function addCharSubsetMenu() {
var specialchars = document.getElementById('specialchars');
if (specialchars) {
  var menu = "<select style=\"display:inline\" onChange=\"chooseCharSubset(selectedIndex)\">";
  menu += "<option>Standard</option>";
  menu += "<option>Latin</option>";
  menu += "<option>Greek</option>";
  menu += "<option>Cyrillic</option>";
  menu += "<option>IPA</option>";
  menu += "<option>Arabic</option>";
  menu += "<option>Catalan</option>";
  menu += "<option>Czech</option>";
  menu += "<option>Devanāgarī</option>";
  menu += "<option>Esperanto</option>";
  menu += "<option>Estonian</option>";
  menu += "<option>French</option>";
  menu += "<option>German</option>";
  menu += "<option>Hawaiian</option>";
  menu += "<option>Hebrew</option>";
  menu += "<option>Hungarian</option>";
  menu += "<option>Icelandic</option>";
  menu += "<option>Italian</option>";
  menu += "<option>Latvian</option>";
  menu += "<option>Lithuanian</option>";
  menu += "<option>Maltese</option>";
  menu += "<option>Old English</option>";
  menu += "<option>Pinyin</option>";
  menu += "<option>Polish</option>";
  menu += "<option>Portuguese</option>";
  menu += "<option>Romaji</option>";
  menu += "<option>Romanian</option>";
  menu += "<option>Scandinavian</option>";
  menu += "<option>Serbian</option>";
  menu += "<option>Spanish</option>";
  menu += "<option>Turkish</option>";
  menu += "<option>Vietnamese</option>";
  menu += "<option>Welsh</option>";
  menu += "<option>Yiddish</option>";
  menu += "</select>";
  specialchars.innerHTML = menu + specialchars.innerHTML;
  // Standard-CharSubset
  chooseCharSubset(0);
}
}
// CharSubset selection
function chooseCharSubset(s) {
var l = document.getElementById('specialchars').getElementsByTagName('p');
for (var i = 0; i < l.length ; i++) {
  l[i].style.display = i == s ? 'inline' : 'none';
  // l[i].style.visibility = i == s ? 'visible' : 'hidden';
}
}
// Menu insertion
if (window.addEventListener)  
  window.addEventListener("load", addCharSubsetMenu, false);
else if (window.attachEvent)
  window.attachEvent("onload", addCharSubsetMenu);
   
}
/* Bottom of Javascript </nowiki></source>*/
 
Retrieved from "http://www.mediawiki.org/wiki/MediaWiki:Edittools.js"
Views
 
    * Message
    * Discussion
    * View source
    * History
 
Personal tools
 
    * Try Beta
    * Log in / create account
 
Site
 
    * Main Page
    * Browse categories
    * Community portal
    * Recent changes
    * Tech blog
 
Search
Support
 
    * User help
    * Technical manual
    * FAQ
    * Support desk
 
Download
 
    * Get MediaWiki
    * Get extensions
 
Development
 
    * Bug tracker
    * Download from SVN
    * View code changes
    * Code comments
    * Browse SVN
    * Code docs
 
Communication
 
    * IRC (#mediawiki)
    * Mailing lists
 
Toolbox
 
    * What links here
    * Related changes
    * Special pages
    * Printable version
    * Permanent link
 
Powered by MediaWiki
Wikimedia Foundation
 
    * This page was last modified on 13 December 2007, at 12:57.
    * Text is available under the Creative Commons Attribution/Share-Alike License; additional terms may apply. See Terms of Use for details.
    * Privacy policy
    * About MediaWiki.org
    * Disclaimers

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);