سانچہ:a or an
| اس سانچے میں حسب ذیل لوا ماڈیول زیر استعمال ہے: |
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:
"{{a or an|word}}"→ "ایک word""{{a or an|elephant}}"→ "ایک elephant"
To capitalize "a", wrap the template in {{ucfirst:...}}.
"{{ucfirst:{{a or an|word}}}}"→ "ایک word""{{ucfirst:{{a or an|elephant}}}}"→ "ایک elephant"
Words beginning with a vowel letter
[ترمیم]Words that begin with eu, ew, uni, etc., and others like one, once, and U are exceptions:
"{{a or an|European}}"→ "ایک European""{{a or an|one-sided game}}"→ "ایک one-sided game""{{a or an|U-turn}}"→ "ایک U-turn""{{a or an|Ukrainian}}"→ "ایک Ukrainian""{{a or an|university}}"→ "ایک university"
Some exceptions are made to the above rule.
"{{a or an|Euler diagram}}"→ "ایک Euler diagram""{{a or an|unimportant case}}"→ "ایک unimportant case"
Words beginning with a consonant letter
[ترمیم]Words that begin with a consonant letter also have some exceptions:
"{{a or an|heir}}"→ "ایک heir""{{a or an|hour}}"→ "ایک hour""{{a or an|honor}}"→ "ایک honor""{{a or an|honour}}"→ "ایک honour""{{a or an|nth degree}}"→ "ایک nth degree""{{a or an|x-ray image}}"→ "ایک x-ray image""{{a or an|Xbox}}"→ "ایک Xbox""{{a or an|ytterbium fiber}}"→ "ایک ytterbium fiber"
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:
"{{a or an|LED}}"→ "ایک LED""{{a or an|led}}"→ "ایک led""{{a or an|URL}}"→ "ایک URL""{{a or an|url}}"→ "ایک url"
Some notable acronyms are made exceptions.
"{{a or an|FIFA referee}}"→ "ایک FIFA referee""{{a or an|NASA program}}"→ "ایک NASA program""{{a or an|UNRWA ambulance}}"→ "ایک UNRWA ambulance"
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.
"{{a or an|11}}"→ "ایک 11""{{a or an|18th}}"→ "ایک 18th""{{a or an|110}}"→ "ایک 110""{{a or an|1800}}"→ "ایک 1800" (assumes it's a year)"{{a or an|1,800}}"→ "ایک 1,800""{{a or an|180,000}}"→ "ایک 180,000""{{a or an|180000}}"→ "ایک 180000""{{a or an|18,000,000}}"→ "ایک 18,000,000""{{a or an|18000000}}"→ "ایک 18000000"
Currency signs at the beginning are ignored.
"{{a or an|£8}}"→ "ایک £8"
Ambiguous cases
[ترمیم]If |variety=us is set, herb(s) and herbal are treated as starting with a vowel sound.
"{{a or an|herb}}"→ "ایک herb""{{a or an|herb|variety=us}}"→ "ایک herb"
Words before which people have not settled on whether to use "a" or "an" are generally not made exceptions, so the general rules apply.
"{{a or an|FAQ}}"→ "ایک FAQ""{{a or an|upsilon}}"→ "ایک upsilon"
If the first letter is a non-Latin character, it returns "a" by default.
"{{a or an|あ}}"→ "ایک あ"
If the parameter is not entered, it returns an empty string.
"{{a or an}}"→ ""
| اوپر دی گئی دستاویز صفحہ سانچہ:A or an/دستاویز سے شامل کی گئی ہے۔ (ترمیم | تاریخچہ) صارفین سانچہ کے تختہ مشق (تخلیق | آئینہ) اور ثابتات (تخلیق) میں تجربات کرسکتے ہیں۔ براہ کرم /دستاویز کے ذیلی صفحہ پر زمرہ جات شامل فرمائیں۔ اس سانچہ کے ذیلی صفحات۔ |