User:Mdupont/vector.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
<nowiki> is not valid javascript, although it'll fix the {{Rotate}} bug, it'll destroy your script. use comments ( // to avoid js errors ) and <source> |
||
Line 1: | Line 1: | ||
// <source lang="javascript"> |
|||
<nowiki> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
// </source> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</nowiki> |
Revision as of 18:40, 5 February 2011
// <source lang="javascript">
if ( wgNamespaceNumber == 6 && ( wgAction == "view" || wgAction == "purge" ) ) $j(document).ready(function(){
if ( $j('.fileinfotpl_desc').length ) return;
addPortletLink( 'rotate270', 'http://toolserver.org/~magnus/add_information.php?image=' + encodeURIComponent ( wgTitle.split(" ").join("_") ), 'Add {{Rotate|270}}', 'rotate270', null );
} );
// </source>