Difference between revisions 3686873 and 3687886 on simplewikiimportScript('User:EhJJ/twinkle.js'); importScript('User:Message From XenuLightForce/twinkletag.js'); //Dokumentation auf [[:de:Benutzer:Schnark/js/specialinterwiki]] <nowiki> /*global mw: true */ (function($){ var specialinterwiki = { version: 1.4, default_target: 'de', go: function () { var href = mw.config.get('wgScript') + '?title=' + $('#interwiki-input').val() + ':Special:' + mw.config.get('wgCanonicalSpecialPageName'); var search = window.location.search, hash = window.location.hash; search = search.replace(/^\?/, '&').replace(/&title=[^&]*/g, ''); //title entfernen var slash = decodeURIComponent(window.location.pathname); var index = slash.indexOf(mw.config.get('wgPageName').replace(/\/.*$/, '') + '/'); if (index > -1) { slash = encodeURIComponent(slash.substr(index + 1 + mw.config.get('wgPageName').replace(/\/.*$/, '').length)); href += '/' + slash; } window.location.href = href + search + hash; }, init: function () { var $tb = $('#p-tb'); if ($tb.length === 0) return; var $iw = $tb.clone().attr('id', 'p-lang').addClass('expanded').removeClass('collapsed'); $iw.find('.body').css('display', 'block'); $iw.find('h5').removeAttr('tabindex').text('Other languages'); $iw.find('ul').html('<li><input id="interwiki-input" size="5" value="' + specialinterwiki.default_target + '" />' + '<input id="interwiki-go" type="button" value=">"></li>'); $('#p-tb').after($iw); $('#interwiki-go').click(specialinterwiki.go); $('#interwiki-input').keypress(function (ev) { if (ev.which == 13) specialinterwiki.go(); }); } }; if (mw.config.get('debug')) window.specialinterwiki = specialinterwiki; $(document).trigger('loadWikiScript', ['Benutzer:Schnark/js/specialinterwiki.js', specialinterwiki]); if (mw.config.get('wgNamespaceNumber') == -1) $(specialinterwiki.init); })(jQuery); //</nowiki> importScript('User:Weltforce/lastactive.js'); All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?diff=prev&oldid=3687886.
![]() ![]() 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.
|