User:Polygnotus/Scripts/TypoFixer.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1:
//Testpage: https://en.wikipedia.org/wiki/User:Polygnotus/TypoFixerTest
// Example: tyop{{verify spelling|reason=tyop=>typo}}
 
// Example: tyop{{verify spelling|reason=tyop=>typo}}
//I am using the reason parameter because there is no suggestion parameter (yet)
//each of these templates is given an id so we can know that they clicked on the nth occurance.
Line 12 ⟶ 14:
function debug(...args) {
if (DEBUG) {
console.log('[VerifySpellingTypoFixer]', ...args);
}
}
 
if ((mw.config.get('wgNamespaceNumber') !== 0 && mw.config.get('wgPageName') !== 'User:Polygnotus/verifytestScripts/TypoFixerTest') ||
mw.config.get('wgAction') !== 'view' ||
!mw.config.get('wgIsProbablyEditable')) {