User:Griffinofwales/Sandbox

From Simple English Wikipedia, the free encyclopedia

// special cases: "db" and "db-multiple" if (params.normalizeds.length > 1) { notifytext = '\n{{subst:db-' + (params.warnUser ? 'deleted' : 'notice') + '-multiple|1=' + Morebits.pageNameNorm; var count = 2; $.each(params.normalizeds, function(index, norm) { notifytext += '|' + count++ + '=' + norm.toUpperCase(); }); } else if (params.normalizeds[0] === 'db') { notifytext = '\n{{subst:db-reason-' + (params.warnUser ? 'deleted' : 'notice') + '|1=' + Morebits.pageNameNorm; } else { notifytext = '\n{{subst:db-csd-' + (params.warnUser ? 'deleted' : 'notice') + '-custom|1='; if (params.values[0] === 'copypaste') { notifytext += params.templateParams[0].sourcepage; } else { notifytext += Morebits.pageNameNorm; } notifytext += '|2=' + params.values[0]; }