Module:Convert/text: Difference between revisions

Jump to navigation Jump to search
add spell option; use more commonly used comma rather than colon for list
(new options for bn:: group 3-then-2; no plural unit names; new parameters: comma=5/gaps/gaps5)
(add spell option; use more commonly used comma rather than colon for list)
Line 161:
cvt_no_num2 = { 'Need second value', 'general' },
cvt_no_unit = { 'Need name of unit', 'unknown' },
cvt_unknown_option = { 'Ignored invalid option "%s"', 'option', warning = true },
cvt_should_be = { '%s', 'general', regex = unitcode_regex, replace = unitcode_replace },
cvt_spell_unavailable = { 'Spelling is not available', 'option', warning = true },
cvt_unknown = { 'Unit "%s" is not known', 'unknown' },
cvt_unknown_option = { 'Ignored invalid option "%s"', 'option', warning = true },
}
 
Line 215 ⟶ 216:
["sortable"] = "sortable",
["sp"] = "sp",
["spell"] = "spell",
}
 
Line 261 ⟶ 263:
["comma"] = "comma", -- join: ','
["flip"] = "opt_flip", -- reverse order of input/output
["flip5"] = "opt_flip:, opt_round5", -- disp=flip + disp=5
["nocomma"] = "opt_nocomma", -- no numsep in input or output numbers
["number"] = "opt_output_number_only",
Line 282 ⟶ 284:
["5"] = "opt_comma5", -- only use numsep grouping if 5 or more digits
["gaps"] = "opt_gaps", -- use gaps, not numsep, to separate groups of digits
["gaps5"] = "opt_gaps:, opt_comma5", -- opt_gaps + opt_comma5
},
["lang"] = {
Line 299 ⟶ 301:
["sp"] = {
["us"] = "opt_sp_us", -- use U.S. spelling (like "meter" instead of default "metre")
},
["spell"] = { -- only English spelling is supported; only for input; not scientific notation; only some fractions
["in"] = "opt_spell_in", -- spell input value in words
["In"] = "opt_spell_in, opt_spell_upper", -- spell input value in words with first letter uppercase
},
}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu