Anonymous user
Module:Convert/text: Difference between revisions
final tweaking to messages
(rework categories and messages per Module talk:Convert) |
(final tweaking to messages) |
||
Line 68:
local all_messages = {
-- Message format string, %s parameters: anchor, title, text, category.
-- Each displayed message starts with "Convert:" so can easily locate by searching article.
cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">
-- Each of following messages is a table:
-- { [1] = 'title', -- mouseover title text
-- [2] = 'text', --
-- [3] = 'category key', -- key to lookup category in all_categories
-- [4] = 'anchor', -- anchor for link to relevant section on help page
-- regex = gsub_regex,
-- replace = gsub_table,
-- } Mouseover title text Link text CatKey Anchor
cvt_bad_num = { 'Value "%s" must be a number' , '
cvt_big_prec = { 'Precision "%s" is too large' , '
cvt_invalid_num = { 'Number has overflowed' , '
cvt_no_num = { '
cvt_no_num2 = { '
cvt_bad_prec = { 'Precision "%s" must be an integer' , '
cvt_bad_sigfig = { 'sigfig "%s" must be a positive integer' , '
cvt_empty_option = { 'Ignored empty option "%s"' , '
cvt_no_spell = { 'Spelling is not available' , '
cvt_unknown_option = { 'Ignored invalid option "%s"' , '
cvt_bad_default = { 'Unit "%s" has an invalid default' , '
cvt_bad_unit = { 'Unit "%s" is invalid here' , '
cvt_no_default = { 'Unit "%s" has no default output unit' , '
cvt_no_unit = { '
cvt_unknown = { 'Unit name "%s" is not known' , '
cvt_should_be = { '%s' , '
cvt_mismatch = { 'Cannot convert "%s" to "%s"' , '
cvt_bug_convert = { 'Bug: Cannot convert between specified units', '
cvt_lookup = { 'Unit "%s" is incorrectly defined' , '
}
|