Modul:Convert/text und Modul:Convert/text/sandbox: Unterschied zwischen den Seiten
Erscheinungsbild
(Unterschied zwischen Seiten)
Inhalt gelöscht Inhalt hinzugefügt
aus engl. Wikipedia, benötigt für Modul Val |
it. Version zum Übertragen |
||
Zeile 1: | Zeile 1: | ||
-- Text used by Module:Convert for |
-- Text used by Module:Convert, for en.wikipedia.org (English). |
||
-- This is a separate module to simplify translation for use on another wiki. |
-- This is a separate module to simplify translation for use on another wiki. |
||
-- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki. |
-- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki. |
||
local translation_table = { |
|||
numdot = ',', -- decimal mark |
|||
numsep = ' ', -- separator for number grouping |
|||
per_word = 'per', -- for units like "miles per gallon" |
|||
plural_suffix = '', -- disable plural unit names |
|||
specials = { -- for special processing by makeunits |
|||
-- PLEASE DO NOT CHANGE THE FOLLOWING |
|||
-- until all the units have been fixed |
|||
-- (the text used here must be the same as that used in the unit definitions). |
|||
utype = { |
|||
-- ["unit type in local language"] = "name_used_in_this_script" |
|||
["efficenza del carburante"] = "type_fuel_efficiency", |
|||
["lunghezza"] = "type_length", |
|||
["temperatura"] = "type_temperature", |
|||
["volume"] = "type_volume", |
|||
}, |
|||
ucode = { |
|||
exception = { |
|||
-- ["unit code in local language"] = "name_used_in_module_convert" |
|||
["ft"] = "integer_more_precision", |
|||
["in"] = "subunit_more_precision", |
|||
["lb"] = "integer_more_precision", |
|||
}, |
|||
istemperature = { |
|||
-- Common temperature scales (not keVT or MK). |
|||
-- ["unit code in local language"] = 1 |
|||
["C"] = true, |
|||
["F"] = true, |
|||
["K"] = true, |
|||
["R"] = true, |
|||
}, |
|||
usesymbol = { |
|||
-- Use unit symbol not name if abbr not specified. |
|||
-- ["unit code in local language"] = 1 |
|||
["C"] = 1, |
|||
["F"] = 1, |
|||
["K"] = 1, |
|||
["R"] = 1, |
|||
["C-change"] = 1, |
|||
["F-change"] = 1, |
|||
["K-change"] = 1, |
|||
}, |
|||
alttype = { |
|||
-- Unit has an alternate type that is a valid conversion. |
|||
-- ["unit code in local language"] = "alternate type in local language" |
|||
["Nm"] = "energia", |
|||
["ftlb"] = "momento meccanico", |
|||
["ftlb-f"] = "momento meccanico", |
|||
["ftlbf"] = "momento meccanico", |
|||
["inlb"] = "momento meccanico", |
|||
["inlb-f"] = "momento meccanico", |
|||
["inlbf"] = "momento meccanico", |
|||
["inoz-f"] = "momento meccanico", |
|||
["inozf"] = "momento meccanico", |
|||
}, |
|||
}, |
|||
}, |
|||
mtext = { |
|||
-- Text used by Module:Convert/makeunits. |
|||
titles = { |
|||
-- name_used_in_this_script = "Title of page" |
|||
conversion_data = 'Template:Converti/Man/Conversion data', |
|||
}, |
|||
}, |
|||
} |
|||
-- Some units accept an SI prefix before the unit code, such as "kg" for kilogram. |
-- Some units accept an SI prefix before the unit code, such as "kg" for kilogram. |
||
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. |
||
['Y'] = { exponent = 24, name = 'yotta' |
['Y'] = { exponent = 24, name = 'yotta'}, |
||
['Z'] = { exponent = 21, name = 'zetta' |
['Z'] = { exponent = 21, name = 'zetta'}, |
||
['E'] = { exponent = 18, name = 'exa' |
['E'] = { exponent = 18, name = 'exa' }, |
||
['P'] = { exponent = 15, name = 'peta' |
['P'] = { exponent = 15, name = 'peta' }, |
||
['T'] = { exponent = 12, name = 'tera' |
['T'] = { exponent = 12, name = 'tera' }, |
||
['G'] = { exponent = 9, name = 'giga' |
['G'] = { exponent = 9, name = 'giga' }, |
||
['M'] = { exponent = 6, name = 'mega' |
['M'] = { exponent = 6, name = 'mega' }, |
||
['k'] = { exponent = 3, name = ' |
['k'] = { exponent = 3, name = 'chilo'}, |
||
['h'] = { exponent = 2, name = ' |
['h'] = { exponent = 2, name = 'etto'}, |
||
['da']= { exponent = 1, name = 'deca |
['da']= { exponent = 1, name = 'deca' }, |
||
['d'] = { exponent = -1, name = 'deci' |
['d'] = { exponent = -1, name = 'deci' }, |
||
['c'] = { exponent = -2, name = 'centi' |
['c'] = { exponent = -2, name = 'centi'}, |
||
['m'] = { exponent = -3, name = 'milli' |
['m'] = { exponent = -3, name = 'milli'}, |
||
['μ'] = { exponent = -6, name = 'micro', |
['μ'] = { exponent = -6, name = 'micro', prefix = 'µ'}, -- key = 'GREEK SMALL LETTER MU' (U+03BC) utf-8 CE BC |
||
['µ'] = { exponent = -6, name = 'micro' |
['µ'] = { exponent = -6, name = 'micro'}, -- key = 'MICRO SIGN' (U+00B5) utf-8 C2 B5 |
||
['u'] = { exponent = -6, name = 'micro', prefix = ' |
['u'] = { exponent = -6, name = 'micro', prefix = 'µ'}, -- not an SI prefix, but allow for people typing this |
||
['n'] = { exponent = -9, name = 'nano' |
['n'] = { exponent = -9, name = 'nano' }, |
||
['p'] = { exponent =-12, name = 'pico' |
['p'] = { exponent =-12, name = 'pico' }, |
||
['f'] = { exponent =-15, name = 'femto' |
['f'] = { exponent =-15, name = 'femto'}, |
||
['a'] = { exponent =-18, name = 'atto' |
['a'] = { exponent =-18, name = 'atto' }, |
||
['z'] = { exponent =-21, name = 'zepto' |
['z'] = { exponent =-21, name = 'zepto'}, |
||
['y'] = { exponent =-24, name = 'yocto' |
['y'] = { exponent =-24, name = 'yocto'}, |
||
} |
} |
||
-- Some units can be qualified with one of the following prefixes, when linked. |
-- Some units can be qualified with one of the following prefixes, when linked. |
||
local customary_units = { |
local customary_units = { |
||
{ "US", link = " |
{ "US", link = "Sistema consuetudinario statunitense" }, |
||
{ "U.S.", link = " |
{ "U.S.", link = "Sistema consuetudinario statunitense" }, |
||
{ "imperial", link = " |
{ "imperial", link = "Sistema imperiale britannico" }, |
||
{ "imp", link = " |
{ "imp", link = "Sistema imperiale britannico" }, |
||
} |
} |
||
Zeile 42: | Zeile 107: | ||
-- If lk=on and link is defined, the name of the number will appear as a link. |
-- If lk=on and link is defined, the name of the number will appear as a link. |
||
local eng_scales = { |
local eng_scales = { |
||
["3"] = { " |
["3"] = { "migliaia di", exponent = 3 }, |
||
["6"] = { " |
["6"] = { "milioni di", exponent = 6 }, |
||
["9"] = { " |
["9"] = { "miliardi di", link = "Miliardo", exponent = 9 }, |
||
["12"] = { " |
["12"] = { "bilione di", link = "Bilione", exponent = 12 }, |
||
["15"] = { " |
["15"] = { "biliardo di", link = "Biliardo (numero)", exponent = 15 }, |
||
} |
} |
||
-- One of the following categories is included in the text of each message. |
|||
local all_categories = { |
local all_categories = { |
||
unit = "[[ |
unit = "[[Categoria:Errori di compilazione del template Converti]]", |
||
option = "[[ |
option = "[[Categoria:Errori di compilazione del template Converti]]", |
||
warning = '[[Category:Convert invalid options]]', |
|||
tracking = '[[Category:Convert tracking]]', |
|||
} |
} |
||
Zeile 63: | Zeile 127: | ||
-- All messages that may be displayed if a problem occurs. |
-- All messages that may be displayed if a problem occurs. |
||
local all_messages = { |
local all_messages = { |
||
-- Message format string: |
-- Message format string, %s parameters: anchor, title, text, category. |
||
-- Each displayed message starts with "Convert:" so can easily locate by searching article. |
-- Each displayed message starts with "Convert:" so can easily locate by searching article. |
||
cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[ |
cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[Template:Converti/Man/Messaggi#%s|<span title="Converti: %s">converti: %s</span>]]</i>]</sup>%s', |
||
cvt_format2 = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[[ |
cvt_format2 = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[[Template:Converti/Man/Messaggi#%s|<span title="Converti: %s">%s</span>]]</sup>%s', |
||
cvt_format_preview = '<strong class="error">Error in convert: $1 [[Help:Convert messages#$4|(help)]]</strong>$3', |
|||
-- Each of following messages is a table: |
-- Each of following messages is a table: |
||
-- { [1] = 'title', -- mouseover title text |
-- { [1] = 'title', -- mouseover title text |
||
Zeile 76: | Zeile 139: | ||
-- replace = gsub_table, |
-- replace = gsub_table, |
||
-- } Mouseover title text Link text CatKey Anchor |
-- } Mouseover title text Link text CatKey Anchor |
||
cvt_bad_num = { 'Il valore "%s" deve essere un numero', 'numero non valido', 'option', 'invalid_number'}, |
|||
cvt_big_prec = { 'La precisione "%s" è troppo grande', 'precisione troppo grande', 'option', 'precision_too_large' }, |
|||
cvt_invalid_num = { 'Overflow aritmetico del numero', 'overflow aritmetico', 'option', 'number_overflow' }, |
|||
cvt_no_num = { 'Manca il numero da convertire', 'serve un numero', 'option', 'needs_number' }, |
|||
cvt_no_num2 = { 'Manca un altro numero all\'intervallo', 'serve un altro numero', 'option', 'needs_another_number' }, |
|||
cvt_bad_frac = { 'Il frazionale "%s" deve essere un intero maggiore di 1', 'frazione non valida', 'option', 'invalid_fraction' }, |
|||
cvt_bad_prec = { 'La precisione "%s" deve essere un intero', 'precisione non valida', 'option', 'invalid_precision' }, |
|||
cvt_bad_sigfig = { 'sigfig "%s" deve essere un intero positivo', 'sigfig non valido', 'option', 'invalid_sigfig'}, |
|||
cvt_empty_option = { 'Opzione vuota "%s" ignorata', 'opzione vuota', 'option', 'empty_option' }, |
|||
cvt_deprecated = { 'Opzione "%s" deprecata', '*', 'option', 'opzione deprecata', format = 'cvt_format2' }, |
|||
cvt_empty_option = { 'Ignored empty option "$1"' , 'empty option' , 'option', 'empty_option' }, |
|||
cvt_no_spell = { 'Spelling is not available', 'bug, ask for help', 'option', 'ask_for_help' }, |
|||
cvt_deprecated = { 'Option "$1" is deprecated' , '*' , 'option', 'deprecated_option', format = 'cvt_format2', nowarn = true }, |
|||
cvt_unknown_option = { 'Opzione "%s" non valida, è stata ignorata', 'opzione non valida', 'option', 'invalid_option'}, |
|||
cvt_bad_default = { 'L\'unità di misura "%s" ha un valore di default non valido', 'bug, ask for help', 'unit', 'ask_for_help' }, |
|||
cvt_bad_unit = { 'L\'unità di misura "%s" non è valida', 'unità di misura non valida', 'unit', 'unit_invalid_here' }, |
|||
cvt_wd_fail = { 'Unable to access Wikidata' , 'wikidata problem' , 'option', 'wikidata_problem' }, |
|||
cvt_no_default = { 'L\'unità di misura "%s" non ha un\'unità di conversione valida', 'bug, ask for help', 'unit', 'ask_for_help' }, |
|||
cvt_no_unit = { 'Manca il nome dell\'unità di misura', 'nome dell\'unità mancante', 'unit', 'needs_unit_name' }, |
|||
cvt_unknown = { 'Il nome dell\'unità di misura "%s" non è stato riconosciuto', 'unità di misura sconosciuta', 'unit', 'unknown_unit' }, |
|||
cvt_should_be = { '%s', 'unità ambigua', 'unit', 'ambiguous_unit', regex = unitcode_regex, replace = unitcode_replace }, |
|||
cvt_no_unit = { 'Needs name of unit' , 'needs unit name' , 'unit' , 'needs_unit_name' }, |
|||
cvt_mismatch = { 'Non posso convertire l\'unità di misura "%s" in "%s"', 'unità di misura incompatibili', 'unit', 'unit_mismatch' }, |
|||
cvt_bug_convert = { 'Bug: non posso convertire tra le unità specificate', 'bug, ask for help', 'unit', 'ask_for_help' }, |
|||
cvt_should_be = { '$1' , 'ambiguous unit' , 'unit' , 'ambiguous_unit', regex = unitcode_regex, replace = unitcode_replace }, |
|||
cvt_lookup = { 'L\'unità "%s" non è definita correttamente', 'bug, ask for help', 'unit', 'ask_for_help' }, |
|||
cvt_enwiki_num = { 'Il valore "%s" dovrebbe essere scritto come: "%s"', 'numero non valido', 'option', 'invalid_number' }, |
|||
cvt_bug_convert = { 'Bug: Cannot convert between specified units', 'bug, ask for help' , 'unit' , 'ask_for_help' }, |
|||
cvt_lookup = { 'Unit "$1" is incorrectly defined' , 'bug, ask for help' , 'unit' , 'ask_for_help' }, |
|||
} |
} |
||
Zeile 105: | Zeile 167: | ||
-- [1]=before output, [2]=after output, [3]=between outputs in a combination; default "; " |
-- [1]=before output, [2]=after output, [3]=between outputs in a combination; default "; " |
||
-- [wantname] gives default abbr=off |
-- [wantname] gives default abbr=off |
||
["or"] = { " |
["or"] = { " o " , "" , " o ", wantname = true }, |
||
["sqbr-sp"] = { " [" , "]" }, |
["sqbr-sp"] = { " [" , "]" }, |
||
["sqbr-nbsp"] = { " [" , "]" }, |
["sqbr-nbsp"] = { " [" , "]" }, |
||
Zeile 129: | Zeile 191: | ||
["+"] = " + ", |
["+"] = " + ", |
||
[","] = ", ", |
[","] = ", ", |
||
[", and"] = " |
[", and"] = " e ", |
||
[", or"] = " |
[", or"] = " o ", |
||
["by"] = " |
["by"] = " per ", |
||
["-"] = "–", |
["-"] = "–", |
||
["to about"] = " |
["to about"] = " fino a circa ", |
||
["and"] = { off = " |
["and"] = { off = " e ", on = " e " }, |
||
["and(-)"] = { input = " |
["and(-)"] = { input = " e ", output = "–" }, |
||
["or"] = { off = " |
["or"] = { off = " o " , on = " o "}, |
||
["to"] = { off = " |
["to"] = { off = " fino a " , on = " fino a " }, |
||
["to(-)"] = { input = " |
["to(-)"] = { input = " a ", output = "–" }, |
||
["+/-"] = { off = " ± ", on = " ± ", adj = " ± ", is_range_change = true }, |
["+/-"] = { off = " ± ", on = " ± ", adj = " ± ", is_range_change = true }, |
||
["by(x)"] = { input = " |
["by(x)"] = { input = " per ", output = " × ", out_range_x = true }, |
||
["x"] = { off = " |
["x"] = { off = " per ", on = " × ", abbr_range_x = true }, |
||
["X"] = { off = " per ", on = " × " }, -- TEMPORARY and undocumented option for experiments to compare with new abbr_range_x |
|||
["xx"] = " × ", |
["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}} |
|||
} |
} |
||
local range_aliases = { |
local range_aliases = { |
||
-- ["alternative name for a range"] = "standard range name" |
-- ["alternative name for a range"] = "standard range name" |
||
[" |
["&"] = "and", |
||
["e"] = "and", |
|||
["–"] = "-", |
|||
["–"] = "-", |
["–"] = "-", |
||
["to-"] = "to(-)", |
|||
["a-"] = "to(-)", |
|||
["×"] = "x", |
["×"] = "x", |
||
["×"] = "x", |
["×"] = "x", |
||
["±"] = "+/-", |
["±"] = "+/-", |
||
["±"] = "+/-", |
["±"] = "+/-", |
||
["o"] = "or", |
|||
["per"] = "x", |
|||
["per(x)"] = "by(x)", |
|||
["fino a"] = "to", |
|||
["fino a(-)"] = "to(-)", |
|||
["fino a circa"] = "to about" |
|||
} |
} |
||
Zeile 178: | Zeile 250: | ||
["disp"] = "disp", |
["disp"] = "disp", |
||
["frac"] = "frac", |
["frac"] = "frac", |
||
["input"] = "input", |
|||
["lang"] = "lang", |
["lang"] = "lang", |
||
["lk"] = "lk", |
["lk"] = "lk", |
||
["near"] = "near", |
|||
["order"] = "order", |
["order"] = "order", |
||
["qid"] = "qid", |
|||
["qual"] = "qual", |
|||
["qualifier"] = "qual", |
|||
["round"] = "round", |
["round"] = "round", |
||
["sigfig"] = "sigfig", |
["sigfig"] = "sigfig", |
||
-- ["sing"] = "adj", -- "sing" is an old alias for "adj" |
|||
["sortable"] = "sortable", |
["sortable"] = "sortable", |
||
-- ["sp"] = "sp", |
|||
-- ["spell"] = "spell", |
|||
["stylein"] = "stylein", |
["stylein"] = "stylein", |
||
["styleout"] = "styleout", |
["styleout"] = "styleout", |
||
["tracking"] = "tracking", |
|||
} |
} |
||
Zeile 199: | Zeile 267: | ||
-- Convention: parms.opt_xxx refers to an option that is set here |
-- Convention: parms.opt_xxx refers to an option that is set here |
||
-- (not intended to be set by the template which invokes this module). |
-- (not intended to be set by the template which invokes this module). |
||
-- Example: At |
-- Example: At en.wiki, "abbr" includes: |
||
-- ["comma"] = "opt_nocomma" |
-- ["comma"] = "opt_nocomma" |
||
-- As a result, if the template uses abbr=comma, |
-- As a result, if the template uses abbr=comma, this script sets: |
||
-- parms["opt_nocomma"] = true |
-- parms["opt_nocomma"] = true |
||
-- parms["abbr"] = nil |
-- parms["abbr"] = nil |
||
Zeile 211: | Zeile 279: | ||
["abbr"] = { |
["abbr"] = { |
||
-- ["local text for option value"] = "en value used in this module" |
-- ["local text for option value"] = "en value used in this module" |
||
["comma"] = "opt_nocomma?", -- no numsep in input or output numbers |
|||
["def"] = "", -- ignored (some wrapper templates call convert with "abbr=def" to mean "default abbreviation") |
["def"] = "", -- ignored (some wrapper templates call convert with "abbr=def" to mean "default abbreviation") |
||
["h"] = "on", -- abbr=on + use "h" for hand unit (default) |
["h"] = "on", -- abbr=on + use "h" for hand unit (default) |
||
["hh"] = "opt_hand_hh", -- abbr=on + use "hh" for hand unit |
["hh"] = "opt_hand_hh", -- abbr=on + use "hh" for hand unit |
||
["in"] = "in", -- use symbol for LHS unit |
["in"] = "in", -- use symbol for LHS unit |
||
["mos"] = "mos", -- in a range, repeat the input unit (no longer used) |
|||
["none"] = "off", -- old name for "off" |
["none"] = "off", -- old name for "off" |
||
["off"] = "off", -- use name for all units |
["off"] = "off", -- use name for all units |
||
["on"] = "on", -- use symbol for all units |
["on"] = "on", -- use symbol for all units |
||
["out"] = "out", -- use symbol for RHS unit (default) |
["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 |
["values"] = "opt_values", -- show only input and output numbers, not units |
||
["~"] = "opt_also_symbol", -- show input unit symbol as well as name |
["~"] = "opt_also_symbol", -- show input unit symbol as well as name |
||
--- localizzazioni in italiano |
|||
["valori"] = "opt_values", -- show only input and output numbers, not units |
|||
}, |
}, |
||
["adj"] = { |
["adj"] = { |
||
["1"] = "opt_singular", -- unit name is singular when value satisfies: (-1 <= v and v < 0) or (0 < v and v <= 1) |
|||
["flip"] = "opt_flip?", -- reverse order of input/output |
|||
["j"] = "opt_use_nbsp", -- "join": use " " instead of " " between value and unit name |
|||
["mid"] = "opt_adjectival, opt_adj_mid", -- adj=on with user-specified text after input unit (between input and output) |
["mid"] = "opt_adjectival, opt_adj_mid", -- adj=on with user-specified text after input unit (between input and output) |
||
["nocomma"] = "opt_nocomma?", -- no numsep in input or output numbers |
|||
["off"] = "", -- ignored (off is the default) |
["off"] = "", -- ignored (off is the default) |
||
["on"] = "opt_adjectival", -- unit name is singular and hyphenated |
["on"] = "opt_adjectival", -- unit name is singular and hyphenated |
||
Zeile 237: | Zeile 312: | ||
["gaps"] = "opt_gaps", -- use gaps, not numsep, to separate groups of digits |
["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 |
["gaps3"] = "opt_gaps, opt_gaps3", -- group only in threes rather than default of no gap before a single digit after decimal mark |
||
["gaps5"] = "opt_gaps?", -- deprecated 2015-05-29, was: opt_gaps + opt_comma5 |
|||
["off"] = "opt_nocomma", -- no numsep in input or output numbers |
["off"] = "opt_nocomma", -- no numsep in input or output numbers |
||
}, |
}, |
||
Zeile 243: | Zeile 319: | ||
}, |
}, |
||
["disp"] = { |
["disp"] = { |
||
[" |
["/"] = "or?", -- see "slash" |
||
["2"] = "opt_output_only?", -- display only output value and symbol/name (not input) |
|||
["5"] = "opt_round=5", -- round output value to nearest 5 |
|||
["b"] = "b", -- join: '(...)' |
["b"] = "b", -- join: '(...)' |
||
["(or)"] = "(or)", -- join: '(...)' with 'or' between outputs in a combination |
["(or)"] = "(or)", -- join: '(...)' with 'or' between outputs in a combination |
||
Zeile 249: | Zeile 327: | ||
["br()"] = "br()", -- join: '<br />(...)' |
["br()"] = "br()", -- join: '<br />(...)' |
||
["comma"] = "comma", -- join: ',' |
["comma"] = "comma", -- join: ',' |
||
[" |
["flip5"] = "opt_flip, opt_round=5?", -- disp=flip + disp=5 |
||
["nocomma"] = "opt_nocomma?", -- no numsep in input or output numbers |
|||
["number"] = "opt_output_number_only", -- display output value (not input, and not output symbol/name) |
["number"] = "opt_output_number_only", -- display output value (not input, and not output symbol/name) |
||
["or"] = "or", -- join: 'or' |
["or"] = "or", -- join: 'or' |
||
Zeile 256: | Zeile 335: | ||
["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 |
||
["s"] = "or?", -- see "slash" |
|||
["slash"] = "or?", -- 2014-11-03: "disp=slash" is now equivalent to "disp=or" as slash is unhelpful |
|||
["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" |
||
["tablecen"] = "opt_tablecen", -- output is suitable for a table cell with align="center" |
["tablecen"] = "opt_tablecen", -- output is suitable for a table cell with align="center" |
||
["u2"] = "opt_output_unit_only?", -- display output symbol/name (not input, and not output value) |
|||
["unit"] = "opt_input_unit_only", -- display input symbol/name (not output, and not input value) |
["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 |
["unit or text"] = "opt_input_unit_only, opt_ignore_error", -- display input symbol/name, or given unit code if not known |
||
["unit2"] = "opt_output_unit_only", |
["unit2"] = "opt_output_unit_only", |
||
["x"] = "x", -- join: <first>...<second> (user-specified text) |
["x"] = "x", -- join: <first>...<second> (user-specified text) |
||
-- localizzazioni in italiano |
|||
["(o)"] = "(or)", -- join: '(...)' with 'or' between outputs in a combination |
|||
["inverti"] = "opt_flip", -- reverse order of input/output |
|||
["inverti5"] = "opt_flip, opt_round=5?", -- disp=flip + disp=5 |
|||
["novirgola"] = "opt_nocomma?", -- no numsep in input or output numbers |
|||
["numero"] = "opt_output_number_only", -- display output value (not input, and not output symbol/name) |
|||
["o"] = "or", -- join: 'or' |
|||
["preunità"] = "opt_two_preunits", -- user-specified text before input and output units |
|||
["quadre"] = "sqbr", -- join: '[...]' |
|||
["risultato"] = "opt_output_only", |
|||
["valore risultato"] = "opt_output_number_only", |
|||
["tabella"] = "opt_table", -- output is suitable for a table cell with align="right" |
|||
["tabellac"] = "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à o testo"] = "opt_input_unit_only, opt_ignore_error", -- display input symbol/name, or given unit code if not known |
|||
["unità2"] = "opt_output_unit_only", |
|||
["virgola"] = "comma" -- join: ',' |
|||
}, |
}, |
||
-- frac=x is handled as a special case: x must be an integer (possibly in local language) = 2 or more |
-- frac=x is handled as a special case: x must be an integer (possibly in local language) = 2 or more |
||
-- input=x is handled as a special case: x should be <value><space><unitcode> or <wikidata-property-id> |
|||
["lang"] = { -- language for output digits (both en and local digits are always accepted for input) |
["lang"] = { -- language for output digits (both en and local digits are always accepted for input) |
||
["en"] = "opt_lang_en", -- use en digits for numbers, regardless of local language |
["en"] = "opt_lang_en", -- use en digits for numbers, regardless of local language |
||
Zeile 275: | Zeile 373: | ||
["on"] = "on", -- link all unit names or symbols (but not twice for the same unit) |
["on"] = "on", -- link all unit names or symbols (but not twice for the same unit) |
||
["out"] = "out", -- link RHS unit name or symbol |
["out"] = "out", -- link RHS unit name or symbol |
||
}, |
|||
["near"] = { |
|||
["5"] = "opt_round=5?", -- round output value to nearest 5 |
|||
}, |
}, |
||
["order"] = { |
["order"] = { |
||
["flip"] = "opt_flip", -- reverse order of input/output |
["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. |
|||
-- qual=x is handled as a special case: x should be a Wikidata Q item identifier. |
|||
["round"] = { |
["round"] = { |
||
["0.5"] = "opt_round=0.5", -- round output value to nearest 0.5 |
["0.5"] = "opt_round=0.5", -- round output value to nearest 0.5 |
||
["0,5"] = "opt_round=0.5", -- round output value to nearest 0.5 |
|||
["5"] = "opt_round=5", -- round output value to nearest 5 |
["5"] = "opt_round=5", -- round output value to nearest 5 |
||
["10"] = "opt_round=10", -- round output value to nearest 10 (same as but clearer than "|-1") |
["10"] = "opt_round=10", -- round output value to nearest 10 (same as but clearer than "|-1") |
||
Zeile 293: | Zeile 392: | ||
["sortable"] = { |
["sortable"] = { |
||
["off"] = "", -- ignored (off is the default) |
["off"] = "", -- ignored (off is the default) |
||
["in"] = "opt_sortable_on?", -- same as "on" |
|||
["on"] = "opt_sortable_on", -- output sort key for use in a sortable table, based on value from converting to a standard base unit |
["on"] = "opt_sortable_on", -- output sort key for use in a sortable table, based on value from converting to a standard base unit |
||
["out"] = "opt_sortable_on?", -- same as "on" |
|||
}, |
}, |
||
-- ["sp"] = { |
|||
["us"] = "opt_sp_us", -- use U.S. spelling (like "meter" instead of default "metre") |
-- ["us"] = "opt_sp_us", -- use U.S. spelling (like "meter" instead of default "metre") |
||
-- }, |
|||
-- ["spell"] = { -- only English spelling is supported; not scientific notation; only some fractions |
|||
["in"] = "opt_spell_in", -- spell input value in words |
-- ["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 |
-- ["In"] = "opt_spell_in, opt_spell_upper", -- spell input value in words with first letter uppercase |
||
["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 |
||
-- }, |
|||
-- stylein=x is handled as a special case: x can be any text |
-- stylein=x is handled as a special case: x can be any text |
||
-- styleout=x is handled as a special case: x can be any text |
-- styleout=x is handled as a special case: x can be any text |
||
-- tracking=x is handled as a special case: x can be any text |
|||
} |
} |
||
Zeile 313: | Zeile 413: | ||
all_categories = all_categories, |
all_categories = all_categories, |
||
all_messages = all_messages, |
all_messages = all_messages, |
||
currency = { ['$'] = true, ['£ |
currency = { ['$'] = true, ['£'] = true }, |
||
customary_units = customary_units, |
customary_units = customary_units, |
||
disp_joins = disp_joins, |
disp_joins = disp_joins, |
||
Zeile 320: | Zeile 420: | ||
eng_scales = eng_scales, |
eng_scales = eng_scales, |
||
ranges = ranges, |
ranges = ranges, |
||
translation_table = translation_table, |
|||
} |
} |