Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
-- Text used by Module:Convert for this wiki.
-- Text used by Module:Convert for enwiki.
-- 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]].
-- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki.


-- 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.
['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 30: Line 28:
['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 69: Line 65:
-- Message format string: $1=title, $2=text, $3=category, $4=anchor.
-- Message format string: $1=title, $2=text, $3=category, $4=anchor.
-- 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>[[w:Help:Convert messages#$4|<span title="Convert: $1">convert: $2</span>]]</i>]</sup>$3<span class="error"></span>',
cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[Help:Convert messages#$4|<span title="Convert: $1">convert: $2</span>]]</i>]</sup>$3<span class="error"></span>',
cvt_format2 = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[[w:Help:Convert messages#$4|<span title="Convert: $1">$2</span>]]</sup>$3<span class="error"></span>',
cvt_format2 = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[[Help:Convert messages#$4|<span title="Convert: $1">$2</span>]]</sup>$3<span class="error"></span>',
cvt_format_preview = '<strong class="error">Error in convert: $1 [[w:Help:Convert messages#$4|(help)]]</strong>$3',
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
Line 114: Line 110:
["sqbr-nbsp"]  = { "&nbsp;[" , "]" },
["sqbr-nbsp"]  = { "&nbsp;[" , "]" },
["comma"]      = { ", "      , "" , ", " },
["comma"]      = { ", "      , "" , ", " },
["semicolon"]  = { "; "      , ""  },
["slash-sp"]  = { " / "    , "" , wantname = true },
["slash-sp"]  = { " / "    , "" , wantname = true },
["slash-nbsp"] = { "&nbsp;/ ", "" , wantname = true },
["slash-nbsp"] = { "&nbsp;/ ", "" , wantname = true },
Line 266: Line 261:
["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 315: Line 309:
["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',
Please note that all contributions to skyHow are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) (see skyHow:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: