Module:Convert/text: Difference between revisions

(update from sandbox per Template talk:Convert#Module version 6)
(update from sandbox per Template talk:Convert#Module version 8)
Line 97:
-- Text to join input value/unit with output value/unit.
local disp_joins = {
-- Position: [1]=before output, [2]=after between (wrt output;, "[3]=between" isoutputs forin a combination; default "; ").
-- [wantname] gives default abbr=off
["or"] = { " or " , "" , " or ", wantname = true },
["sqbr-sp"] = { " [" , "]" },
["sqbr-nbsp"] = { " [" , "]" },
["comma"] = { ", " , "" },
["slash-sp"] = { " / " , "" , wantname = true },
["slash-nbsp"] = { " / ", "" , wantname = true },
["slash-nosp"] = { "/" , "" , wantname = true },
["b"] = { " (" , ")" },
["(or)"] = { " (" , ")", " or " },
["br"] = { "<br />" , "" , wantname = true },
["br()"] = { "<br />(" , ")", wantname = true },
}
 
Line 236 ⟶ 238:
["b"] = "b", -- join: '(...)'
["(or)"] = "(or)", -- join: '(...)' with 'or' between outputs in a combination
["br"] = "br", -- join: '<br />'
["br()"] = "br()", -- join: '<br />(...)'
["comma"] = "comma", -- join: ','
["flip"] = "opt_flip", -- reverse order of input/output
Anonymous user