// Edition buttons (thank you JackPotte)
$(function() {
if (.indexOf(mw.config.get('wgAction')) == -1)
return;
$.each([
// Format : apply to each buttons
// [
// 'Text to insert before the selection', 'Text to insert after the selection',
// 'Button's image (after « commons/ »)',
// 'Text that appears in the tooltip when the button is browsed',
// 'Image identifier ; low importance, but we must be sure that the identifier is unique, don't change and don't use nor space nor specials characters'
// ],
[
"{{also|}}\n==French==\n\n===Etymology===\nFrom {{suffix|\|\|lang=fr}}.\nFrom {{compound|||t1=|t2=|lang=fr}}.\n\n===Pronunciation===\n* {{IPA||lang=fr}}\n* Homophones: ]\n:* {{rhymes||lang=fr}}\n\n===NounAdjectiveAdverbVerb===\n\'\'\'{{subst:PAGE','NAME}}\'\'\'\{{fr-noun\|m}}{{fr-adj\|f=\}}{{fr-adv\}}\n\n# ]\n#* ''''\n\n====Usage notes====\n====Synonyms====\n====Antonyms====\n====Derived terms====\n====References====\n====External links====\n===Anagrams===",
"",
"a/ae/Button_fr.png",
"French",
""
],
[
"{{also|}}\n==English==\n\n===Etymology===\nFrom {{suffix|||lang=en}}.\n\n===Pronunciation===\n* {{IPA||lang=en}}\n* Homophones: ]\n:* {{rhymes||lang=en}}\n\n===NounAdjectiveAdverbVerb===\n\'\'\'{{subst:PAGE','NAME}}\'\'\'\{{en-noun\}}{{en-adj\}}{{en-adv\}}\n\n# ]\n#* ''''\n\n====Usage notes====\n====Synonyms====\n====Antonyms====\n====Derived terms====\n====Translations====\n====References====\n====External links====\n===Anagrams===",
"",
"3/3f/Button_en.png",
"English",
""
],
[
"{{also|}}\n==Tahitian==\n\n===Etymology===\nFrom {{suffix|||lang=ty}}.\n\n==NounAdjectiveAdverbVerb==\n\'\'\'{{subst:PAGE','NAME}}\'\'\'\n\n# ]\n#* '''' — Author, '''', date\n\n====Usage notes====\n====Synonyms====\n====Antonyms====\n====Derived terms====\n====References====\n* {{R:LTC}}\n* {{R:TahitianAcademy}}",
"",
"d/db/Flag_of_French_Polynesia.svg",
"Tahitian",
""
],
[
"…",
"",
"5/50/Button_hellip.png",
"Points de suspension",
""
],
[
"« ",
" »",
"2/29/Button_double_angle_quotes_with_ellipsis.png",
"Guillemets",
""
],
[
" ",
"",
"6/64/Button_nbsp_bold.png",
" ",
""
],
[
"É",
"",
"e/ea/Button_É.PNG",
"É majuscule",
""
],
[
"Ç",
"",
"5/50/InicialÇ.svg",
"Ç majuscule",
""
],
[
"Æ",
"æ",
"1/1a/Unicode_æ.svg",
"Æ minuscule/majuscule",
""
],
[
"Œ",
"œ",
"1/1e/Button_API_œ.png",
"Œ minuscule/majuscule",
""
],
[
"Ā",
"ā",
"d/d0/Ā_button.png",
"Ā minuscule/majuscule",
""
],
[
"Ē",
"ē",
"8/84/Ē_button.png",
"Ē minuscule/majuscule",
""
],
[
"Ī",
"ī",
"2/29/Ī_button.png",
"Ī minuscule/majuscule",
""
],
[
"Ō",
"ō",
"6/66/Ō_button.png",
"Ō minuscule/majuscule",
""
],
[
"Ū",
"ū",
"8/85/Ū_button.png",
"Ū minuscule/majuscule",
""
],
[
"ſ",
"",
"1/12/Round_s_and_long_s.jpg",
"S long",
""
],
[
"—",
"",
"d/dd/Dash.svg",
"Tiret cadratin",
""
],
[
" ",
"",
"6/64/Button_nbsp_bold.png",
" ",
""
],
[
"{{sense|",
"|lang=fr}}",
"f/fe/Circle_sign_1.svg",
"Sense",
""
],
[
"{{qualifier|",
"|lang=fr}}",
"e/e0/Circle_sign_2.svg",
"Qualifier",
""
],
[
"{{context|",
"|lang=fr}}",
"0/04/Circle_sign_3.svg",
"Context",
""
],
[
"<small>",
"</small>",
"5/58/Button_small.png",
"Petit",
""
],
[
"<s>",
"</s>",
"3/30/Btn_toolbar_rayer.png",
"Rayer",
""
],
[
"#REDIRECT [[",
"]]",
"e/e6/Redirect_arrow.png",
"Redirection",
""
],
], function(_, button) {
mw.toolbar.addButton('//upload.wikimedia.org/wikipedia/commons/' + button, button, button, button, (button ? button : ''), 'mw-editbutton-' + button);
});
});