|
|
| Ред 1: |
Ред 1: |
| /* Јаваскрипт постављен овде ће се користити за све кориснике при отварању сваке странице. */ | | /* JavaScript постављен овде ће се користити за све кориснике при отварању сваке странице. */ |
|
| |
|
| /* Deo koda prekopiran sa Srpske Vikipedije */ | | /* Otvaranje PDF-a u novom tabu – samo za spoljne .pdf linkove (bez globalnog _blank) */ |
| | | mw.hook('wikipage.content').add(function ($content) { |
| | | $content.find('a.external.text').filter(function () { |
| /**
| | const href = this.getAttribute('href') || ''; |
| * Keep code in MediaWiki:Common.js to a minimum as it is unconditionally
| | return /\.pdf(\?|#|$)/i.test(href); |
| * loaded for all users on every wiki page. If possible create a gadget that is
| | }).attr({ target: '_blank', rel: 'noopener' }); |
| * enabled by default instead of adding it here (since gadgets are fully
| |
| * optimized ResourceLoader modules with possibility to add dependencies etc.)
| |
| *
| |
| * Since Common.js isn't a gadget, there is no place to declare its
| |
| * dependencies, so we have to lazy load them with mw.loader.using on demand and
| |
| * then execute the rest in the callback. In most cases these dependencies will
| |
| * be loaded (or loading) already and the callback will not be delayed. In case a
| |
| * dependency hasn't arrived yet it'll make sure those are loaded before this.
| |
| */
| |
| | |
| /* global mw, $ */
| |
| /* jshint strict:false, browser:true */
| |
| | |
| mw.loader.using( ['mediawiki.user', 'mediawiki.util', 'mediawiki.notify', 'jquery.client'] ).done( function () {
| |
| /* Begin of mw.loader.using callback */
| |
| | |
| /**
| |
| * Main Page layout fixes
| |
| *
| |
| * Description: Adds an additional link to the complete list of languages available.
| |
| * Maintainers: [[User:AzaToth]], [[User:R. Koot]], [[User:Alex Smotrov]]
| |
| */
| |
| if ( mw.config.get( 'wgPageName' ) === 'Главна_страна' || mw.config.get( 'wgPageName' ) === 'Разговор:Главна_страна' ) {
| |
| $( function () {
| |
| mw.util.addPortletLink( 'p-lang', '//meta.wikimedia.org/wiki/List_of_Wikipedias',
| |
| 'Сви језици', 'interwiki-completelist', 'Списак свих Википедија' );
| |
| } );
| |
| }
| |
| | |
| /**
| |
| * Redirect User:Name/skin.js and skin.css to the current skin's pages
| |
| * (unless the 'skin' page really exists)
| |
| * @source: http://www.mediawiki.org/wiki/Snippets/Redirect_skin.js
| |
| * @rev: 2
| |
| */
| |
| if ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgNamespaceNumber' ) === 2 ) {
| |
| var titleParts = mw.config.get( 'wgPageName' ).split( '/' );
| |
| /* Make sure there was a part before and after the slash
| |
| and that the latter is 'skin.js' or 'skin.css' */
| |
| if ( titleParts.length == 2 ) {
| |
| var userSkinPage = titleParts.shift() + '/' + mw.config.get( 'skin' );
| |
| if ( titleParts.slice( -1 ) == 'skin.js' ) {
| |
| window.location.href = mw.util.getUrl( userSkinPage + '.js' );
| |
| } else if ( titleParts.slice( -1 ) == 'skin.css' ) {
| |
| window.location.href = mw.util.getUrl( userSkinPage + '.css' );
| |
| }
| |
| }
| |
| }
| |
| | |
| /**
| |
| * Map addPortletLink to mw.util
| |
| * @deprecated: Use mw.util.addPortletLink instead.
| |
| */
| |
| mw.log.deprecate( window, 'addPortletLink', mw.util.addPortletLink, 'Use mw.util.addPortletLink instead' ); | |
| | |
| /**
| |
| * Extract a URL parameter from the current URL
| |
| * @deprecated: Use mw.util.getParamValue with proper escaping
| |
| */
| |
| mw.log.deprecate( window, 'getURLParamValue', mw.util.getParamValue, 'Use mw.util.getParamValue instead' );
| |
| | |
| /**
| |
| * Test if an element has a certain class
| |
| * @deprecated: Use $(element).hasClass() instead.
| |
| */
| |
| mw.log.deprecate( window, 'hasClass', function ( element, className ) {
| |
| return $( element ).hasClass( className );
| |
| }, 'Use jQuery.hasClass() instead' );
| |
| | |
| /**
| |
| * @source www.mediawiki.org/wiki/Snippets/Load_JS_and_CSS_by_URL
| |
| * @rev 6
| |
| */
| |
| var extraCSS = mw.util.getParamValue( 'withCSS' ),
| |
| extraJS = mw.util.getParamValue( 'withJS' );
| |
| | |
| if ( extraCSS ) {
| |
| if ( extraCSS.match( /^MediaWiki:[^&<>=%#]*\.css$/ ) ) {
| |
| mw.loader.load( '/w/index.php?title=' + extraCSS + '&action=raw&ctype=text/css', 'text/css' );
| |
| } else {
| |
| mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withCSS value' } );
| |
| }
| |
| }
| |
| | |
| if ( extraJS ) {
| |
| if ( extraJS.match( /^MediaWiki:[^&<>=%#]*\.js$/ ) ) {
| |
| mw.loader.load( '/w/index.php?title=' + extraJS + '&action=raw&ctype=text/javascript' );
| |
| } else {
| |
| mw.notify( 'Only pages from the MediaWiki namespace are allowed.', { title: 'Invalid withJS value' } );
| |
| }
| |
| }
| |
| | |
| /**
| |
| * WikiMiniAtlas
| |
| *
| |
| * Description: WikiMiniAtlas is a popup click and drag world map.
| |
| * This script causes all of our coordinate links to display the WikiMiniAtlas popup button.
| |
| * The script itself is located on meta because it is used by many projects.
| |
| * See [[Meta:WikiMiniAtlas]] for more information.
| |
| * Maintainers: [[User:Dschwen]]
| |
| */
| |
| ( function () {
| |
| var require_wikiminiatlas = false;
| |
| var coord_filter = /geohack/;
| |
| $( function () {
| |
| $( 'a.external.text' ).each( function( key, link ) {
| |
| if ( link.href && coord_filter.exec( link.href ) ) {
| |
| require_wikiminiatlas = true;
| |
| // break from loop
| |
| return false;
| |
| }
| |
| } );
| |
| if ( $( 'div.kmldata' ).length ) {
| |
| require_wikiminiatlas = true;
| |
| }
| |
| if ( require_wikiminiatlas ) {
| |
| mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript' );
| |
| }
| |
| } );
| |
| } )();
| |
| | |
| /**
| |
| * Collapsible tables
| |
| *
| |
| * Allows tables to be collapsed, showing only the header. See [[Help:Collapsing]].
| |
| *
| |
| * @version 2.0.3 (2014-03-14)
| |
| * @source https://www.mediawiki.org/wiki/MediaWiki:Gadget-collapsibleTables.js
| |
| * @author [[User:R. Koot]]
| |
| * @author [[User:Krinkle]]
| |
| * @deprecated Since MediaWiki 1.20: Use class="mw-collapsible" instead which
| |
| * is supported in MediaWiki core.
| |
| */
| |
| | |
| var autoCollapse = 2;
| |
| var collapseCaption = 'сакриј';
| |
| var expandCaption = 'прикажи';
| |
| var tableIndex = 0;
| |
| | |
| function collapseTable( tableIndex ) {
| |
| var Button = document.getElementById( 'collapseButton' + tableIndex );
| |
| var Table = document.getElementById( 'collapsibleTable' + tableIndex );
| |
| | |
| if ( !Table || !Button ) {
| |
| return false;
| |
| }
| |
| | |
| var Rows = Table.rows;
| |
| var i;
| |
| var $row0 = $(Rows[0]);
| |
| | |
| if ( Button.firstChild.data === collapseCaption ) {
| |
| for ( i = 1; i < Rows.length; i++ ) {
| |
| Rows[i].style.display = 'none';
| |
| }
| |
| Button.firstChild.data = expandCaption;
| |
| } else {
| |
| for ( i = 1; i < Rows.length; i++ ) {
| |
| Rows[i].style.display = $row0.css( 'display' );
| |
| }
| |
| Button.firstChild.data = collapseCaption;
| |
| }
| |
| }
| |
| | |
| function createClickHandler( tableIndex ) {
| |
| return function ( e ) {
| |
| e.preventDefault();
| |
| collapseTable( tableIndex );
| |
| };
| |
| }
| |
| | |
| function createCollapseButtons( $content ) {
| |
| var NavigationBoxes = {};
| |
| var $Tables = $content.find( 'table' );
| |
| var i;
| |
| | |
| $Tables.each( function( i, table ) {
| |
| if ( $(table).hasClass( 'collapsible' ) ) {
| |
| | |
| /* only add button and increment count if there is a header row to work with */
| |
| var HeaderRow = table.getElementsByTagName( 'tr' )[0];
| |
| if ( !HeaderRow ) {
| |
| return;
| |
| }
| |
| var Header = table.getElementsByTagName( 'th' )[0];
| |
| if ( !Header ) {
| |
| return;
| |
| }
| |
| | |
| NavigationBoxes[ tableIndex ] = table;
| |
| table.setAttribute( 'id', 'collapsibleTable' + tableIndex );
| |
| | |
| var Button = document.createElement( 'span' );
| |
| var ButtonLink = document.createElement( 'a' );
| |
| var ButtonText = document.createTextNode( collapseCaption );
| |
| // Styles are declared in [[MediaWiki:Common.css]]
| |
| Button.className = 'collapseButton';
| |
| | |
| ButtonLink.style.color = Header.style.color;
| |
| ButtonLink.setAttribute( 'id', 'collapseButton' + tableIndex );
| |
| ButtonLink.setAttribute( 'href', '#' );
| |
| $( ButtonLink ).on( 'click', createClickHandler( tableIndex ) );
| |
| ButtonLink.appendChild( ButtonText );
| |
| | |
| Button.appendChild( document.createTextNode( '[' ) );
| |
| Button.appendChild( ButtonLink );
| |
| Button.appendChild( document.createTextNode( ']' ) );
| |
| | |
| Header.insertBefore( Button, Header.firstChild );
| |
| tableIndex++;
| |
| }
| |
| } );
| |
| | |
| for ( i = 0; i < tableIndex; i++ ) {
| |
| if ( $( NavigationBoxes[i] ).hasClass( 'collapsed' ) ||
| |
| ( tableIndex >= autoCollapse && $( NavigationBoxes[i] ).hasClass( 'autocollapse' ) )
| |
| ) {
| |
| collapseTable( i );
| |
| }
| |
| else if ( $( NavigationBoxes[i] ).hasClass ( 'innercollapse' ) ) {
| |
| var element = NavigationBoxes[i];
| |
| while ((element = element.parentNode)) {
| |
| if ( $( element ).hasClass( 'outercollapse' ) ) {
| |
| collapseTable ( i );
| |
| break;
| |
| }
| |
| }
| |
| }
| |
| } | |
| }
| |
| | |
| mw.hook( 'wikipage.content' ).add( createCollapseButtons );
| |
| | |
| /**
| |
| * Dynamic Navigation Bars (experimental)
| |
| *
| |
| * Description: See [[Wikipedia:NavFrame]].
| |
| * Maintainers: UNMAINTAINED
| |
| */
| |
| | |
| /* set up the words in your language */
| |
| var NavigationBarHide = '[' + collapseCaption + ']';
| |
| var NavigationBarShow = '[' + expandCaption + ']';
| |
| var indexNavigationBar = 0;
| |
| | |
| /**
| |
| * Shows and hides content and picture (if available) of navigation bars
| |
| * Parameters:
| |
| * indexNavigationBar: the index of navigation bar to be toggled
| |
| **/
| |
| window.toggleNavigationBar = function ( indexNavigationBar, event ) {
| |
| var NavToggle = document.getElementById( 'NavToggle' + indexNavigationBar );
| |
| var NavFrame = document.getElementById( 'NavFrame' + indexNavigationBar );
| |
| var NavChild;
| |
| | |
| if ( !NavFrame || !NavToggle ) {
| |
| return false;
| |
| }
| |
| | |
| /* if shown now */
| |
| if ( NavToggle.firstChild.data === NavigationBarHide ) {
| |
| for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
| |
| if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) {
| |
| NavChild.style.display = 'none';
| |
| }
| |
| }
| |
| NavToggle.firstChild.data = NavigationBarShow;
| |
| | |
| /* if hidden now */
| |
| } else if ( NavToggle.firstChild.data === NavigationBarShow ) {
| |
| for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
| |
| if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) {
| |
| NavChild.style.display = 'block';
| |
| }
| |
| }
| |
| NavToggle.firstChild.data = NavigationBarHide;
| |
| }
| |
| | |
| event.preventDefault();
| |
| };
| |
| | |
| /* adds show/hide-button to navigation bars */
| |
| function createNavigationBarToggleButton( $content ) {
| |
| var NavChild;
| |
| /* iterate over all < div >-elements */
| |
| var $divs = $content.find( 'div' );
| |
| $divs.each( function ( i, NavFrame ) {
| |
| /* if found a navigation bar */
| |
| if ( $( NavFrame ).hasClass( 'NavFrame' ) ) {
| |
| | |
| indexNavigationBar++;
| |
| var NavToggle = document.createElement( 'a' );
| |
| NavToggle.className = 'NavToggle';
| |
| NavToggle.setAttribute( 'id', 'NavToggle' + indexNavigationBar );
| |
| NavToggle.setAttribute( 'href', '#' );
| |
| $( NavToggle ).on( 'click', $.proxy( window.toggleNavigationBar, window, indexNavigationBar ) );
| |
| | |
| var isCollapsed = $( NavFrame ).hasClass( 'collapsed' );
| |
| /**
| |
| * Check if any children are already hidden. This loop is here for backwards compatibility:
| |
| * the old way of making NavFrames start out collapsed was to manually add style="display:none"
| |
| * to all the NavPic/NavContent elements. Since this was bad for accessibility (no way to make
| |
| * the content visible without JavaScript support), the new recommended way is to add the class
| |
| * "collapsed" to the NavFrame itself, just like with collapsible tables.
| |
| */
| |
| for ( NavChild = NavFrame.firstChild; NavChild != null && !isCollapsed; NavChild = NavChild.nextSibling ) {
| |
| if ( $( NavChild ).hasClass( 'NavPic' ) || $( NavChild ).hasClass( 'NavContent' ) ) {
| |
| if ( NavChild.style.display === 'none' ) {
| |
| isCollapsed = true;
| |
| }
| |
| }
| |
| }
| |
| if ( isCollapsed ) {
| |
| for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) {
| |
| if ( $( NavChild ).hasClass( 'NavPic' ) || $( NavChild ).hasClass( 'NavContent' ) ) {
| |
| NavChild.style.display = 'none';
| |
| }
| |
| }
| |
| }
| |
| var NavToggleText = document.createTextNode( isCollapsed ? NavigationBarShow : NavigationBarHide );
| |
| NavToggle.appendChild( NavToggleText );
| |
| | |
| /* Find the NavHead and attach the toggle link (Must be this complicated because Moz's firstChild handling is borked) */
| |
| for( var j = 0; j < NavFrame.childNodes.length; j++ ) {
| |
| if ( $( NavFrame.childNodes[j] ).hasClass( 'NavHead' ) ) {
| |
| NavToggle.style.color = NavFrame.childNodes[j].style.color;
| |
| NavFrame.childNodes[j].appendChild( NavToggle );
| |
| }
| |
| }
| |
| NavFrame.setAttribute( 'id', 'NavFrame' + indexNavigationBar );
| |
| }
| |
| } );
| |
| }
| |
| | |
| mw.hook( 'wikipage.content' ).add( createNavigationBarToggleButton );
| |
| | |
| /**
| |
| * Uploadwizard_newusers
| |
| * Switches in a message for non-autoconfirmed users at [[Wikipedia:Upload]]
| |
| *
| |
| * Maintainers: [[User:Krimpet]]
| |
| */
| |
| function uploadwizard_newusers() {
| |
| if ( mw.config.get( 'wgNamespaceNumber' ) === 4 && mw.config.get( 'wgTitle' ) === 'Upload' && mw.config.get( 'wgAction' ) === 'view' ) {
| |
| var oldDiv = document.getElementById( 'autoconfirmedusers' ),
| |
| newDiv = document.getElementById( 'newusers' );
| |
| if ( oldDiv && newDiv ) {
| |
| var userGroups = mw.config.get( 'wgUserGroups' );
| |
| if ( userGroups ) {
| |
| for ( var i = 0; i < userGroups.length; i++ ) {
| |
| if ( userGroups[i] === 'autoconfirmed' ) {
| |
| oldDiv.style.display = 'block';
| |
| newDiv.style.display = 'none';
| |
| return;
| |
| }
| |
| }
| |
| }
| |
| oldDiv.style.display = 'none';
| |
| newDiv.style.display = 'block';
| |
| return;
| |
| }
| |
| }
| |
| }
| |
| | |
| $(uploadwizard_newusers);
| |
| | |
| /**
| |
| * Magic editintros ****************************************************
| |
| *
| |
| * Description: Adds editintros on disambiguation pages and BLP pages.
| |
| * Maintainers: [[User:RockMFR]]
| |
| */
| |
| function addEditIntro( name ) {
| |
| $( '.mw-editsection, #ca-edit' ).find( 'a' ).each( function ( i, el ) {
| |
| el.href = $( this ).attr( 'href' ) + '&editintro=' + name;
| |
| } );
| |
| }
| |
| | |
| if ( mw.config.get( 'wgNamespaceNumber' ) === 0 ) {
| |
| $( function () {
| |
| if ( document.getElementById( 'disambigbox' ) ) {
| |
| addEditIntro( 'Template:Disambig_editintro' );
| |
| }
| |
| } );
| |
| | |
| $( function () {
| |
| var cats = mw.config.get('wgCategories');
| |
| if ( !cats ) {
| |
| return;
| |
| }
| |
| if ( $.inArray( 'Живи људи', cats ) !== -1 || $.inArray( 'Могуће живи људи', cats ) !== -1 ) {
| |
| addEditIntro( 'Template:BLP_editintro' );
| |
| }
| |
| } );
| |
| }
| |
| | |
| /* End of mw.loader.using callback */
| |
| } ); | |
| | |
| // Correct sorting order for the Serbian alphabet (Cyrillic and Latin) for sortable tables
| |
| // (class="sortable").
| |
| //
| |
| // Map Cyrillic alphabet characters to (entirely unrelated) ones from ASCII which will be sorted in
| |
| // the right order. The leading '~' is to ensure that all Cyrillic text is after Latin text ('~' is
| |
| // the last character in ASCII).
| |
| //
| |
| // https://en.wikipedia.org/wiki/ASCII#Code_chart
| |
| mw.config.set('tableSorterCollation', {
| |
| 'č':'czz', 'Č':'CZZ',
| |
| 'ć':'czzz', 'Ć':'CZZZ',
| |
| 'dž':'dzz', 'Dž':'Dzz', 'dŽ':'dZZ', 'DŽ':'DZZ',
| |
| 'đ':'dzzz', 'Đ':'DZZZ',
| |
| 'lj':'lzz', 'Lj':'Lzz', 'lJ':'lZZ', 'LJ':'LZZ',
| |
| 'nj':'nzz', 'Nj':'Nzz', 'nJ':'nZZ', 'NJ':'NZZ',
| |
| 'š':'szz', 'Š':'SZZ',
| |
| 'ž':'zzz', 'Ž':'ZZZ',
| |
| 'А': '~A', 'а': '~a',
| |
| 'Б': '~B', 'б': '~b',
| |
| 'В': '~C', 'в': '~c',
| |
| 'Г': '~D', 'г': '~d',
| |
| 'Д': '~E', 'д': '~e',
| |
| 'Ђ': '~F', 'ђ': '~f',
| |
| 'Е': '~G', 'е': '~g',
| |
| 'Ж': '~H', 'ж': '~h',
| |
| 'З': '~I', 'з': '~i',
| |
| 'И': '~J', 'и': '~j',
| |
| 'Ј': '~K', 'ј': '~k',
| |
| 'К': '~L', 'к': '~l',
| |
| 'Л': '~M', 'л': '~m',
| |
| 'Љ': '~N', 'љ': '~n',
| |
| 'М': '~O', 'м': '~o',
| |
| 'Н': '~P', 'н': '~p',
| |
| 'Њ': '~Q', 'њ': '~q',
| |
| 'О': '~R', 'о': '~r',
| |
| 'П': '~S', 'п': '~s',
| |
| 'Р': '~T', 'р': '~t',
| |
| 'С': '~U', 'с': '~u',
| |
| 'Т': '~V', 'т': '~v',
| |
| 'Ћ': '~W', 'ћ': '~w',
| |
| 'У': '~X', 'у': '~x',
| |
| 'Ф': '~Y', 'ф': '~y',
| |
| 'Х': '~Z', 'х': '~z',
| |
| 'Ц': '~[', 'ц': '~{',
| |
| 'Ч': '~\\', 'ч': '~|',
| |
| 'Џ': '~]', 'џ': '~}',
| |
| 'Ш': '~^', 'ш': '~~'
| |
| }); | | }); |
|
| |
| /* Takmičenje na Vikipediji, računanje zbira poena */
| |
|
| |
| function takmicenjeRacunanjeSuma() {
| |
| $(".takmicenjeTabela").each(function() {
| |
| var suma = 0;
| |
| $(this).find(".takmicenjeSuma").each(function() {
| |
| var poeni = parseInt($(this).html().trim());
| |
| if (poeni)
| |
| suma += poeni;
| |
| });
| |
| $(this).find(".takmicenjeSumaSuma").html(suma);
| |
| });
| |
| }
| |
|
| |
| $(takmicenjeRacunanjeSuma);
| |
|
| |
| //</nowiki>
| |
| /* DO NOT ADD CODE BELOW THIS LINE */
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| /*
| |
|
| |
| {{en:User:Cacycle/wikEd_template}}
| |
|
| |
| This is the Serbian translation for the MediaWiki editing page extension '''[[User:Cacycle/wikEd|wikEd]]''' (last updated for version 0.9.119c).
| |
| Please see the translation instructions at [[User:Cacycle/wikEd international]].
| |
|
| |
| <pre><nowiki> */
| |
|
| |
| var wikEdText = {
| |
|
| |
| // logo
| |
| 'wikEdLogo alt': 'wikEd',
| |
| 'wikEdLogo title': 'wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Isključi wikiEd',
| |
| 'wikEdLogo error alt': 'wikEd Greška',
| |
| 'wikEdLogo error title': 'Greška u pokretanju - wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Isključi wikiEd',
| |
| 'wikEdLogo browser alt': '(wikEd)',
| |
| 'wikEdLogo browser title': 'Pretraživač nije podržan - wikEd {wikEdProgramVersion} ({wikEdProgramDate})',
| |
| 'wikEdLogo incompatible alt': '(wikEd)',
| |
| 'wikEdLogo incompatible title': 'Nekompatibilna skripta ili dodatak',
| |
| 'wikEdLogo disabled alt': '(wikEd)',
| |
| 'wikEdLogo disabled title': 'Isključen - wikEd {wikEdProgramVersion} ({wikEdProgramDate}) Uključi wikiEd',
| |
| 'wikEdLogo testVersion alt': 'wikEd_dev',
| |
| 'wikEdLogo testVersion title': 'wikEd_dev (unstable test version) {wikEdProgramVersion} ({wikEdProgramDate}) Click to disable',
| |
|
| |
| // top jumper
| |
| 'wikEdScrollToEdit4 alt': 'Pomeri do polja za uređivanje',
| |
| 'wikEdScrollToEdit4 title': 'Pomeri do polja za uređivanje',
| |
|
| |
| // button bar grip titles
| |
| 'wikEdGripFormat title': 'Dugmad za oblikovanje (isključi/uključi)',
| |
| 'wikEdGripTextify title': 'Dugmad za običan tekst (uključi/isključi)',
| |
| 'wikEdGripCustom1 title': 'Lični alati (isključi/uključi)',
| |
| 'wikEdGripFind title': 'Dugmad za traženje (isključi/uključi)',
| |
| 'wikEdGripFix title': 'Dugmad za popravljanje (isključi/uključi)',
| |
| 'wikEdGripCustom2 title': 'Lični dugmići (isključi/uključi)',
| |
| 'wikEdGripControl title': 'wikiEd nadzorni dugmići (iksljuči/uključi)',
| |
|
| |
| // button bar background titles
| |
| 'wikEdBarFormat title': '',
| |
| 'wikEdBarTextify title': '',
| |
| 'wikEdBarCustom1 title': '',
| |
| 'wikEdBarFind title': '',
| |
| 'wikEdBarFix title': '',
| |
| 'wikEdBarCustom2 title': '',
| |
| 'wikEdBarControl title': 'wikEd {wikEdProgramVersion} ({wikEdProgramDate})',
| |
| 'wikEdBarPreview title': '',
| |
| 'wikEdBarPreview2 title': '',
| |
| 'wikEdBarJump title': '',
| |
| 'wikEdBarPasted title': '',
| |
|
| |
| // formatting buttons, top row
| |
| 'wikEdUndo alt': 'Vrati unazad za jedan korak',
| |
| 'wikEdUndo title': 'Vrati unazad za jedan korak',
| |
| 'wikEdRedo alt': 'Vrati unapred za jedan korak',
| |
| 'wikEdRedo title': 'Vrati unapred za jedan korak',
| |
| 'wikEdBold alt': 'Podebljano',
| |
| 'wikEdBold title': 'Podebljano',
| |
| 'wikEdItalic alt': 'Iskošeno',
| |
| 'wikEdItalic title': 'Iskošeno',
| |
| 'wikEdUnderline alt': 'Podvučeno',
| |
| 'wikEdUnderline title': 'Podvučeno',
| |
| 'wikEdStrikethrough alt': 'Precrtano',
| |
| 'wikEdStrikethrough title': 'Precrtano',
| |
| 'wikEdNowiki alt': 'Nowiki',
| |
| 'wikEdNowiki title': 'Reč unutar oznaka nowiki',
| |
| 'wikEdSuperscript alt': 'Eksponent',
| |
| 'wikEdSuperscript title': 'Eksponent',
| |
| 'wikEdSubscript alt': 'Indeks',
| |
| 'wikEdSubscript title': 'Indeks',
| |
| 'wikEdRef alt': 'Referenca',
| |
| 'wikEdRef title': 'Referenca u tekstu (shift+klik: ime izvora)',
| |
| 'wikEdCase alt': 'Slova',
| |
| 'wikEdCase title': 'Promena malih slova, velikih početnih slova i velikih slova',
| |
| 'wikEdSort alt': 'Sortiranje',
| |
| 'wikEdSort title': 'Sortiranje po abecedi', // 'wikEdSort title': 'Redanje niži abecedno',
| |
| 'wikEdRedirect alt': 'Preusmeravanje',
| |
| 'wikEdRedirect title': 'Napravi preusmeravanje, briše kompletan tekst',
| |
| 'wikEdUndoAll alt': 'Vrati unazad sve',
| |
| 'wikEdUndoAll title': 'Vrati unazad sve promene',
| |
| 'wikEdRedoAll alt': 'Napred sve',
| |
| 'wikEdRedoAll title': 'Vrati unapred sve promene',
| |
|
| |
| // formatting buttons, bottom row
| |
| 'wikEdWikiLink alt': 'Veza',
| |
| 'wikEdWikiLink title': 'Wiki veza',
| |
| 'wikEdWebLink alt': 'Spoljna veza',
| |
| 'wikEdWebLink title': 'Spoljna veza',
| |
| 'wikEdHeading alt': 'Podnaslov',
| |
| 'wikEdHeading title': 'Napravi nivo podnaslova (shift+klik: smanji)',
| |
| 'wikEdBulletList alt': 'Lista sa tačkama',
| |
| 'wikEdBulletList title': 'Lista sa tačkama (shift+klik: smanji)',
| |
| 'wikEdNumberList alt': 'Lista sa brojevima',
| |
| 'wikEdNumberList title': 'Lista sa brojevima (shift+klik: smanji)',
| |
| 'wikEdIndentList alt': 'Uvlačenje reda',
| |
| 'wikEdIndentList title': 'Uvlačenje reda (shift+klik: smanji)',
| |
| 'wikEdDefinitionList alt': 'Lista definicija',
| |
| 'wikEdDefinitionList title': 'Lista definicija',
| |
| 'wikEdImage alt': 'Slika',
| |
| 'wikEdImage title': 'Slika',
| |
| 'wikEdTable alt': 'Tabela',
| |
| 'wikEdTable title': 'Tabela',
| |
| 'wikEdReferences alt': 'Spisak referenci',
| |
| 'wikEdReferences title': 'Spisak referenci (shift+klik: Odlomak za izvore)',
| |
| 'wikEdSign alt': 'Potpis',
| |
| 'wikEdSign title': 'Potpis [[Корисник:Kadzo|Kadzo]] ([[Разговор са корисником:Kadzo|разговор]]) 21:38, 24. јун 2016. (CEST) (shift-click: name only [[Корисник:Kadzo|Kadzo]] ([[Разговор са корисником:Kadzo|разговор]]))',
| |
|
| |
| // textify buttons
| |
| 'wikEdWikify alt': 'Pretvori kopirani sadržaj u wiki kod',
| |
| 'wikEdWikify title': 'Pretvori kopirani sadržaj u wiki kod',
| |
| 'wikEdTextify alt': 'Običan tekst',
| |
| 'wikEdTextify title': 'Pretvori kopirani sadržaj u običan tekst',
| |
| 'wikEdPastedWikify alt': 'Wikify pasted',
| |
| 'wikEdPastedWikify title': 'Konvertuj nalepljen tekst u wiki kod',
| |
| 'wikEdPastedTextify alt': 'Textify pasted',
| |
| 'wikEdPastedTextify title': 'Konvertuj nalepljen tekst u običan tekst',
| |
| 'wikEdPastedClose alt': 'Zatvaranje',
| |
| 'wikEdPastedClose title': 'Zatvaranje',
| |
|
| |
| // find and replace buttons, top row
| |
| 'wikEdFindAll alt': 'Traži sve',
| |
| 'wikEdFindAll title': 'Traži sva poklapanja',
| |
| 'wikEdFindPrev alt': 'Traži prethodno',
| |
| 'wikEdFindPrev title': 'Traži prethodno poklapanje',
| |
| 'wikEdFindSelect title': 'Odaberi prethodno traženje ili idi na podnaslov',
| |
| 'wikEdFindNext alt': 'Traži sledeće',
| |
| 'wikEdFindNext title': 'Traži sledeće poklapanje (shift+klik: uzmi naslov)',
| |
| 'wikEdJumpPrev alt': 'Prethodni izbor',
| |
| 'wikEdJumpPrev title': 'Traži odabrani tekst unazad',
| |
| 'wikEdJumpNext alt': 'Sledeći izbor',
| |
| 'wikEdJumpNext title': 'Traži odabrani tekst napred',
| |
|
| |
| // find and replace buttons, bottom row
| |
| 'wikEdReplaceAll alt': 'Zameni sve',
| |
| 'wikEdReplaceAll title': 'Zameni sva poklapanja u tekstu ili delu teksta',
| |
| 'wikEdReplacePrev alt': 'Zameni unazad',
| |
| 'wikEdReplacePrev title': 'Zameni prethodno poklapanje',
| |
| 'wikEdReplaceSelect title': 'Odaberi prethodnu zamenu',
| |
| 'wikEdReplaceNext alt': 'Zameni sledeće (shift+klik: uzmi odlomak)',
| |
| 'wikEdReplaceNext title': 'Zameni sledeće poklapanje',
| |
| 'wikEdCaseSensitive alt': 'Promemeni na velika/mala slova',
| |
| 'wikEdCaseSensitive title': 'Promemeni na velika/mala slova',
| |
| 'wikEdRegExp alt': 'Traženje pomoću regularnih izrazi',
| |
| 'wikEdRegExp title': 'Traženje pomoću regularnih izrazi',
| |
| 'wikEdFindAhead alt': 'Traži napred',
| |
| 'wikEdFindAhead title': 'Traži napred dok se upisuje (traženje uz velika/mala slova bez regularnih izraza)',
| |
|
| |
| // fix buttons, top row
| |
| 'wikEdFixBasic alt': 'Popravi osnove',
| |
| 'wikEdFixBasic title': 'Popravi prazna mesta',
| |
| 'wikEdFixHtml alt': 'Popravi html',
| |
| 'wikEdFixHtml title': 'Popravi html u wikikod',
| |
| 'wikEdFixCaps alt': 'Popravi prvo početno slovo',
| |
| 'wikEdFixCaps title': 'Popravi prvo početno slovo',
| |
| 'wikEdFixUnicode alt': 'Popravi Unicode',
| |
| 'wikEdFixUnicode title': 'Popravi Unicode znakove',
| |
| 'wikEdFixAll alt': 'Popravi sve',
| |
| 'wikEdFixAll title': 'Popravi prazna mesta, html, početna slova i Unicode',
| |
| 'wikEdFixRedirect alt': 'Popravi preusmeravanja',
| |
| 'wikEdFixRedirect title': 'Popravi preusmeravanja',
| |
|
| |
| // fix buttons, bottom row
| |
| 'wikEdFixDashes alt': 'Popravi crtice',
| |
| 'wikEdFixDashes title': 'Popravi crtice',
| |
| 'wikEdFixPunct alt': 'Popravi interpunkcije',
| |
| 'wikEdFixPunct title': 'Popravi prazna mesta ispred interpunkcije',
| |
| 'wikEdFixMath alt': 'Popravi matematičke izraze',
| |
| 'wikEdFixMath title': 'Popravi matematičke izraze',
| |
| 'wikEdFixChem alt': 'Popravi hemijske formule',
| |
| 'wikEdFixChem title': 'Popravi hemijske formule',
| |
| 'wikEdFixUnits alt': 'Popravi jedinice',
| |
| 'wikEdFixUnits title': 'Popravi jedinice',
| |
| 'wikEdFixRegExTypo alt': 'Popravi tipfeler',
| |
| 'wikEdFixRegExTypo title': 'Popravi tipfeler uz pomoć AutoWikiBrowsera RedExTypoFixer pravila',
| |
|
| |
| // wikEd control buttons, top row
| |
| 'wikEdRefHide alt': 'Sakrij <ref>',
| |
| 'wikEdRefHide title': 'Sakrij/Otkrij <ref> tagove',
| |
| 'wikEdTextZoom alt': 'Povećaj tekst',
| |
| 'wikEdTextZoom title': 'Povećavanje teksta (shift+klik: obrnuto)',
| |
| 'wikEdClearHistory alt': 'Očisti istoriju',
| |
| 'wikEdClearHistory title': 'Očisti istoriju, traženja i zamene',
| |
| 'wikEdScrollToPreview alt': 'Idi na okvir sa izmenama',
| |
| 'wikEdScrollToPreview title': 'Idi na okvir sa izmenama',
| |
| 'wikEdScrollToEdit alt': 'Idi na okvir za uređivanje',
| |
| 'wikEdScrollToEdit title': 'Idi na okvir za uređivanje',
| |
|
| |
| // wikEd control buttons, top row
| |
| 'wikEdRefHide alt': '[IZVOR, PREDL]',
| |
| 'wikEdRefHide title': 'Uključi/isključi skrivanje [IZVOR] i [PREDL]',
| |
| 'wikEdRefButtonTooltip': 'Klikni za prikaz skrivenog izvora',
| |
| 'wikEdTemplButtonTooltip': 'Klikni za prikaz skrivenog šablona',
| |
| 'wikEdCharEntityButtonTooltip':'Klikni za prikaz skrivenog znaka',
| |
| 'wikEdRefButtonShowTooltip': 'Klikni za skrivanje izvora',
| |
| 'wikEdTemplButtonShowTooltip': 'Klikni za skrivanje šablona',
| |
| 'wikEdCharEntityButtonShowTooltip': 'Klikni za skrivanje znaka',
| |
| 'wikEdTextZoom alt': 'Povećaj tekst',
| |
| 'wikEdTextZoom title': 'Povećaj tekst (shift-klik: u suprotnom smjeru)',
| |
| 'wikEdClearHistory alt': 'Očisti istoriju',
| |
| 'wikEdClearHistory title': 'Očisti traženje, zamenu i sažetak',
| |
| 'wikEdScrollToPreview alt': 'Pomeri na pregled',
| |
| 'wikEdScrollToPreview title': 'Pomeri na polje pregleda',
| |
| 'wikEdScrollToEdit alt': 'Pomeri na uređivanje',
| |
| 'wikEdScrollToEdit title': 'Pomeri na polje za uređivanje',
| |
|
| |
| // wikEd control buttons, bottom row
| |
| 'wikEdUseWikEd alt': 'Uključi wikEd',
| |
| 'wikEdUseWikEd title': 'Uključi/Isključi wikiEd između klasičnog polja za uređivanje i wikiEda',
| |
| 'wikEdHighlightSyntax alt': 'Sintaksa',
| |
| 'wikEdHighlightSyntax title': 'Uključi/Isključi osvetljavanje sintakse',
| |
| 'wikEdSource alt': 'Izvor',
| |
| 'wikEdCloseToolbar title': 'Zatvori standardne ne-wikiEd alate',
| |
| 'wikEdCloseToolbar alt': 'Zatvori alate',
| |
| 'wikEdSource title': 'Pokaži izvor za testiranje',
| |
| 'wikEdUsing alt': 'Primeniti',
| |
| 'wikEdUsing title': 'Automatski dodaj \'\'…uz wikEd\'\' u sažetak',
| |
| 'wikEdDiff alt': 'wikEdRazl',
| |
| 'wikEdDiff title': 'Uključi/Isključi poboljšani pregled promena',
| |
| 'wikEdFullScreen alt': 'Prikaz preko celog ekrana',
| |
| 'wikEdFullScreen title': 'Uključi/Isključi Prikaz preko celog ekrana',
| |
|
| |
| // summary buttons
| |
| 'wikEdClearSummary alt': 'Očisti sažetak',
| |
| 'wikEdClearSummary title': 'Očisti polje sažetka',
| |
| 'wikEdSummarySelect title': 'Odaberi prethodni sažetak',
| |
| 'wikEdPresetSummary': [
| |
| '/* */ ', 'uređivanje', 'odgovor', 'novi članak', 'popravak veza',
| |
| 'popravak teksta', 'uklanjanje spam veza', 'uklanjanje testiranja',
| |
| 'uklanjanje vandalizma', 'formatiranje originalnog teksta', '{wikEdUsing}'
| |
| ],
| |
| 'wikEdSummaryUsing': '…uz [[MediaWiki razgovor:Gadget-wikEd|wikEd]]',
| |
|
| |
| // button title acceskey
| |
| 'alt-shift': 'alt-shift-',
| |
|
| |
| // submit buttons
| |
| 'wikEdLocalPreviewImg alt': 'Prikaži promene ispod',
| |
| 'wikEdLocalPreview title': 'Pokaži promene ispod',
| |
| 'wikEdLocalDiffImg alt': 'Promene ispod',
| |
| 'wikEdLocalDiff title': 'Pokaži trenutne promene ispod',
| |
| 'wikEdHelpPageLink': ' | <a href="http://hr.wikipedia.org/wiki/MediaWiki_razgovor:Gadget-wikEd" target="helpwindow">wikEd pomoć</a>',
| |
|
| |
| // preview and changes buttons, top
| |
| 'wikEdClose alt': 'Zatvori',
| |
| 'wikEdClose title': 'Zatvori okvir promena',
| |
| 'wikEdClose2 alt': 'Zatvori',
| |
| 'wikEdClose2 title': 'Zatvori okvir promena',
| |
| 'wikEdScrollToPreview2 alt': 'Pomeri na promene',
| |
| 'wikEdScrollToPreview2 title': 'Pomeri na okvir promena',
| |
| 'wikEdScrollToEdit2 alt': 'Pomeri na uređivanje',
| |
| 'wikEdScrollToEdit2 title': 'Pomeri na okvir za uređivanje',
| |
|
| |
| // preview and changes buttons, bottom
| |
| 'wikEdScrollToPreview3 alt': 'Pomeri na promene',
| |
| 'wikEdScrollToPreview3 title': 'Pomeri na okvir promena',
| |
| 'wikEdScrollToEdit3 alt': 'Pomeri na uređivanje',
| |
| 'wikEdScrollToEdit3 title': 'Pomeri na okvir za uređivanje',
| |
|
| |
| // preview field
| |
| 'wikEdPreviewLoading': '...',
| |
| 'diffNotLoaded': 'Error: Local diff script not installed.',
| |
|
| |
| // formatting functions
| |
| 'image filename': 'Ime datoteke',
| |
| 'image width': 'Širina slike',
| |
| 'table caption': 'Naslov tabele',
| |
| 'table heading': 'Naslov',
| |
| 'table cell': 'Polje',
| |
| 'redirect article link': 'naslov članka',
| |
|
| |
| // fixing functions
| |
| 'External links': 'Spoljne veze',
| |
| 'See also': 'Vidi',
| |
| 'References': 'Reference',
| |
|
| |
| // language specific wiki code
| |
| 'wikicode Image': 'Slika',
| |
| 'wikicode File': 'Datoteka',
| |
| 'wikicode Category': 'Kategorija',
| |
| 'wikicode Template': 'Šablon',
| |
| 'wikEdReferencesSection': '\n== Izvori ==\n\n{{Izvori}}\n',
| |
| 'talk page': 'Razgovor',
| |
| 'history page': 'Stare izmene',
| |
| 'talk namespace': 'Razgovor',
| |
| 'talk namespace suffix': '_talk',
| |
|
| |
| // hiding
| |
| 'hideRef': 'Referenca',
| |
| 'hideTempl': 'PREDL',
| |
|
| |
| // shortened button texts
| |
| 'shortenedPreview': 'Prikaži kako će strana izgledati',
| |
| 'shortenedChanges': 'Promene',
| |
|
| |
| // follow link popup
| |
| 'followLink': '(ctrl-klik)',
| |
| 'followLinkMac': '(cmd-klik)',
| |
|
| |
| // error message popups
| |
| 'wikEdTableModeError': 'Wikikod tabele sadrži greške',
| |
|
| |
| // auto updating
| |
| /*'wikEdGreasemonkeyAutoUpdate': 'wikEd Update:\n\nNova verzija GreaseMonkey skripte "wikEd" je dostupna.\n\n\nBiti će snimljena s:\n\n{updateURL}',*/
| |
|
| |
| // highlighting popups
| |
| 'hyphenDash': 'Standardna crtica',
| |
| 'figureDash': 'Crtica ispod slike',
| |
| 'enDash': 'En crtica',
| |
| 'emDash': 'Em crtica',
| |
| 'barDash': 'Horizontalna crta',
| |
| 'minusDash': 'Znak minus',
| |
| 'softHyphen': '"Mekana" crtica',
| |
| 'tab': 'Tab',
| |
| 'enSpace': 'En razmak',
| |
| 'emSpace': 'Em razmak',
| |
| 'thinSpace': '"Mekani" razmak',
| |
| 'ideographicSpace': 'Ideografski razmak',
| |
|
| |
| // highlighting
| |
| 'wikEdSignature3': 'Potpis samo sa saradničkim imenom',
| |
| 'wikEdSignature4': 'Potpis sa saradničkim imenom i datumom',
| |
| 'wikEdSignature5': 'Potpis samo s datumom',
| |
|
| |
| // highlighting errors
| |
| 'wikEdErrorHtmlUnknown': 'Nepodržana HTML oznaka',
| |
| 'wikEdErrorBoldItalic': 'Nepravilna masna / kosa slova',
| |
| 'wikEdErrorWrongClose': 'Oznaka zatvaranja nije uparena',
| |
| 'wikEdErrorNoOpen': 'Oznaka zatvaranja nije uparena',
| |
| 'wikEdErrorNoHandler': 'Nema oznake',
| |
| 'wikEdErrorNoClose': 'Oznaka nije zatvorena',
| |
| 'wikEdErrorNewline': 'Oznaka je zavorena novim redom',
| |
| 'wikEdErrorTemplHeading': 'Naslovi u šablonima se zanemaruju',
| |
| 'wikEdErrorTemplParam': 'Oznake šablona/parametra nisu uparene',
| |
| 'wikEdErrorTemplParamAmbig': 'Oznake šablona/parametra su nejasne',
| |
| 'wikEdErrorCodeInLinkName': 'Wikicode u imenu veze',
| |
| 'wikEdErrorCodeInTemplName': 'Wikicode u imenu šablona',
| |
| 'wikEdErrorCodeInParamName': 'Wikicode u parameter šablona',
| |
|
| |
| // highlighting image preview
| |
| 'wikEdFilePreview': 'Pregled slike',
| |
|
| |
| // duplicated message
| |
| 'clonedWarningsNote': 'Napomene: Upzorenje na duplirane ispravke (wikEd):',
| |
|
| |
| // from [[en:User:Cacycle/wikEdDiff.js]]
| |
| 'wikEdDiffButtonImg alt': 'wikEdRazlike',
| |
| 'wikEdDiffButton title': 'Prikaži poboljšane razlike',
| |
| 'wikEdDiffLoading': '...'
| |
|
| |
| }
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
| // Ovo su još neka poboljšanja sa bojama u okviru editora za Gadget WikiEd
| |
| var wikEdConfig = {};
| |
| wikEdConfig.frameCSS = {
| |
| '.wikEdLink': 'background: #E2E2FF;',
| |
| '.wikEdLinkText, .wikEdLinkName': 'font-weight: bold; color: red;',
| |
| '.wikEdRef, .wikEdRefShow': 'background: #FFEEFF;',
| |
| '.wikEdURLText': 'background: #DBFFFF; color:red; font-weight: bold;',
| |
| '.wikEdTempl, .wikEdTemplShow': 'background: #FFFFA0;',
| |
| '.wikEdTemplParam': 'font-weight: bold; color: red;',
| |
| '.wikEdTableHeader': 'background: #FFFFA0;',
| |
| 'span.wikEdTableTagAttrib': 'background: #FFAD5B; font-weight: bold; color: blue;',
| |
| 'span.wikEdTableCode': 'background: #FFFFA0; color: red; font-weight: bold;',
| |
| '.wikEdCatName': 'background: #FFFFA0; color: red; font-weight: bold;',
| |
| '.wikEdList': 'background: #FFFFA0;',
| |
| '.wikEdURLTarget': 'background: #DBFFFF; font-weight: bold; color: blue;',
| |
| '.wikEdLinkCrossNs': 'background: #D5FFB0;',
| |
| '.wikEdLinkTarget': 'font-weight: normal; color: black;',
| |
| '.wikEdCat .wikEdLinkNs': 'background: #D5FFB0; color: black;',
| |
| '.wikEdFrameBodySyntax .wikEdHeading ': 'background: #E0E0E0;',
| |
| };
| |