User:Shahadat/MetricFirst
Jump to navigation
Jump to search
Introduction
If imperial units are listed first, this script flips the words around to put metric first.
Examples
this script turns
- 55 miles (89 km)
- 500 feet (150 m)
- 95 °F (35 °C)
- 2.8 inches (71 mm)
into (respectively)
- 89 kilometres (55 mi)
- 150 metres (500 ft)
- 35 °C (95 °F)
- 71 millimetres (2.8 in)
Installation (Justapedia)
importScript('User:Shahadat/MetricFirst.js');
Notes
- This script is not complete
- This script only works when both units are listed
- Numbers have to be written as digits
Source
see User:Shahadat/MetricFirst.js and User:Shahadat/MetricFirstAmericanSpelling.js
Script Attribution
This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:Thespaceface/MetricFirst |