MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
K |
||
Zeile 42: | Zeile 42: | ||
if (wgAction=='edit') { | if (wgAction=='edit') { | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/bg/no.gif", |
"speedTip": "", | "speedTip": "", | ||
"tagOpen": "", | "tagOpen": "", | ||
Zeile 48: | Zeile 48: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/ndash.jpg", |
"speedTip": "kurzer Bindestrich (n–dash)", | "speedTip": "kurzer Bindestrich (n–dash)", | ||
"tagOpen": "–", | "tagOpen": "–", | ||
Zeile 54: | Zeile 54: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/mdash.jpg", |
"speedTip": "Text zwischen langen Bindestrichen (m—dash)", | "speedTip": "Text zwischen langen Bindestrichen (m—dash)", | ||
"tagOpen": "— ", | "tagOpen": "— ", | ||
Zeile 60: | Zeile 60: | ||
"sampleText": "Text"}; | "sampleText": "Text"}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/hyphens1_dt.jpg", |
"speedTip": "dt. Anführungszeichen einfach", | "speedTip": "dt. Anführungszeichen einfach", | ||
"tagOpen": "‚", | "tagOpen": "‚", | ||
Zeile 66: | Zeile 66: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/hyphens2_dt.jpg", |
"speedTip": "dt. Anführungszeichen doppelt", | "speedTip": "dt. Anführungszeichen doppelt", | ||
"tagOpen": "„", | "tagOpen": "„", | ||
Zeile 72: | Zeile 72: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/oo.jpg", |
"speedTip": "langes o, klein", | "speedTip": "langes o, klein", | ||
"tagOpen": "ō", | "tagOpen": "ō", | ||
Zeile 78: | Zeile 78: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/oo_gr.jpg", |
"speedTip": "langes O, gross", | "speedTip": "langes O, gross", | ||
"tagOpen": "Ō", | "tagOpen": "Ō", | ||
Zeile 84: | Zeile 84: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/uu.jpg", |
"speedTip": "langes u, klein", | "speedTip": "langes u, klein", | ||
"tagOpen": "ū", | "tagOpen": "ū", | ||
Zeile 90: | Zeile 90: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/uu_gr.jpg", |
"speedTip": "langes U, gross", | "speedTip": "langes U, gross", | ||
"tagOpen": "Ū", | "tagOpen": "Ū", | ||
Zeile 96: | Zeile 96: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/shy.jpg", |
"speedTip": "stummes Trennzeichen", | "speedTip": "stummes Trennzeichen", | ||
"tagOpen": "·", | "tagOpen": "·", | ||
Zeile 102: | Zeile 102: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/nbsp.jpg", |
"speedTip": "festes Leerzeichen (no breaking space)", | "speedTip": "festes Leerzeichen (no breaking space)", | ||
"tagOpen": " ", | "tagOpen": " ", | ||
Zeile 108: | Zeile 108: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/bg/no.gif", |
"speedTip": "", | "speedTip": "", | ||
"tagOpen": "", | "tagOpen": "", | ||
Zeile 114: | Zeile 114: | ||
"sampleText": ""}; | "sampleText": ""}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/ref.jpg", |
"speedTip": "Fussnoten", | "speedTip": "Fussnoten", | ||
"tagOpen": "<ref>", | "tagOpen": "<ref>", | ||
Zeile 120: | Zeile 120: | ||
"sampleText": "Text"}; | "sampleText": "Text"}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/cat.jpg", |
"speedTip": "Kategorie", | "speedTip": "Kategorie", | ||
"tagOpen": "[[Kategorie:", | "tagOpen": "[[Kategorie:", | ||
Zeile 126: | Zeile 126: | ||
"sampleText": " "}; | "sampleText": " "}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/glo.jpg", |
"speedTip": "Glossar", | "speedTip": "Glossar", | ||
"tagOpen": "{{glossar:", | "tagOpen": "{{glossar:", | ||
Zeile 132: | Zeile 132: | ||
"sampleText": " "}; | "sampleText": " "}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/skt.jpg", |
"speedTip": "Sanskrit", | "speedTip": "Sanskrit", | ||
"tagOpen": "{{skt:", | "tagOpen": "{{skt:", | ||
Zeile 138: | Zeile 138: | ||
"sampleText": " "}; | "sampleText": " "}; | ||
mwCustomEditButtons[mwCustomEditButtons.length] = | mwCustomEditButtons[mwCustomEditButtons.length] = | ||
− | {"imageFile": "/rel_jap/ | + | {"imageFile": "/rel_jap/wikibilder/shy.jpg", |
"speedTip": "TITEL", | "speedTip": "TITEL", | ||
"tagOpen": "{{DISPLAYTITLE:", | "tagOpen": "{{DISPLAYTITLE:", |
Version vom 8. Januar 2012, 23:46 Uhr
for (i in wgUserGroups)
if (wgUserGroups[i] == 'sysop')
var sysopRights = true;
/***********************************
Stylesheet changes
***********************************/
document.write (
'<style>' +
' #nv.fixed {}' + //0
' .glossar2:hover small small {}' + //1
' </style>'
);
var newCSS = document.styleSheets[document.styleSheets.length-1],
newRules = newCSS.cssRules || newCSS.rules; // für alle Browser ansprechbar
/***********************************
IMPORT
***********************************/
//wenn css:styles...
for (i in wgCategories) {
if (wgCategories[i]=='Styles') {
/*** NAVIGATION ***/
importScript('mediawiki:navigation.js');
/*** LAYOUT ***/
importScript('mediawiki:layout.js');
/*** GLOSSAR ***/
importScript('mediawiki:glossar.js');
/*** POPUPS ***/
importScript('mediawiki:popup.js');
}
}
/*** EDIT GADGETS ***/
if (wgAction=='edit') {
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/bg/no.gif",
"speedTip": "",
"tagOpen": "",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/ndash.jpg",
"speedTip": "kurzer Bindestrich (n–dash)",
"tagOpen": "–",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/mdash.jpg",
"speedTip": "Text zwischen langen Bindestrichen (m—dash)",
"tagOpen": "— ",
"tagClose": " — ",
"sampleText": "Text"};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/hyphens1_dt.jpg",
"speedTip": "dt. Anführungszeichen einfach",
"tagOpen": "‚",
"tagClose": "‘",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/hyphens2_dt.jpg",
"speedTip": "dt. Anführungszeichen doppelt",
"tagOpen": "„",
"tagClose": "“",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/oo.jpg",
"speedTip": "langes o, klein",
"tagOpen": "ō",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/oo_gr.jpg",
"speedTip": "langes O, gross",
"tagOpen": "Ō",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/uu.jpg",
"speedTip": "langes u, klein",
"tagOpen": "ū",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/uu_gr.jpg",
"speedTip": "langes U, gross",
"tagOpen": "Ū",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/shy.jpg",
"speedTip": "stummes Trennzeichen",
"tagOpen": "·",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/nbsp.jpg",
"speedTip": "festes Leerzeichen (no breaking space)",
"tagOpen": " ",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/bg/no.gif",
"speedTip": "",
"tagOpen": "",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/ref.jpg",
"speedTip": "Fussnoten",
"tagOpen": "<ref>",
"tagClose": "</ref>",
"sampleText": "Text"};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/cat.jpg",
"speedTip": "Kategorie",
"tagOpen": "[[Kategorie:",
"tagClose": "]]",
"sampleText": " "};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/glo.jpg",
"speedTip": "Glossar",
"tagOpen": "{{glossar:",
"tagClose": "}}",
"sampleText": " "};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/skt.jpg",
"speedTip": "Sanskrit",
"tagOpen": "{{skt:",
"tagClose": "}}",
"sampleText": " "};
mwCustomEditButtons[mwCustomEditButtons.length] =
{"imageFile": "/rel_jap/wikibilder/shy.jpg",
"speedTip": "TITEL",
"tagOpen": "{{DISPLAYTITLE:",
"tagClose": "\}\}<!--\n\n-->",
"sampleText": " "};
importScript('mediawiki:edit.js');
}