Anonymous user
Module:Convert/text: Difference between revisions
Jump to navigation
Jump to search
update from sandbox per Template talk:Convert#Module version 28
Richardpruen (talk | contribs) m (1 revision imported: Templates and CSS files) |
(update from sandbox per Template talk:Convert#Module version 28) |
||
Line 6: | Line 6: | ||
local SIprefixes = { | local SIprefixes = { | ||
-- The prefix field is what the prefix should be, if different from the prefix used. | -- The prefix field is what the prefix should be, if different from the prefix used. | ||
['Q'] = { exponent = 30, name = 'quetta', }, | |||
['R'] = { exponent = 27, name = 'ronna', }, | |||
['Y'] = { exponent = 24, name = 'yotta', }, | ['Y'] = { exponent = 24, name = 'yotta', }, | ||
['Z'] = { exponent = 21, name = 'zetta', }, | ['Z'] = { exponent = 21, name = 'zetta', }, | ||
Line 28: | Line 30: | ||
['z'] = { exponent =-21, name = 'zepto', }, | ['z'] = { exponent =-21, name = 'zepto', }, | ||
['y'] = { exponent =-24, name = 'yocto', }, | ['y'] = { exponent =-24, name = 'yocto', }, | ||
['r'] = { exponent =-27, name = 'ronto', }, | |||
['q'] = { exponent =-30, name = 'quecto', }, | |||
} | } | ||
Line 110: | Line 114: | ||
["sqbr-nbsp"] = { " [" , "]" }, | ["sqbr-nbsp"] = { " [" , "]" }, | ||
["comma"] = { ", " , "" , ", " }, | ["comma"] = { ", " , "" , ", " }, | ||
["semicolon"] = { "; " , "" }, | |||
["slash-sp"] = { " / " , "" , wantname = true }, | ["slash-sp"] = { " / " , "" , wantname = true }, | ||
["slash-nbsp"] = { " / ", "" , wantname = true }, | ["slash-nbsp"] = { " / ", "" , wantname = true }, | ||
Line 261: | Line 266: | ||
["output only"] = "opt_output_only", | ["output only"] = "opt_output_only", | ||
["preunit"] = "opt_two_preunits", -- user-specified text before input and output units | ["preunit"] = "opt_two_preunits", -- user-specified text before input and output units | ||
["semicolon"] = "semicolon", -- join: ';' | |||
["sqbr"] = "sqbr", -- join: '[...]' | ["sqbr"] = "sqbr", -- join: '[...]' | ||
["table"] = "opt_table", -- output is suitable for a table cell with align="right" | ["table"] = "opt_table", -- output is suitable for a table cell with align="right" | ||
Line 309: | Line 315: | ||
["on"] = "opt_spell_in, opt_spell_out", -- spell input and output values in words | ["on"] = "opt_spell_in, opt_spell_out", -- spell input and output values in words | ||
["On"] = "opt_spell_in, opt_spell_out, opt_spell_upper", -- same, with first letter of first word in result uppercase | ["On"] = "opt_spell_in, opt_spell_out, opt_spell_upper", -- same, with first letter of first word in result uppercase | ||
["us"] = "opt_sp_us", -- use U.S. spelling; same as sp=us so spell=us also works | |||
}, | }, | ||
["stylein"] = 'TEXT', | ["stylein"] = 'TEXT', |