MediaWiki:Edittools.js

From Wikivoyage association
Revision as of 10:26, 14 November 2010 by RolandUnger (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Clear the cache in Tools → Preferences
 // Optionen für das Sonderzeichenmenü in [[MediaWiki:Edittools]]
 // wird in [[MediaWiki:Common.js]] eingebunden
 // Quelle: http://de.wikipedia.org/wiki/MediaWiki:Onlyifediting.js
 // Lizenz: GNU-Lizenz für freie Dokumentation
 
 function addCharSubsetMenu() {
  var specialchars = document.getElementById('specialchars');
 
  if (specialchars) {
   var menu = "<select style=\"display:inline\" onChange=\"chooseCharSubset(selectedIndex)\">";
   menu += "<option>Standard</option>";
   menu += "<option>WikiSyntax</option>";
   menu += "<option>Wikivoyage</option>";
   menu += "<option>IPA-Lautschrift</option>";
   menu += "<option>Lateinisch</option>";
   menu += "<option>Arabisch</option>";
   menu += "<option>Birmanisch</option>";
   menu += "<option>DMG-Umschrift</option>";
   menu += "<option>Esperanto</option>";
   menu += "<option>Estnisch</option>";
   menu += "<option>Französisch</option>";
   menu += "<option>Galizisch</option>";
   menu += "<option>Griechisch</option>";
   menu += "<option>Hawaiianisch</option>";
   menu += "<option>Hebräisch</option>";
   menu += "<option>Isländisch</option>";
   menu += "<option>Italienisch</option>";
   menu += "<option>Jiddisch</option>";
   menu += "<option>Katalanisch</option>";
   menu += "<option>Khmer</option>";
   menu += "<option>Kroatisch</option>";
   menu += "<option>Kyrillisch</option>";
   menu += "<option>Lettisch</option>";
   menu += "<option>Litauisch</option>";
   menu += "<option>Maltesisch</option>";
   menu += "<option>Pinyin</option>";
   menu += "<option>Polnisch</option>";
   menu += "<option>Portugiesisch</option>";
   menu += "<option>Romanisch</option>";
   menu += "<option>Rumänisch</option>";
   menu += "<option>Serbisch</option>";
   menu += "<option>Skandinavisch</option>";
   menu += "<option>Slowakisch</option>";
   menu += "<option>Spanisch</option>";
   menu += "<option>Tschechisch</option>";
   menu += "<option>Türkisch</option>";
   menu += "<option>Ungarisch</option>";
   menu += "<option>Vietnamesisch</option>";
   menu += "</select>";
   specialchars.innerHTML = menu + specialchars.innerHTML;
 
 // Standard-CharSubset
    chooseCharSubset(0);
   }
 }
 
 // CharSubset-Auswahl
 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';
   }
 }
 
 addOnloadHook(addCharSubsetMenu);
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox