User:Rocket000/customEditButtons.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
mNo edit summary |
No edit summary |
||
(45 intermediate revisions by the same user not shown) | |||
Line 1:
// <nowiki>
if(mwCustomEditButtons) {
var g = wgTitle.split(' ')[0];
mwCustomEditButtons[mwCustomEditButtons.length] = {▼
var s = wgTitle.split(' ')[1];
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_font_color.png",▼
if(s != undefined) s1 = '|'+s; else s1 = '';
"speedTip": "Colored text",▼
if(s != undefined) s2 = '\n|species='+s; else s2 = '';
"tagClose": "</span>",▼
"sampleText": ""};▼
mwCustomEditButtons[mwCustomEditButtons.length] = {
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
};
▲ mwCustomEditButtons[mwCustomEditButtons.length] = {
▲
'speedTip': 'unsigned',
'tagOpen': '{{Unsigned|1=|2=',
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/c/c0/Knop_onzijdig.png',
'speedTip': 'VN',
'tagOpen': '{{VN\n|en=',
'tagClose': '\n}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/97/Button_S_italic.png',
'tagOpen': "{{SN\n|''",
'tagClose': '\n}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/c/c2/Button_L.png',
'speedTip': '{{Lepidoptera}}',
'tagOpen': '{{Lepidoptera\n|familia=\n|subfamilia=\n|tribus=\n',
'tagClose': '',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/5/58/Button_C.png',
'speedTip': '{{Coleoptera}}',
'tagOpen': '{{Coleoptera\n|familia=\n|subfamilia=\n',
'tagClose': '',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png',
'speedTip': 'Bottom half of custom taxo templates',
'tagOpen': '|species='+wgTitle+'\n|auth=',
'tagClose': '\n}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png',
'speedTip': 'Bottom half of custom taxo templates',
'tagOpen': '|genus='+g+s2+'\n|auth=',
'tagClose': '\n}}',
'sampleText': ''
};
}
// </nowiki>▼
▲//</nowiki>
|
Latest revision as of 03:37, 10 July 2012
// <nowiki>
if(mwCustomEditButtons) {
var g = wgTitle.split(' ')[0];
var s = wgTitle.split(' ')[1];
if(s != undefined) s1 = '|'+s; else s1 = '';
if(s != undefined) s2 = '\n|species='+s; else s2 = '';
mwCustomEditButtons[mwCustomEditButtons.length] = {
'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[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/f/ff/Button_arrow_right.png',
'speedTip': 'move cat',
'tagOpen': '{{move cat|',
'tagClose': '|}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_category02.png',
'speedTip': 'Species category',
'tagOpen': '[[Category:'+g+s1+']]',
'tagClose': '',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/2/26/Button_plainlinks.png',
'speedTip': 'Plainlinks',
'tagOpen': '<span class="plainlinks">',
'tagClose': '</span>',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'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[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/4/49/Button_br_2.png',
'speedTip': 'Line break',
'tagOpen': '<br/>',
'tagClose': '',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_sig.png',
'speedTip': 'unsigned',
'tagOpen': '{{Unsigned|1=|2=',
'tagClose': '|3=}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/c/c0/Knop_onzijdig.png',
'speedTip': 'VN',
'tagOpen': '{{VN\n|en=',
'tagClose': '\n}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/97/Button_S_italic.png',
'speedTip': 'Start SN',
'tagOpen': "{{SN\n|''",
'tagClose': '\n}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/c/c2/Button_L.png',
'speedTip': '{{Lepidoptera}}',
'tagOpen': '{{Lepidoptera\n|familia=\n|subfamilia=\n|tribus=\n',
'tagClose': '',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/5/58/Button_C.png',
'speedTip': '{{Coleoptera}}',
'tagOpen': '{{Coleoptera\n|familia=\n|subfamilia=\n',
'tagClose': '',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png',
'speedTip': 'Bottom half of custom taxo templates',
'tagOpen': '|species='+wgTitle+'\n|auth=',
'tagClose': '\n}}',
'sampleText': ''
};
mwCustomEditButtons[mwCustomEditButtons.length] = {
'imageFile': 'http://upload.wikimedia.org/wikipedia/commons/9/97/Template_button.png',
'speedTip': 'Bottom half of custom taxo templates',
'tagOpen': '|genus='+g+s2+'\n|auth=',
'tagClose': '\n}}',
'sampleText': ''
};
}
// </nowiki>