Anonymous user
Module:Convert/text: Difference between revisions
update from sandbox per Template talk:Convert#Module version 21; this removes many deprecated options
(update from sandbox per Template talk:Convert#Module version 20) |
(update from sandbox per Template talk:Convert#Module version 21; this removes many deprecated options) |
||
Line 143:
["x"] = { off = " by ", on = " × ", abbr_range_x = true },
["xx"] = " × ",
["/"] = " / ", -- for a table of high/low temperatures with {{convert|83|/|63|F|disp=br()|abbr=values}}
}
Line 149:
local range_aliases = {
-- ["alternative name for a range"] = "standard range name"
▲ ["&"] = "and",
["–"] = "-",
["–"] = "-",
["×"] = "x",
["×"] = "x",
Line 183 ⟶ 181:
["lang"] = "lang",
["lk"] = "lk",
["order"] = "order",
["qid"] = "qid",
Line 214 ⟶ 211:
["abbr"] = {
-- ["local text for option value"] = "en value used in this module"
["def"] = "", -- ignored (some wrapper templates call convert with "abbr=def" to mean "default abbreviation")
["h"] = "on", -- abbr=on + use "h" for hand unit (default)
["hh"] = "opt_hand_hh", -- abbr=on + use "hh" for hand unit
["in"] = "in", -- use symbol for LHS unit
["none"] = "off", -- old name for "off"
["off"] = "off", -- use name for all units
Line 229 ⟶ 224:
},
["adj"] = {
["mid"] = "opt_adjectival, opt_adj_mid", -- adj=on with user-specified text after input unit (between input and output)
["off"] = "", -- ignored (off is the default)
["on"] = "opt_adjectival", -- unit name is singular and hyphenated
Line 246 ⟶ 237:
["gaps"] = "opt_gaps", -- use gaps, not numsep, to separate groups of digits
["gaps3"] = "opt_gaps, opt_gaps3", -- group only in threes rather than default of no gap before a single digit after decimal mark
["off"] = "opt_nocomma", -- no numsep in input or output numbers
},
Line 253 ⟶ 243:
},
["disp"] = {
["
["b"] = "b", -- join: '(...)'
["(or)"] = "(or)", -- join: '(...)' with 'or' between outputs in a combination
Line 262 ⟶ 250:
["comma"] = "comma", -- join: ','
["flip"] = "opt_flip", -- reverse order of input/output
["number"] = "opt_output_number_only", -- display output value (not input, and not output symbol/name)
["or"] = "or", -- join: 'or'
Line 270 ⟶ 256:
["output only"] = "opt_output_only",
["preunit"] = "opt_two_preunits", -- user-specified text before input and output units
["sqbr"] = "sqbr", -- join: '[...]'
["table"] = "opt_table", -- output is suitable for a table cell with align="right"
["tablecen"] = "opt_tablecen", -- output is suitable for a table cell with align="center"
["unit"] = "opt_input_unit_only", -- display input symbol/name (not output, and not input value)
["unit or text"] = "opt_input_unit_only, opt_ignore_error", -- display input symbol/name, or given unit code if not known
Line 292 ⟶ 275:
["on"] = "on", -- link all unit names or symbols (but not twice for the same unit)
["out"] = "out", -- link RHS unit name or symbol
},
["order"] = {
Line 313 ⟶ 293:
["sortable"] = {
["off"] = "", -- ignored (off is the default)
["on"] = "opt_sortable_on", -- output sort key for use in a sortable table, based on value from converting to a standard base unit
},
["sp"] = {
|