User:Rocket000/customEditButtons.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 72: | Line 72: | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", |
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", |
||
"speedTip": "VN (en)", |
"speedTip": "VN (en)", |
||
"tagOpen": "{{VN|en=", |
"tagOpen": "{{VN\n|en=", |
||
"tagClose": "}}", |
"tagClose": "\n}}", |
||
"sampleText": "" |
"sampleText": "" |
||
}); |
}); |
||
Line 88: | Line 88: | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", |
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png", |
||
"speedTip": "Start SN", |
"speedTip": "Start SN", |
||
"tagOpen": "{{SN|''", |
"tagOpen": "{{SN\n|''", |
||
"tagClose": "", |
"tagClose": "\n}}", |
||
"sampleText": "" |
"sampleText": "" |
||
}); |
}); |
||
Line 100: | Line 100: | ||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png", |
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png", |
||
"speedTip": "{{Lepidoptera}}", |
"speedTip": "{{Lepidoptera}}", |
||
"tagOpen": " |
"tagOpen": "{{Lepidoptera\n|familia=", |
||
"tagClose": " |
"tagClose": "\n|subfamilia=\n|tribus=\n", |
||
"sampleText": "" |
"sampleText": "" |
||
}); |
}); |
||
⚫ | |||
mwCustomEditButtons.push({ |
mwCustomEditButtons.push({ |
||
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png", |
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png", |
||
"speedTip": "{{Lepidoptera}}", |
"speedTip": "{{Lepidoptera}}", |
||
"tagOpen": " |
"tagOpen": "|genus="+g+s+"\n|auth=", |
||
"tagClose": " |
"tagClose": "\n}}", |
||
"sampleText": "" |
"sampleText": "" |
||
}); |
}); |
||
⚫ | |||
http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_number_0.png |
http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_number_0.png |
Revision as of 07:31, 4 November 2009
//<nowiki>
function addButton() {
return;
}
if(mwCustomEditButtons) {
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/99/Button_reflink_advanced_2.png",
"speedTip": "Gallery-to-category redirect",
"tagOpen": "#REDIRECT [[:Category:",
"tagClose": "]]",
"sampleText": wgTitle
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/26/Button_plainlinks.png",
"speedTip": "Plainlinks",
"tagOpen": "<span class=\"plainlinks\">",
"tagClose": "</span>",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_font_color.png",
"speedTip": "Colored text",
"tagOpen": "<span style=\"color:#COLOR\">",
"tagClose": "</span>",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png",
"speedTip": "Support",
"tagOpen": "* {{Support}} ",
"tagClose": " ~~~~",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png",
"speedTip": "Oppose",
"tagOpen": "* {{Oppose}} ",
"tagClose": " ~~~~",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4e/Button_neutre.png",
"speedTip": "Neutral",
"tagOpen": "* {{Neutral}} ",
"tagClose": " ~~~~",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_keep.png",
"speedTip": "Keep",
"tagOpen": "* {{vk}} ",
"tagClose": " ~~~~",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/13/Button_delete.png",
"speedTip": "Delete",
"tagOpen": "* {{vd}} ",
"tagClose": " ~~~~",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png",
"speedTip": "VN (en)",
"tagOpen": "{{VN\n|en=",
"tagClose": "\n}}",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4f/Button_template_alt2.png",
"speedTip": "VN",
"tagOpen": "{{VN\n",
"tagClose": "\n}}",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png",
"speedTip": "Start SN",
"tagOpen": "{{SN\n|''",
"tagClose": "\n}}",
"sampleText": ""
});
var g = wgTitle.split(' ')[0];
var s = wgTitle.split(' ')[1];
if(s != undefined) s = '\n|species='+s; else s = '';
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png",
"speedTip": "{{Lepidoptera}}",
"tagOpen": "{{Lepidoptera\n|familia=",
"tagClose": "\n|subfamilia=\n|tribus=\n",
"sampleText": ""
});
mwCustomEditButtons.push({
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png",
"speedTip": "{{Lepidoptera}}",
"tagOpen": "|genus="+g+s+"\n|auth=",
"tagClose": "\n}}",
"sampleText": ""
});
/*
http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_number_0.png
http://upload.wikimedia.org/wikipedia/commons/8/8e/Button_number_1.png
http://upload.wikimedia.org/wikipedia/commons/b/bd/Button_number_2.png
http://upload.wikimedia.org/wikipedia/commons/8/80/Button_number_3.png
*/
}
//</nowiki>