Изменения

Перейти к: навигация, поиск

MediaWiki:Common.js

152 байта убрано, 19:57, 21 ноября 2015
});
/* + ссылка «править» для нулевой секции. */Edit zero sectionif (wgAction == 'view' && wgNamespaceNumber >=0)addOnloadHook$(function(){ var h2s = document.getElementsByTagName if('H2'); var h2 (wgNamespaceNumber != h2s[0]; if (&& wgNamespaceNumber !h2) return; if (h2.parentNode.id =6 && wgNamespaceNumber != 'toctitle'100) h2 = h2s[1]; if (!h2) return; var span = h2.firstChild; if (!span || span.className wgAction != 'editsectionview'|| /(oldid|diff) return; var zero = span/.cloneNodetest(truewindow.location)) return; if (document.getElementById $('featured-star#firstHeading')) zero.styleappend('<span class="editsection">[<a title="Править секцию: 0" href="/w/index.marginRight php?title= '25px' var parent = document.getElementsByTagName + encodeURIComponent('H1'wgPageName)[ + '&action=edit&section=0">править преамбулу</a>]; parent.insertBefore(zero, parent.firstChild</span>'); var a = zero.getElementsByTagName $('A#firstHeading .editsection')[0]; a.title = a.title.replaceshow(/:.*$/,' после заголовка'); a.setAttributecss('hreftext-shadow', a.href.replace(/&section=1/,'&section=0none'));});
Куратор, наблюдатель
19 821
правка