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

Content deleted Content added
m Old behaviour of link-wrapping font tags; <th>...</td> → <th>...</th>; <tt>...</tt> → {{mono|...}}
pre
 
Line 1,073:
 
Here is a prototype:
<pre>
/** Click on Image ***********************************************************
*
Line 1,103 ⟶ 1,104:
}
});
</pre>
so you would type <code><nowiki><div class="click" title="title to be set after javascript parses URL=http://example.com">[[Image:Myimage]]</div></nowiki></code>
Which would then set the href (url) of the link which contains the image to http://example.com, and link's title to "title to be set after javascript parses".