پودمان:Numeral converter: تفاوت میان نسخه‌ها

۳۲۲ بایت اضافه‌شده ،  ‏۱۴ ژانویهٔ ۲۰۱۹
جز
۱ نسخه واردشده
جز (۱ نسخه واردشده)
جز (۱ نسخه واردشده)
 
(۶ نسخهٔ میانی ویرایش شده توسط ۲ کاربر نشان داده نشد)
خط ۲۰: خط ۲۰:
   text = mw.ustring.gsub(text, "جنوبی", "S")
   text = mw.ustring.gsub(text, "جنوبی", "S")
   text = mw.ustring.gsub(text, "غربی", "W")
   text = mw.ustring.gsub(text, "غربی", "W")
  return text
end
function p.convert_Fa_cordination(text)
  text = tostring(text)
  text = mw.ustring.gsub(text,"N", "شمالی")
  text = mw.ustring.gsub(text,"E", "شرقی")
  text = mw.ustring.gsub(text,  "S","جنوبی")
  text = mw.ustring.gsub(text, "W","غربی")
   return text
   return text
end
end
خط ۳۹: خط ۴۸:
     text = mw.ustring.gsub(text, "[8٨]", "۸")
     text = mw.ustring.gsub(text, "[8٨]", "۸")
     text = mw.ustring.gsub(text, "[9٩]", "۹")
     text = mw.ustring.gsub(text, "[9٩]", "۹")
    text = mw.ustring.gsub(text, "[.]", "٫")
     if type(signs) ~= "nil" then
     if type(signs) ~= "nil" then
       text = mw.ustring.gsub(text, "%.", "٫")
       text = mw.ustring.gsub(text, "%.", "٫")