Jump to content

Template:Comma/doc

From translatewiki.net
This is the documentation subpage for the parent Template:Comma page.
Usage:
Use it to generate the language-dependant punctuation signs that is used like an English comma, for example between items of an enumeration.
  • By default, it is rendered according to the content language of the current page (see {{RelevantLanguage}}) 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).
  • If you use this template to display a plain ASCII comma (,) that you don't want to be interpreted by MediaWiki as a definition list item (or indented block), specify the "en" language code in parameter 1. (Note that this comma will be returned followed by an ASCII space.)
Warnings:
  • 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).
  • In Khmer, commas are generally not used in normal sentences (which also don't use spaces between words), but spaces are allowed in enumerations, and needed as separators between numbers (which do not use spaces for grouping digits).
Examples:
  • In English, German{{comma|en}}Spanish{{stop|en}} gives
    German, Spanish.
  • In French, allemand{{comma|fr}}espagnol{{stop|fr}} gives
    allemand, espagnol.
  • In Arabic, الألمانية{{comma|ar}}الإسبانية{{stop|ar}} gives
    الألمانية، الإسبانية.
  • In Armenian, գերմաներեն{{comma|hy}}իսպաներեն{{stop|hy}} gives
    գերմաներեն, իսպաներեն։
  • In Khmer, អាល្លឺម៉ង់{{comma|km}}អេស្ប៉ាញ{{stop|km}} gives
    អាល្លឺម៉ង់ អេស្ប៉ាញ។
  • In Chinese, 德语{{comma|zh}}西班牙语{{stop|zh}} gives
    德语、西班牙语。
See also: