Megjegyzés: közzététel után frissítened kell a böngésződ gyorsítótárát, hogy lásd a változásokat.

  • Firefox / Safari: tartsd lenyomva a Shift gombot és kattints a Frissítés gombra a címsorban, vagy használd a Ctrl–F5 vagy Ctrl–R (Macen ⌘–R) billentyűkombinációt
  • Google Chrome: használd a Ctrl–Shift–R (Macen ⌘–Shift–R) billentyűkombinációt
  • Internet Explorer / Edge: tartsd nyomva a Ctrl-t, és kattints a Frissítés gombra, vagy nyomj Ctrl–F5-öt
  • Opera: Nyomj Ctrl–F5-öt
//importScript("Szerkesztő:BáthoryPéter/listázottLapokSzáma.js");

// Wikikód megjelenítése új fülön
/*
function addRawTab() {
  if (wgNamespaceNumber == -1) return;
  var link = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=raw&ctype=text/css&templates=expand';
  var before = document.getElementById('ca-history');
  mw.util.addPortletLink('p-cactions', link, 'kód', 'ca-raw', 'Wikikód', null, before); } $(addRawTab);
*/

// Figyelőlistán utolsó betöltés óta történt változtatások
/*
$(function () {
if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;

var link = document.createElement('a');
link.id = 'listSince';
link.href = '#listSince';  // must have a href to show as link!
*/
//var then = +(new Date());
//var fixLinkHref = function () {
//var url = window.location.href.split('#')[0];
//var days = (( +(new Date()) - then ) + (60 * 1000)) / (1000 * 3600 * 24);
//if (url.match(/[?&]days=/))
//this.href = url.replace(/([?&]days=)[^&]*/, '$1'+days);
//else
//this.href = url + (url.indexOf('?') < 0 ? '?':'&') + 'days=' + days;
//return true;
//};
/*
link.onclick = fixLinkHref;
link.onmousedown = fixLinkHref;  // react to middle clicks too

var frag = document.createDocumentFragment();
frag.appendChild(document.createTextNode(' | '));
frag.appendChild(link);
link.appendChild(document.createTextNode('Változtatások'));
frag.appendChild(document.createTextNode(' az utolsó betöltés óta'));

// just one little ID attribute would be _so_ nice...
var nsSelectForm = document.getElementsByTagName('form')[0];
nsSelectForm.parentNode.insertBefore(frag, nsSelectForm);
});
*/

// Előnézet
// mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript") ;

// Bal oldalt 20 előnézet legyen látható a keresőben
// wgMWSuggestTemplate = wgMWSuggestTemplate + "&limit=20";

// Automatikus összefoglalók
// importScript("Szerkesztő:Tgr/summary.js") ;

// Még fejlettebb friss változtatások
// Ezt használható: 
//   importScript("Szerkesztő:Hunyadym/rc.js") ;

// Ez fejlesztés alatt van, néha nem működik
//     importScript("Szerkesztő:Hunyadym/rc_dev.js") ;
//     Kicsi=1 ;

// importScript("Szerkesztő:Hunyadym/showoldid.js") ;










//<nowiki>


function addLocalEditToolbarItems() {
    if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
	$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
		'sections': { 'templates': { 'type': 'booklet', 'label': 'Sablonok és egyebek',  'deferLoad': true,
		    'pages': {
			'general-templates': {
				'layout': 'characters', 'label': 'Általános',
				'characters': [
{ 'label': "aláírás", 'action': { 'type': 'encapsulate', 'options': { 'pre': "–~~~~", 'post': "" } } },
'–', '{{források}}', '{{törlés}}', '{{azonnali}}',
{ 'label': "nowiki", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<nowiki>", 'post': "</nowiki>" } } },
//<nowiki>
{ 'label': "átirányítás", 'action': { 'type': 'encapsulate', 'options': { 'pre': "#átirányítás[[", 'post': "]]" } } },
{ 'label': "„”", 'action': { 'type': 'encapsulate', 'options': { 'pre': "„", 'post': "”" } } },
{ 'label': "nem törő szóköz", 'action': { 'type': 'encapsulate', 'options': { 'pre': "&", 'post': "nbsp;" } } },
{ 'label': "sablon", 'action': { 'type': 'encapsulate', 'options': { 'pre': "{{", 'post': "}}" } } },
{ 'label': "belső link", 'action': { 'type': 'encapsulate', 'options': { 'pre': "[[", 'post': "]]" } } },
{ 'label': "noinclude", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<noinclude>", 'post': "</noinclude>" } } },
{ 'label': "includeonly", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<includeonly>", 'post': "</includeonly>" } } },
{ 'label': "pre", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<pre>", 'post': "</pre>" } } },
{ 'label': "megjegyzés", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<!-- ", 'post': " -->" } } },
{ 'label': "br", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<br />", 'post': "" } } },
{ 'label': "small", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<small>", 'post': "</small>" } } },
{ 'label': "s", 'action': { 'type': 'encapsulate', 'options': { 'pre': "<s>", 'post': "</s>" } } },
                               ]
			}
                    }
		}
             }
	} );
    }
}

if ( typeof $ != 'undefined' ) $(document).ready(addLocalEditToolbarItems);
 
var sectionsInToolbar=new Array ();
var groupsInSection=new Array ();
 
function existsEditToolbarSection ( sectionName ) {
  // set up if empty
  if ( sectionsInToolbar.length == 0 ) {
      var count=0;
      possibleSections = document.getElementsByTagName('div');
      for (i = 0; i<possibleSections.length; i++) {
          if (possibleSections[i].className.indexOf('booklet section section-') == 0 ||
              possibleSections[i].className.indexOf('toolbar section section-' ) == 0 ) {
             sectionsInToolbar[count] = possibleSections[i].className.substring(24);
             possibleGroups = possibleSections[i].getElementsByTagName('div');
             var groupcount = 0;
             groupsInSection[count]=new Array ();
             for (j=0; j< possibleGroups.length; j++) {
                if (possibleGroups[j].className.indexOf('group group-') == 0) {
                   // μόνο το όνομα, όχι το 'group group-'
                   groupsInSection[count][groupcount++] = possibleGroups[j].className.substring(12);
                }
             }
             count++;
          }
      }
  }
  for (i=0; i<sectionsInToolbar.length; i++) {
       if (sectionsInToolbar[i] == sectionName) {
          return true;
       }
  }
  return false;
}
 
function existsEditToolbarGroup (sectionName, groupName) {
    for (i=0; i<sectionsInToolbar.length; i++) {
       if (sectionsInToolbar[i] == sectionName) {
          for (j=0; j<groupsInSection[i].length; j++) {
              if (groupsInSection[i][j] == groupName) {
                  return true;
              }
          }
       }
    }
    return false;
}
 
function addGroupNameToSectionNameList (sectionName, groupName) {
    for (i=0; i<sectionsInToolbar.length; i++) {
       if (sectionsInToolbar[i] == sectionName) {
          for (j=0; j<groupsInSection[i].length; j++) {
              if (groupsInSection[i][j] == groupName) {
                  return;
              }
          }
          groupsInSection[i][groupsInSection[i].length] = groupName;
          return;
       }
    }
    return;
}
 
/*
 παράμετροι:
 imageFile: URL προς το εικονίδιο (22x22 px)
 speedTip: το κείμενο που φαίνεται όταν βάλεις τον κέρσορα πάνω στο εικονίδιο
 textToEnter: το κείμενο που εισάγεται όταν πατήσεις το κουμπί
 toolbarSectionName: το όνομα που εμφανίζεται στη μπάρα δίπλα στα άλλα τμήματα (Προχωρημένα, Τοπικά κλπ.)
                     αν βάλεις όνομα ενός υπάρχοντος τμήματος κουμπιών, τα δικά σου κουμπιά θα προστεθούν
                     σε αυτό· αν βάλεις όνομα καινούριου τμήματος, θα δημιουργηθεί
*/
function addCustomButtonToLocalVectorToolbarButtons(imageFile, speedTip, textToEnter, toolbarSectionName) {
    if ( typeof $ != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
        if ( toolbarSectionName === undefined ) {
           toolbarSectionName = 'local';
           toolbarSectionLabel = 'Toπικά';
        }
        else {
           toolbarSectionLabel = toolbarSectionName;
        }
        // υπάρχει ήδη το τμήμα; 
        if ( ! existsEditToolbarSection( toolbarSectionName ) ) {
            // δημιουργούμε τμήμα με το ορισμένο όνομα και με ομάδα misc
            var sectionObject = {};
            sectionObject[toolbarSectionName] = { 'type': 'toolbar', 'label': toolbarSectionLabel };
            $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'sections': sectionObject } );
            sectionsInToolbar[sectionsInToolbar.length] = toolbarSectionName;
            groupsInSection[sectionsInToolbar.length - 1] = new Array();
        }
        // υπάρχει η ομάδα μέσα σε αυτό το τμήμα; 
        if (! existsEditToolbarGroup( toolbarSectionName, 'misc' ) ) {
            $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
	        'section': toolbarSectionName,
		'groups': { 'misc': { 'label': 'Διάφορα' } }
	    } );
            addGroupNameToSectionNameList(toolbarSectionName,'misc');
        }
	$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
		'section': toolbarSectionName, 'group': 'misc',
		'tools': {
			'category': {
				label: speedTip, type: 'button',
				icon: imageFile,
				action: { type: 'encapsulate',
					options: { pre: textToEnter }
				}
			}
		}
	} );
    }
}

mw.loader.load("//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-contribsrange.js&action=raw&ctype=text/javascript") ;
//</nowiki>