Difference between revisions 263469 and 264293 on ptwikibooks/** * Add a link to [[Special:RecentChanges]] indicating the current version of MW * @author: [[User:Helder.wiki]] * @tracking: [[Special:GlobalUsage/User:Helder.wiki/Tools/AddMediaWikiVersionLinkToRecentChanges.js]] ([[File:User:Helder.wiki/Tools/AddMediaWikiVersionLinkToRecentChanges.js]]) */ (contracted; show full) expires: 30, path: '/' } ); // Reloads the document (from the cache) document.location.reload( false ); } ), $normalLink = $('<a>' + HTML + '</a>' ) .attr( 'href', mw.util. wikiGetlinkgetUrl( 'Special:Version' ) ); mw.util.addCSS( '#my-mw-version { z-index:1; font-size:75%; position:absolute; top: 2px; left:2px; }' + '#my-mw-version a.updated { color:green; font-weight:bold; }' ); if ( oldRev !== String(curRev) ) { $div.append( $versionLink ) .append( ' ( ' ) .append( $okLink ) .append( ' )' ); } else { $div.append( $normalLink ); } $div.appendTo( '#mw-head' ); } if ( 'Recentchanges' === mw.config.get( 'wgCanonicalSpecialPageName' ) ) { mw.loader.using( 'mediawiki.api', function () { ( new mw.Api() ).get( { action: 'query', meta: 'siteinfo' } ) .done( addMWVersion ); } ); } }( jQuery, mediaWiki ) ); All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://pt.wikibooks.org/w/index.php?diff=prev&oldid=264293.
![]() ![]() 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.
|