Module:Convert/text: Difference between revisions

(update from sandbox per Template talk:Convert#Module version 14)
(update from sandbox per Template talk:Convert#Module version 15)
Line 142:
["by(x)"] = { input = " by ", output = " × ", out_range_x = true },
["x"] = { off = " by ", on = " × ", abbr_range_x = true },
["X"] = { off = " by ", on = " × " }, -- TEMPORARY and undocumented option for experiments to compare with new abbr_range_x
["xx"] = " × ",
["*"] = "×", -- use "*" to replace "x" in {{convert/2}} which is different from "x" in old {{convert}}
["/"] = "/", -- for a table of high/low temperatures with {{convert|83|/|63|F|disp=br()|abbr=values}}
}
 
Line 221:
["on"] = "on", -- use symbol for all units
["out"] = "out", -- use symbol for RHS unit (default)
["unit"] = "unit", -- abbr=on but abbreviate units only: e6km → million km (not ×10⁶ km)
["values"] = "opt_values", -- show only input and output numbers, not units
["~"] = "opt_also_symbol", -- show input unit symbol as well as name
Line 294 ⟶ 295:
["order"] = {
["flip"] = "opt_flip", -- reverse order of input/output
["out"] = "opt_order_out", -- do not show input; instead, use order in output combination, with the first output shown as the input
},
-- qid=x is handled as a special case: x should be a Wikidata Q item identifier.
Anonymous user