Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Words beginning with a vowel letter  





1.2  Words beginning with a consonant letter  





1.3  Abbreviations  





1.4  Numbers  





1.5  Ambiguous cases  
















Template:a or an






العربية
تۆرکجه
Bikol Central
فارسی
Kurdî




Scots

Simple English
Slovenščina
کوردی
ி
اردو
Tiếng Vit
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


  • {{a/n}}
  • This template determines whether the first word in the argument provided begins with a vowel or consonant and returns with it "a" or "an" depending on the assessment.

    Usage

    In general, it returns "an" if the first letter is a, e, i, o, or u, and "a" if any other:

    To capitalize "a", wrap the template in {{ucfirst:...}}.

    Words beginning with a vowel letter

    Words that begin with eu, ew, uni, etc., and others like one, once, and U are exceptions:

    Some exceptions are made to the above rule.

    Words beginning with a consonant letter

    Words that begin with a consonant letter also have some exceptions:

    Abbreviations

    Words in all caps are treated as initialisms. If an initialism begins with F, H, L, M, N, R, S, or X, it returns "an". If it begins with U, it returns "a". Thus:

    Some notable acronyms are made exceptions.

    Numbers

    If the first word begins with 8, 11, or 18, it returns "an", unless it is read with "hundred", "thousand", etc. at the beginning.

    Currency signs at the beginning are ignored.

    Ambiguous cases

    If|variety=us is set, herb(s) and herbal are treated as starting with a vowel sound.

    Words before which people have not settled on whether to use "a" or "an" are generally not made exceptions, so the general rules apply.

    If the first letter is a non-Latin character, it returns "a" by default.

    If the parameter is not entered, it returns an empty string.


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:A_or_an&oldid=1027604957"

    Categories: 
    Lua-based templates
    String manipulation templates
    Hidden category: 
    Wikipedia template-protected templates
     



    This page was last edited on 8 June 2021, at 22:16 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki