User:Omegatron/monobook.js/unitformatter.js: Difference between revisions

Content deleted Content added
oops
Remove all comments for now
Line 1:
/*
 
== Unit formatter ==
 
This script adds a tab to fix some unit formatting in the article. When you press the tab, it adds spaces between the number and the unit, according to SI, changes some HTML entities into the actual Unicode characters, and fixes some common unit errors, like KHZ → kHz.
 
Then it adds an edit summary and presses ''Show changes'' for you so you can check it for mistakes.
 
By [[User:Omegatron]]
 
<pre><nowiki> */
 
// ================================================================
// Unit formatter - new tab adds spaces between number and units, makes units consistent
// by User:Omegatron
 
function formatunits() {
var txt = document.editform.wpTextbox1;
Line 83 ⟶ 67:
}
});
 
 
//</nowiki></pre>