User:JJPMaster/g4.js

if(mw.config.get('wgNamespaceNumber') !== -1) { mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/delete&page=' + mw.config.get('wgPageName'), 'Deletion log', 'dellog1', 'View this page\'s deletion log'); }

if(mw.config.get('wgNamespaceNumber') == 2) { mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User:' + mw.config.get('wgTitle'), 'Block log', 'blog', 'View this user\'s block log'); }

if(mw.config.get('wgNamespaceNumber') == 3) { mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User:' + mw.config.get('wgTitle'), 'Block log', 'blog', 'View this user\'s block log'); }

if(mw.config.get('wgNamespaceNumber') !== -1) { mw.util.addPortletLink("p-tb", 'https://en.wikipedia.org/w/index.php?title=Special:Log/protect&page=' + mw.config.get('wgPageName'), 'Protection log', 'plog', 'View this page\'s protection log'); }