Jump to content

Template:Comma

From Wikifunctions

,

Template documentation


Usage

Use it to generate the language-dependant punctuation signs that is used like an English comma, for example between items in a list, or clauses in a sentence.

  • By default, it is rendered according to the content language of the current page (see {{CURRENTCONTENTLANGUAGE}}) so it will work in translated subpages.
  • If you want to use it in a multilingual page, you'll need to specify the language-code in parameter 1 (or uselang).

Examples

  • In English, German{{comma|en}}Spanish{{stop|en}} gives
    German, Spanish.
  • In Arabic, الألمانية{{comma|ar}}الإسبانية{{stop|ar}} gives
    الألمانية، الإسبانية.
  • In Armenian, գերմաներեն{{comma|hy}}իսպաներեն{{stop|hy}} gives
    գերմաներեն՝ իսպաներեն։
  • In Chinese, 德语{{comma|zh}}西班牙语{{stop|zh}} gives
    德语、 西班牙语 。

Warning

  • Don't insert any space after it (this template will insert the word separator conditionally, but the comma returned in Chinese is a wide version and requires no extra space after it). Some languages also don't want any space in the same paragraph (they don't separate words by spaces).
  • Commas not followed by a space are used as decimal separators or group separators for the international formatting of numbers (for example with {{formatnum:...|language-code}}): do not use this Comma template for such usage.

See also