In the oasis skin, when you access the userpage of a user, there is always a link to the blog and contribs of the user in question, can something like that be written for monobook?
In the oasis skin, when you access the userpage of a user, there is always a link to the blog and contribs of the user in question, can something like that be written for monobook?
Whoops, that was my test account. This is my primary account.
Sure. Would you want it to the right of the follow tab, somewhere else in the tabs, or somewhere in the sidebar?
Here's a really basic form; add it to your monobook.js. It'll only work on the user and user talk pages; it would be a little more complicated (though not really difficult) to add tabs on the blog and contribs pages, which I don't have time for at the moment. And you'd have to make some adjustments to group the new tabs with the first two.
if ($('#p-cactions').length && [2, 3, 1200].indexOf(mw.config.get('wgNamespaceNumber')) != -1) { $('#p-cactions li:nth-child(2)').after('<li id="ca-blog"><a href="/wiki/User blog:' + mw.config.get('wgTitle') + '">User blog</a></li>'); $('#p-cactions li:nth-child(3)').after('<li id="ca-contribs"><a href="/wiki/Special:Contributions/' + mw.config.get('wgTitle') + '">Contribs</a></li>'); }
ok! thanks for the script!
it works! thank you so much!