MediaWiki talk:Common.js/Archive 10: Difference between revisions

Content deleted Content added
Fluxbot (talk | contribs)
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB)
Line 948:
== <tt>&#123;{template doc}}</tt> modifier script ==
 
<sourcesyntaxhighlight lang="javascript">
addOnloadHook(function () {
if( wgCanonicalNamespace == "Template" && document.getElementById("doc_editlinks") ) {
Line 955:
}
});
</syntaxhighlight>
</source>
 
This script turns the "&#91;<span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Template_doc/doc&action=edit edit]</span>&#93;" 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>]]'''&nbsp;|&nbsp;'''''[[User_talk:Animum|<font color="#5A3696">talk</font>]]'''''<tt>]]</tt> 14:35, 30 September 2007 (UTC)