Template:, and/doc

From Second Life Wiki
Jump to navigation Jump to search

Usage

When enumerating comma-separated lists, the final item follows an "and" coordination conjonction, but not all languages use a comma before it. Look at these examples:

  • English (en) ‒ 1, 2, and 3
  • Deutsch (de) ‒ 1, 2 und 3
  • español (es) ‒ 1, 2 y 3
  • français (fr) ‒ 1, 2 et 3
  • italiano (it) ‒ 1, 2 e 3
  • 日本語 (ja) ‒ 1、 2 および 3
  • 한국어 (ko) ‒ 1, 2, 3
  • 中文 (zh) ‒ 1、23
  • עברית (he) ‒ 1, 2 וגם 3
  • العربية (ar) ‒ 1، 2 و 3
  • فارسی (fa) ‒ 1، 2، و 3
  • ދިވެހިބަސް (dv) ‒ 1، 2، އަދި 3

Note also that Korean already uses a comma for translating "and", so it must not be preceded by a comma and a word separator.

Additionally there's not necessarily a space used as word separator before or after the translation of "and".

This template will match those differences for translating the whole ", and " sequence (shown above on yellow background): use {{, and}} between items without leaving any space before or after it.

You may need to edit this template to add other languages for which the comma is undesirable before the word-separator and the coordination "and". Note that the template implements language fallbacks so (for example) the rule for "pt" also applies by default to "pt-br", the rule for "zh" also applies to "zh-hant" or "zh-hans", and the rule for "fr" also applies by default to "br" (The supported language fallbacks are implemented in {{LangSwitch}}).

Example

1{{,}}{{Int|Word-separator}}2{{, and}}3

renders: "1, 2, and 3".

See also