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=on}}
→ one foot (zero point three zero metres){{one2a|{{convert|1|ft|spell=on}}}}
→ a foot (zero point three zero metres){{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 Template:One2a/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |