Template:One2a/doc

From imedwiki
< Template:One2a
Jump to navigation Jump to search

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}} → 1 foot (0.30 m)*
  • {{one2a|{{convert|1|ft|spell=in}}}} → 1 foot (0.30 m)*
  • {{convert|2.54|cm|0|disp=out|spell=on}}Lua error in Module:Convert at line 402: attempt to call upvalue 'speller' (a string value).
  • {{one2a|{{convert|2.54|cm|0|disp=out|spell=on}}}}Luan error in Module:Convert at line 402: attempt to call upvalue 'speller' (a string value).


This template is based (in parts) on the Template:One2a/doc from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.