Difference between revisions 6489 and 6490 on bswikibooks/* </pre> ==LinkFA== <pre> */ function LinkFA() { // iterate over all <span>-elements for(var i=0; a = document.getElementsByTagName("span")[i]; i++) { // if found a FA span if(a.className == "FA") { (contracted; show full) /* </pre> ===addEditButton=== <pre> */ //The cleaner way to add an editbar button. function addEditButton( imageFile, tagOpen, sampleText, tagClose, speedTip) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/" + imageFile, "tagOpen": tagOpen, "sampleText": sampleText, "tagClose": tagClose, "speedTip": speedTip }; } /* </pre> ====addEditButtons==== <pre> */ //Don't wait for onload for adding the mwCustom buttons...build this table before the page loads, so wikibits.js knows to display them. addEditButton( 'commons/3/30/Btn_toolbar_rayer.png', '<s>', 'Prekriži', '</s>', 'Prekriži'); addEditButton( 'commons/8/88/Btn_toolbar_enum.png', '# ', '1', '\n# 2\n# 3', 'Numerisana lista'); addEditButton( 'commons/1/11/Btn_toolbar_liste.png', '* ', 'A', '\n* B\n* C', 'Lista'); addEditButton( 'commons/9/9e/Btn_toolbar_gallery.png', '\n<gallery>\n', 'Image:Vista-openbsd.png|Opis', '\nImage:AMule.png|Opis\nImage:Cyberduck ' + 'icon.png|Opis\n</gallery>', 'Galerija'); addEditButton( 'commons/3/37/Btn_toolbar_commentaire.png', '<!--', 'Komentar', '-->', 'Komentar'); addEditButton( 'en/c/c8/Button_redirect.png', '#REDIRECT [[', '{{subst:lcfirst:{{PAGENAME}}}}', ']]', 'Cilj preusmjeravanja'); addEditButton( 'en/5/5f/Button_center.png', '<center>', 'primjer', '</center>', 'Centrirani tekst'); addEditButton( 'en/e/e9/Button_headline2.png', '\n===', 'Drugi podnaslov', '===', 'Drugi podnaslov'); addEditButton( 'en/8/8e/Button_shifting.png', ':', 'Pomakni u desno', ':', 'Pomakni u desno'); addEditButton( 'en/5/58/Button_small.png', '<small>', 'Smanjen tekst', '</small>', 'Smanjen tekst'); addEditButton( 'en/8/80/Button_upper_letter.png', '<sup>', 'Faktor tekst', '</sup>', 'Faktor'); addEditButton( 'en/9/93/Button_sub_link.png', '[[Stranica#', 'Podnaslov', ']]', 'Podnaslov'); addEditButton( 'en/f/fd/Button_blockquote.png', '<blockquote style="border: 1px solid blue; padding: ' + '2em;">\n', 'primjer', '\n</blockquote>', 'Citat u okviru'); //addEditButton( 'en/1/13/Button_enter.png', '<br />', '', '', // 'Novi red');){} /* </pre> ===bsImprovedToolbar=== <pre> */ //============================================================ (contracted; show full)<pre> */ //Sakrij "Početna strana" naslov var isDiff = mw.util.getParamValue('diff') || mw.util.getParamValue('oldid'); if (mw.config.get('wgIsMainPage') && !isDiff) mw.util.addCSS('#lastmod, #siteSub, #contentSub, h1.firstHeading { display: none !important; }'); /* </pre> */ All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://bs.wikibooks.org/w/index.php?diff=prev&oldid=6490.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|