User:Rocket000/customEditButtons.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
←Replaced page with 'importScript('http://commons.wikimedia.org/w/index.php?title=User:Rocket000/customEditButtons.js&oldid=11694550');' |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
// <nowiki> |
|||
importScript('http://commons.wikimedia.org/w/index.php?title=User:Rocket000/customEditButtons.js&oldid=11694550'); |
|||
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> |
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>