Content deleted Content added
Ohconfucius (talk | contribs) +fixes to unit names and abbrevs |
Ohconfucius (talk | contribs) code to rem lk=off|abbr=off |
||
Line 67:
//Fix common naming error (be careful with this one)
// txt.value=txt.value.replace(/centigrade/gi, 'Celsius');
txt.value=txt.value.replace(/({convert\|[^}]+?)\|(lk=off|abbr=off)/gi, '$1'); //rem redundant parameters ('lk=off' and 'abbr=off') - now default
//Celsius or Fahrenheit
txt.value=txt.value.replace(/(\d) (?:°|deg|degree|degrees) ([CF]\W)/g, '$1 °$2');
|