MediaWiki talk:Common.js/Archive 10: Difference between revisions
Content deleted Content added
m (Task 6) HTML cleanup of Category:Pages using invalid self-closed HTML tags |
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB) |
||
Line 948:
== <tt>{{template doc}}</tt> modifier script ==
<
addOnloadHook(function () {
if( wgCanonicalNamespace == "Template" && document.getElementById("doc_editlinks") ) {
Line 955:
}
});
</syntaxhighlight>
This script turns the "[<span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Template_doc/doc&action=edit edit]</span>]" link into an href (such as the one that allows editing of a section on a page). Would anyone be opposed to its addition to [[MediaWiki:Common.js]]? —<tt>[[</tt>'''[[User:Animum|<font color="#002BB8">Animum</font>]]''' | '''''[[User_talk:Animum|<font color="#5A3696">talk</font>]]'''''<tt>]]</tt> 14:35, 30 September 2007 (UTC)
|