Sửa đổi Mô đun:Convert
Chú ý: Bạn chưa đăng nhập và địa chỉ IP của bạn sẽ hiển thị công khai khi lưu các sửa đổi.
Bạn có thể tham gia như người biên soạn chuyên nghiệp và lâu dài ở Bách khoa Toàn thư Việt Nam, bằng cách đăng ký và đăng nhập - IP của bạn sẽ không bị công khai và có thêm nhiều lợi ích khác.
Các sửa đổi có thể được lùi lại. Xin hãy kiểm tra phần so sánh bên dưới để xác nhận lại những gì bạn muốn làm, sau đó lưu thay đổi ở dưới để hoàn tất việc lùi lại sửa đổi.
Bản hiện tại | Nội dung bạn nhập | ||
Dòng 83: | Dòng 83: | ||
local add_warning -- forward declaration | local add_warning -- forward declaration | ||
local function to_en_with_check(text, parms) | local function to_en_with_check(text, parms) | ||
− | -- Version of to_en() | + | -- Version of to_en() for a wiki using numdot = ',' and numsep = '.' to check |
− | -- text (an input number as a string) | + | -- text (an input number as a string) which might have been copied from enwiki. |
-- For example, in '1.234' the '.' could be a decimal mark or a group separator. | -- For example, in '1.234' the '.' could be a decimal mark or a group separator. | ||
+ | -- From viwiki. | ||
if to_en_table then | if to_en_table then | ||
text = ustring.gsub(text, '%d', to_en_table) | text = ustring.gsub(text, '%d', to_en_table) | ||
Dòng 264: | Dòng 265: | ||
local function message(mcode) | local function message(mcode) | ||
− | -- Return error message, including category if specified | + | -- Return wikitext for an error message, including category if specified |
-- for the message type. | -- for the message type. | ||
-- mcode = numbered table specifying the message: | -- mcode = numbered table specifying the message: |