shortcuts: Lua error: Internal error: The interpreter exited with status 1.

Template:A or an/doc: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
 
m 1 revision imported: Templates and CSS files
 
(No difference)

Latest revision as of 17:13, 4 December 2022

Lua error: Internal error: The interpreter exited with status 1.

Lua error: Internal error: The interpreter exited with status 1. 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}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|elephant}}" → "Lua error: Internal error: The interpreter exited with status 1."

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

  • "{{ucfirst:{{a or an|word}}}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{ucfirst:{{a or an|elephant}}}}" → "Lua error: Internal error: The interpreter exited with status 1."

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}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|one-sided game}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|U-turn}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|Ukrainian}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|university}}" → "Lua error: Internal error: The interpreter exited with status 1."

Some exceptions are made to the above rule.

  • "{{a or an|Euler diagram}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|unimportant case}}" → "Lua error: Internal error: The interpreter exited with status 1."

Words beginning with a consonant letter

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

  • "{{a or an|heir}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|hour}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|honor}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|honour}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|nth degree}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|x-ray image}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|Xbox}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|ytterbium fiber}}" → "Lua error: Internal error: The interpreter exited with status 1."

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}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|led}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|URL}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|url}}" → "Lua error: Internal error: The interpreter exited with status 1."

Some notable acronyms are made exceptions.

  • "{{a or an|FIFA referee}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|NASA program}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|UNRWA ambulance}}" → "Lua error: Internal error: The interpreter exited with status 1."

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}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|18th}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|110}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|1800}}" → "Lua error: Internal error: The interpreter exited with status 1." (assumes it's a year)
  • "{{a or an|1,800}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|180,000}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|180000}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|18,000,000}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|18000000}}" → "Lua error: Internal error: The interpreter exited with status 1."

Currency signs at the beginning are ignored.

  • "{{a or an|£8}}" → "Lua error: Internal error: The interpreter exited with status 1."

Ambiguous cases

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

  • "{{a or an|herb}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|herb|variety=us}}" → "Lua error: Internal error: The interpreter exited with status 1."

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}}" → "Lua error: Internal error: The interpreter exited with status 1."
  • "{{a or an|upsilon}}" → "Lua error: Internal error: The interpreter exited with status 1."

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

  • "{{a or an|あ}}" → "Lua error: Internal error: The interpreter exited with status 1."

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

  • "{{a or an}}" → "Lua error: Internal error: The interpreter exited with status 1."

Lua error: Internal error: The interpreter exited with status 1.