User:Saroj/PageCreatorInfo.js: Difference between revisions

Fixed URL formatting.
(Added script to display page creator info and edit count.)
 
(Fixed URL formatting.)
Line 57: Line 57:
             var creatorInfo = $('<div>')
             var creatorInfo = $('<div>')
                 .append('Page created by: ')
                 .append('Page created by: ')
                 .append($('<a>').attr('href', wikiURL + '/wiki/User:' + encodeURIComponent(creator)).text(creator).css({'color': '#0645ad'}))
                 .append($('<a>').attr('href', wikiURL + '/User:' + encodeURIComponent(creator)).text(creator).css({'color': '#0645ad'}))
                 .append(' (')
                 .append(' (')
                 .append($('<a>').attr('href', wikiURL + '/wiki/Special:Contributions/' + encodeURIComponent(creator)).text(editCount + ' edits').css({'color': '#0645ad'}))
                 .append($('<a>').attr('href', wikiURL + '/Special:Contributions/' + encodeURIComponent(creator)).text(editCount + ' edits').css({'color': '#0645ad'}))
                 .append(')')
                 .append(')')
                 .css({'font-size': '84%', 'color': '#666', 'margin-top': '5px'});
                 .css({'font-size': '84%', 'color': '#666', 'margin-top': '5px'});
autopatrolled, avs, delete, Administrators
745

edits