Pumunta sa nilalaman

Module talk:Coordinates

Page contents not supported in other languages.
Mula sa Wikipedia, ang malayang ensiklopedya
Pagbabago noong 08:03, 21 Agosto 2015 ni Bluemask (usapan | ambag)

Checklist to implement module and supporting templates

/**
 * 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 will fix most of the broken links and positions of coordinates on articles, any help from admins to implement list items on protected pages is greatly appreciated. --Lam-ang (makipag-usap) 17:57, 19 Agosto 2015 (UTC)[tugon]

@Lam-ang: Done with the edit requests, did we miss something? --bluemask (makipag-usap) 08:02, 21 Agosto 2015 (UTC)[tugon]