User talk:Dschwen/coordinates.js
Jump to navigation
Jump to search
Thanks for this useful script. You might want to change
addOnloadHook(coordinatesInstall);
to
if ( wgNamespaceNumber == 6) addOnloadHook(coordinatesInstall);
since this script is only needed in the File: namespace. Cheers, Pruneautalk 23:13, 12 April 2009 (UTC)
Legacy JavaScript
[edit]Template:JS migration
Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook()
needs to be replaced with $()
; all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' )
; and addPortletLink
needs to be called with mw.util.addPortletLink
. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (e • t • c) 22:09, 18 January 2015 (UTC)