{ "description": "Test in-text annotation on `_tem` with display unit preference (en)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has temperature", "contents": "[[Has type::Temperature]] [[Display unit::Celsius]]" }, { "page": "Example/P0415/1", "contents": "[[Has temperature:: 32 °F]] [[Has temperature::100 °C]]" }, { "page": "Example/P0415/1a", "contents": "{{#ask: [[Example/P0415/1]] |?Has temperature|+order=asc |?Has temperature#-=-|+order=asc |?Has temperature#-u=-u|+order=asc |?Has temperature#-n=-n|+order=asc |?Has temperature#°R=°R|+order=asc |format=table }}" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0415/1", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "_SKEY", "_MDAT", "Has_temperature" ], "propertyValues": [ 273.15, 373.15 ] } } }, { "type": "parser", "about": "#2", "subject": "Example/P0415/1a", "assert-output": { "to-contain": [ "0 °C273.15 K <br />32 °F <br />491.67 °R <br />", "100 °C373.15 K <br />212 °F <br />671.67 °R <br />", "0 °C
100 °C", "°C
°C", "0
100", "491.67 °R0 °C <br />273.15 K <br />32 °F <br />", "671.67 °R100 °C <br />373.15 K <br />212 °F <br />" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en" }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }