Difference between revisions of "User:Purodha/edit.js"
m (moved User:Purodha/common.css to User:Purodha/common.js) |
|||
| Line 1: | Line 1: | ||
| − | /* | + | // add buttons to the edit page toolbar |
| − | + | if (mwCustomEditButtons) | |
| − | {{Translations| | + | { |
| − | + | function kshCustomEditButtonInsertIndex(offset) | |
| − | }} | + | { |
| − | + | return(offset); | |
| − | { | + | for(var i=mwCustomEditButtons.length; i>offset; --i) |
| − | | source=ksh: | + | { |
| − | }} | + | mwCustomEditButtons[i] = mwCustomEditButtons[i-1] |
| − | + | } | |
| − | + | return(offset) | |
| − | + | } | |
| − | */ | + | // [[Image:Button_underline.png]] |
| + | // mwCustomEditButtons[kshCustomEditButtonInsertIndex(2)] = { | ||
| + | // mwCustomEditButtons[2] = { | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png", | ||
| + | "speedTip": "Ongershtriishe", | ||
| + | "tagOpen": "<u>", | ||
| + | "tagClose": "</u>", | ||
| + | "sampleText": "ongershtreshe"} | ||
| + | |||
| + | // → [[Image:Button_arrow_right.png]] | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png", | ||
| + | "speedTip": "→", | ||
| + | "tagOpen": "→", | ||
| + | "tagClose": "", | ||
| + | "sampleText": "Piel noh Räähß"} | ||
| + | // ↔ [[Image:Button_arrow_horizontal.png]] | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_horizontal.png", | ||
| + | "speedTip": "↔", | ||
| + | "tagOpen": "↔", | ||
| + | "tagClose": "", | ||
| + | "sampleText": "Piel noh Räähß un Lengkß"} | ||
| + | // → [[Image:Button_arrow_left.png]] | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_left.png", | ||
| + | "speedTip": "→", | ||
| + | "tagOpen": "→", | ||
| + | "tagClose": "", | ||
| + | "sampleText": "Piel noh Lengkß"} | ||
| + | // #REDIRECT [[Image:Button_hellip.png]] | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/c/c8/Button_redirect.png", | ||
| + | "speedTip": "Redirect", | ||
| + | "tagOpen": "#REDIRECT [[", | ||
| + | "tagClose": "]]", | ||
| + | "sampleText": "Drei Püngkscher"} | ||
| + | // &nbsp; [[Image:Button nbsp 1.png]] | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/5/55/Button_nbsp_1.png", | ||
| + | "speedTip": "Enne Zwescheroum, dä nėt ed_Äng fun_enne Rëij wääde kann", | ||
| + | "tagOpen": " ", | ||
| + | "tagClose": "", | ||
| + | "sampleText": ""} | ||
| + | /* „“ [[Image:Button_Anführung.png]] */ | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png", | ||
| + | "speedTip": "Anföhronge", | ||
| + | "tagOpen": "„", | ||
| + | "tagClose": "“", | ||
| + | "sampleText": "$1"} | ||
| + | /* „“ [[Image:Button_Anführung.png]] */ | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png", | ||
| + | "speedTip": "Translations", | ||
| + | "tagOpen": "{{Translations|\n articles=ksh:", | ||
| + | "tagClose": "}}", | ||
| + | "sampleText": "$1"} | ||
| + | /* „“ [[Image:Button_Anführung.png]] */ | ||
| + | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
| + | "imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png", | ||
| + | "speedTip": "Translated From", | ||
| + | "tagOpen": "{{Translated From\n | source=ksh:", | ||
| + | "tagClose": "}}", | ||
| + | "sampleText": "$1"} | ||
| + | /* ENDE */ | ||
Revision as of 23:18, 15 October 2010
// add buttons to the edit page toolbar
if (mwCustomEditButtons)
{
function kshCustomEditButtonInsertIndex(offset)
{
return(offset);
for(var i=mwCustomEditButtons.length; i>offset; --i)
{
mwCustomEditButtons[i] = mwCustomEditButtons[i-1]
}
return(offset)
}
// [[Image:Button_underline.png]]
// mwCustomEditButtons[kshCustomEditButtonInsertIndex(2)] = {
// mwCustomEditButtons[2] = {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png",
"speedTip": "Ongershtriishe",
"tagOpen": "<u>",
"tagClose": "</u>",
"sampleText": "ongershtreshe"}
// → [[Image:Button_arrow_right.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png",
"speedTip": "→",
"tagOpen": "→",
"tagClose": "",
"sampleText": "Piel noh Räähß"}
// ↔ [[Image:Button_arrow_horizontal.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_horizontal.png",
"speedTip": "↔",
"tagOpen": "↔",
"tagClose": "",
"sampleText": "Piel noh Räähß un Lengkß"}
// → [[Image:Button_arrow_left.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_left.png",
"speedTip": "→",
"tagOpen": "→",
"tagClose": "",
"sampleText": "Piel noh Lengkß"}
// #REDIRECT [[Image:Button_hellip.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/c/c8/Button_redirect.png",
"speedTip": "Redirect",
"tagOpen": "#REDIRECT [[",
"tagClose": "]]",
"sampleText": "Drei Püngkscher"}
// &nbsp; [[Image:Button nbsp 1.png]]
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/5/55/Button_nbsp_1.png",
"speedTip": "Enne Zwescheroum, dä nėt ed_Äng fun_enne Rëij wääde kann",
"tagOpen": " ",
"tagClose": "",
"sampleText": ""}
/* „“ [[Image:Button_Anführung.png]] */
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png",
"speedTip": "Anföhronge",
"tagOpen": "„",
"tagClose": "“",
"sampleText": "$1"}
/* „“ [[Image:Button_Anführung.png]] */
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png",
"speedTip": "Translations",
"tagOpen": "{{Translations|\n articles=ksh:",
"tagClose": "}}",
"sampleText": "$1"}
/* „“ [[Image:Button_Anführung.png]] */
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile":"http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anführung.png",
"speedTip": "Translated From",
"tagOpen": "{{Translated From\n | source=ksh:",
"tagClose": "}}",
"sampleText": "$1"}
/* ENDE */