[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add more units for conversion
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/362606 ) Change subject: Add more units for conversion .. Add more units for conversion This covers all units having conversion to SI units up to now. The config is generated by: mwscript repo/maintenance/updateUnits.php --wiki wikidatawiki --base-unit-types Q223662,Q208469 --base-uri http://www.wikidata.org/entity/ Bug: T168582 Change-Id: I814d6919d816f64247462830d7e4107c5b84093b --- M wmf-config/unitConversionConfig.json 1 file changed, 2,589 insertions(+), 225 deletions(-) Approvals: Daniel Kinzler: Looks good to me, but someone else must approve Reedy: Looks good to me, approved jenkins-bot: Verified diff --git a/wmf-config/unitConversionConfig.json b/wmf-config/unitConversionConfig.json index 25f84a9..6f3b21e 100644 --- a/wmf-config/unitConversionConfig.json +++ b/wmf-config/unitConversionConfig.json @@ -1,15 +1,27 @@ { -"Q11573": { -"factor": "1", +"Q531": { +"factor": "9460730472580800", "unit": "Q11573", -"label": "metre", +"label": "light-year", "siLabel": "metre" }, -"Q218593": { -"factor": "0.0254", +"Q573": { +"factor": "86400", +"unit": "Q11574", +"label": "day", +"siLabel": "second" +}, +"Q1811": { +"factor": "149597870691", "unit": "Q11573", -"label": "inch", +"label": "astronomical unit", "siLabel": "metre" +}, +"Q2111": { +"factor": "299792458", +"unit": "Q182429", +"label": "speed of light", +"siLabel": "metre per second" }, "Q3710": { "factor": "0.3048", @@ -17,95 +29,11 @@ "label": "foot", "siLabel": "metre" }, -"Q178674": { -"factor": "0.1", -"unit": "Q11573", -"label": "nanometre", -"siLabel": "metre" -}, -"Q93318": { -"factor": "1852", -"unit": "Q11573", -"label": "nautical mile", -"siLabel": "metre" -}, -"Q253276": { -"factor": "1609.344", -"unit": "Q11573", -"label": "mile", -"siLabel": "metre" -}, -"Q174728": { -"factor": "0.01", -"unit": "Q11573", -"label": "centimetre", -"siLabel": "metre" -}, -"Q174789": { -"factor": "0.001", -"unit": "Q11573", -"label": "millimetre", -"siLabel": "metre" -}, -"Q531": { -"factor": "9460730472580800", -"unit": "Q11573", -"label": "light-year", -"siLabel": "metre" -}, -"Q1811": { -"factor": "149597870700", -"unit": "Q11573", -"label": "astronomical unit", -"siLabel": "metre" -}, -"Q828224": { -"factor": "1000", -"unit": "Q11573", -"label": "kilometre", -"siLabel": "metre" -}, -"Q482798": { -"factor": "0.9144", -"unit": "Q11573", -"label": "yard", -"siLabel": "metre" -}, -"Q25906460": { -"factor": "0.01847", -"unit": "Q11573", -"label": "dactylos", -"siLabel": "metre" -}, -"Q613726": { -"factor": "10", -"unit": "Q11570", -"label": "yottagram", -"siLabel": "kilogram" -}, -"Q100995": { -"factor": "0.45359237", -"unit": "Q11570", -"label": "pound", -"siLabel": "kilogram" -}, -"Q483261": { -"factor": "0.00166053904", -"unit": "Q11570", -"label": "atomic mass unit", -"siLabel": "kilogram" -}, -"Q191118": { -"factor": "1000", -"unit": "Q11570", -"label": "tonne", -"siLabel": "kilogram" -}, -"Q180892": { -"factor": "1988550", -"unit": "Q11570", -"label": "solar mass", -"siLabel": "kilogram" +"Q7727": { +"factor": "60", +"unit": "Q11574", +"label": "minute", +"siLabel": "second" }, "Q11570": { "factor": "1", @@ -113,125 +41,11 @@ "label": "kilogram", "siLabel": "kilogram" }, -"Q41803": { -"factor": "0.001", -"unit": "Q11570", -"label": "gram", -"siLabel": "kilogram" -}, -"Q857027": { -"factor": "0.09290304", -"unit": "Q25343", -"label": "square foot", -"siLabel": "square metre" -}, -"Q81292": { -"factor": "4046.8564224", -"unit": "Q25343", -"label": "acre", -"siLabel": "square metre" -}, -"Q25343": { +"Q11573": { "factor": "1", -"unit": "Q25343", -"label": "square metre", -"siLabel": "square metre" -}, -"Q21074767": { -
[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add more units for conversion
Smalyshev has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/362606 ) Change subject: Add more units for conversion .. Add more units for conversion This covers all units having conversion to SI units up to now. Bug: T168582 Change-Id: I814d6919d816f64247462830d7e4107c5b84093b --- M wmf-config/unitConversionConfig.json 1 file changed, 2,589 insertions(+), 225 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/06/362606/1 diff --git a/wmf-config/unitConversionConfig.json b/wmf-config/unitConversionConfig.json index 25f84a9..6f3b21e 100644 --- a/wmf-config/unitConversionConfig.json +++ b/wmf-config/unitConversionConfig.json @@ -1,15 +1,27 @@ { -"Q11573": { -"factor": "1", +"Q531": { +"factor": "9460730472580800", "unit": "Q11573", -"label": "metre", +"label": "light-year", "siLabel": "metre" }, -"Q218593": { -"factor": "0.0254", +"Q573": { +"factor": "86400", +"unit": "Q11574", +"label": "day", +"siLabel": "second" +}, +"Q1811": { +"factor": "149597870691", "unit": "Q11573", -"label": "inch", +"label": "astronomical unit", "siLabel": "metre" +}, +"Q2111": { +"factor": "299792458", +"unit": "Q182429", +"label": "speed of light", +"siLabel": "metre per second" }, "Q3710": { "factor": "0.3048", @@ -17,95 +29,11 @@ "label": "foot", "siLabel": "metre" }, -"Q178674": { -"factor": "0.1", -"unit": "Q11573", -"label": "nanometre", -"siLabel": "metre" -}, -"Q93318": { -"factor": "1852", -"unit": "Q11573", -"label": "nautical mile", -"siLabel": "metre" -}, -"Q253276": { -"factor": "1609.344", -"unit": "Q11573", -"label": "mile", -"siLabel": "metre" -}, -"Q174728": { -"factor": "0.01", -"unit": "Q11573", -"label": "centimetre", -"siLabel": "metre" -}, -"Q174789": { -"factor": "0.001", -"unit": "Q11573", -"label": "millimetre", -"siLabel": "metre" -}, -"Q531": { -"factor": "9460730472580800", -"unit": "Q11573", -"label": "light-year", -"siLabel": "metre" -}, -"Q1811": { -"factor": "149597870700", -"unit": "Q11573", -"label": "astronomical unit", -"siLabel": "metre" -}, -"Q828224": { -"factor": "1000", -"unit": "Q11573", -"label": "kilometre", -"siLabel": "metre" -}, -"Q482798": { -"factor": "0.9144", -"unit": "Q11573", -"label": "yard", -"siLabel": "metre" -}, -"Q25906460": { -"factor": "0.01847", -"unit": "Q11573", -"label": "dactylos", -"siLabel": "metre" -}, -"Q613726": { -"factor": "10", -"unit": "Q11570", -"label": "yottagram", -"siLabel": "kilogram" -}, -"Q100995": { -"factor": "0.45359237", -"unit": "Q11570", -"label": "pound", -"siLabel": "kilogram" -}, -"Q483261": { -"factor": "0.00166053904", -"unit": "Q11570", -"label": "atomic mass unit", -"siLabel": "kilogram" -}, -"Q191118": { -"factor": "1000", -"unit": "Q11570", -"label": "tonne", -"siLabel": "kilogram" -}, -"Q180892": { -"factor": "1988550", -"unit": "Q11570", -"label": "solar mass", -"siLabel": "kilogram" +"Q7727": { +"factor": "60", +"unit": "Q11574", +"label": "minute", +"siLabel": "second" }, "Q11570": { "factor": "1", @@ -113,125 +41,11 @@ "label": "kilogram", "siLabel": "kilogram" }, -"Q41803": { -"factor": "0.001", -"unit": "Q11570", -"label": "gram", -"siLabel": "kilogram" -}, -"Q857027": { -"factor": "0.09290304", -"unit": "Q25343", -"label": "square foot", -"siLabel": "square metre" -}, -"Q81292": { -"factor": "4046.8564224", -"unit": "Q25343", -"label": "acre", -"siLabel": "square metre" -}, -"Q25343": { +"Q11573": { "factor": "1", -"unit": "Q25343", -"label": "square metre", -"siLabel": "square metre" -}, -"Q21074767": { -"factor": "1138100", -"unit": "Q25343", -"label": "square versta", -"siLabel": "square metre" -}, -"Q232291": { -"factor": "2589988.110336", -"unit": "Q25343", -"label": "square