MediaWiki:Common.js
Материал из PDW — путешествия и туризм по городам и странам
(Различия между версиями)
Sysop (обсуждение | вклад) (Новая страница: «/* Размещённый здесь JavaScript код будет загружаться всем пользователям при обращении к каждо…») |
Sysop (обсуждение | вклад) |
||
Строка 9: | Строка 9: | ||
****/ | ****/ | ||
− | if (wgNamespaceNumber != -1 && wgAction && (wgAction == 'view' || wgAction == 'purge')) { | + | /** |
+ | if (wgNamespaceNumber != -1 && wgAction && (wgAction == 'view' || wgAction == 'purge')) { | ||
// Not on Special pages, and only if viewing the page | // Not on Special pages, and only if viewing the page | ||
if (typeof (ImageAnnotator_disable) == 'undefined' || !ImageAnnotator_disable) { | if (typeof (ImageAnnotator_disable) == 'undefined' || !ImageAnnotator_disable) { | ||
Строка 16: | Строка 17: | ||
} | } | ||
} | } | ||
+ | **/ |
Текущая версия на 06:25, 21 сентября 2009
/* Размещённый здесь JavaScript код будет загружаться всем пользователям при обращении к каждой странице */ /**** ImageAnnotator ****** * Globally enabled per * http://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=26818359#New_interface_feature * * Maintainer: [[User:Lupo]] ****/ /** if (wgNamespaceNumber != -1 && wgAction && (wgAction == 'view' || wgAction == 'purge')) { // Not on Special pages, and only if viewing the page if (typeof (ImageAnnotator_disable) == 'undefined' || !ImageAnnotator_disable) { // Don't even import it if it's disabled. importScript ('MediaWiki:Gadget-ImageAnnotator.js'); } } **/