Usapang MediaWiki:Common.js

Page contents not supported in other languages.
Mula sa Wikipedia, ang malayang ensiklopedya

Give search results even when page doesn't exist[baguhin ang wikitext]

Screenshot of the Earth test search, with this script adding links to Wikidata, Reasonator, Commons, and Wikipedia.

Hello, I propose to enable the tool created by Magnus Manske (creator of MediaWiki) to provide results from other languages and Commons (via Wikidata) when a page doesn't exist here: links are added to Special:Search and noarticletext. This helps to encourage translation and to make readers use your wiki more, because they can be sure to find something even if it's not local (rather than searching directly on the biggest wiki). The Italian and Polish Wikipedias, among others already enabled it by default.
Examples: [1] [2] [3]. More information: Magnus blog.
How to: just add the following line at the end of Common.js.

// Results from Wikidata
// [[File:Wdsearch_script_screenshot.png]]
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ||  ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) {
	importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript");
}

--Nemo 10:55, 14 Disyembre 2013 (UTC) (comments, translations and last instructions)[sumagot]

Nice to see it enabled already! And sorry for the wrong pre above. --Nemo bis (makipag-usap) 10:55, 14 Disyembre 2013 (UTC)[sumagot]

Hello, I propose to remove the entire block after "IE 6 Z-index bug workaround for anonnotice". Those donation notices are superseded and English-only banners in non-English wikis are both useless and harmful for Wikimedia and its finances. In fact, they make Wikipedia slower for unregistered users, so they cost more money than they bring, because the WMF has to spend millions on mw:Site performance. The WMF already runs banners for all the money they need, such permanent banners are inefficient. --Nemo bis (makipag-usap) 12:10, 13 Pebrero 2015 (UTC)[sumagot]

WikiMiniAtlas[baguhin ang wikitext]

{{editprotected}} Please replace the current WikiMiniAtlas code with the following

/**
 * 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]]
 */
/* For inline coordinates on articles */
window.wma_settings = {
    flowTextTooltips: (location.host === "tl.wikipedia.org"),
};

( 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' );
        }
    } );
} )();

this is part of the checklist to fix coordinate links on articles--Lam-ang (makipag-usap) 22:24, 20 Agosto 2015 (UTC).[sumagot]

Y Tapos na. --bluemask (makipag-usap) 07:49, 21 Agosto 2015 (UTC)[sumagot]