User:DodoMan/subpages.js: Difference between revisions
Jump to navigation
Jump to search
Created page with "$(document).ready(function () { var NSWithoutSubpages = [-1, 6, 8, 14, 104, 105, 113]; if (document.getElementById('p-tb') && NSWithoutSubpages.indexOf(mw.config.get('wgNamespaceNumber')) == -1) { var lienSouspages = '/wiki/Special:Index/'; if (mw.config.get('wgCanonicalNamespace') === 'Index') { lienSouspages += 'Page:' + mw.config.get('wgTitle'); } else { lienSouspages += mw.config.get('wgPageName'); } mw.loader.using('mediaw..." |
m Justarandomamerican moved page User:Rafdodo/subpages.js to User:DodoMan/subpages.js: Automatically moved page while renaming the user "Rafdodo" to "DodoMan" |
(No difference)
|
Revision as of 12:44, 1 April 2024
$(document).ready(function () {
var NSWithoutSubpages = [-1, 6, 8, 14, 104, 105, 113];
if (document.getElementById('p-tb') && NSWithoutSubpages.indexOf(mw.config.get('wgNamespaceNumber')) == -1)
{
var lienSouspages = '/wiki/Special:Index/';
if (mw.config.get('wgCanonicalNamespace') === 'Index') {
lienSouspages += 'Page:' + mw.config.get('wgTitle');
} else {
lienSouspages += mw.config.get('wgPageName');
}
mw.loader.using('mediawiki.util', function() {
mw.util.addPortletLink('p-tb', lienSouspages + '/', 'Sous-pages', 't-subpages', 'Sous-pages de cette page');
});
}
});