• خانه
  • تصادفی
  • تغییرات اخیر
  • صفحه‌های ویژه
  • ورودی کاربران
  • تنظیمات
  • دربارهٔ ویکی‌نور
  • تکذیب‌نامه‌ها
ویکی‌نور
  • ایجاد حساب
  • ورود

الگو:One2a

  • زبان
  • پیگیری
  • ویرایش
Template documentation[view] [edit] [history] [purge]
پرونده:Lua-Logo.svgThis template uses Lua:
  • Module:String2

This is a wrapper for the one2a function in Module:String2.

The one2a function scans through a string, passed as either the first unnamed parameter or |txt=, and converts each occurrence of 'one ' into either 'a ' or 'an ', then returns the resultant string.

Examples

  • {{one2a |one foot. One mile. One inch.One amp. one foot. one mile. one inch. Alone at last.}} → a foot. A mile. An inch.An amp. a foot. a mile. an inch. Alone at last.
  • {{convert|1|ft|spell=in}} → one foot (0.30 m)
  • {{one2a|{{convert|1|ft|spell=in}}}} → a foot (0.30 m)
  • {{convert|2.54|cm|0|disp=out|spell=on}} → one inch
  • {{one2a|{{convert|2.54|cm|0|disp=out|spell=on}}}} → an inch
The above documentation is transcluded from الگو:One2a/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
برگرفته از «https://fa.wikinoor.ir/w/index.php?title=الگو:One2a&oldid=629427»
آخرین‌بار در ‏۳ ژانویهٔ ۲۰۲۳، ‏۲۳:۱۴ ویرایش شده‌است
ویکی‌نور
  • این صفحه آخرین‌بار در ‏۳ ژانویهٔ ۲۰۲۳ ساعت ‏۲۳:۱۴ ویرایش شده‌است.
  • حقوق مادی و معنوی اين پايگاه متعلق به مرکز تحقیقات کامپیوتری علوم اسلامی است و نشر غیرمجاز محتوای آن پیگرد قانونی دارد.
  • سیاست حفظ حریم خصوصی
  • دربارهٔ ویکی‌نور
  • تکذیب‌نامه‌ها
  • نمای رایانه