Template:Colon

From Uncyclomedia, the UnMeta-wiki
Jump to navigation Jump to search

:

Template documentation[view] [edit] [history] [purge]

Usage[edit]

Use it to generate the language-dependant punctuation signs that is used like an English colon, for example between an introducing sentence or label and a complement such as one or more values or a detailing 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).
  • If you use this template to display a plain ASCII colon (:) 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 colon will be returned followed by an ASCII space.)

Examples[edit]

  • In English, Deutsch{{colon|en}}español{{stop|en}} gives
    Deutsch: español.
  • In français, Deutsch{{colon|fr}}español{{stop|fr}} gives
    Deutsch : español.
  • In العربية, Deutsch{{colon|ar}}español{{stop|ar}} gives
    Deutsch: español.
  • In հայերեն, Deutsch{{colon|hy}}español{{stop|hy}} gives
    Deutsch. español։
  • In ភាសាខ្មែរ, Deutsch{{colon|km}}español{{stop|km}} gives
    Deutsch៖ español.
  • In 汉语, Deutsch{{colon|zh}}español{{stop|zh}} gives
    Deutsch: español 。

Warnings[edit]

  • Don't insert any space after it (this template will insert the word separator conditionally, but the colon 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).
  • ASCII colons not followed by a space are used in Swedish in the middle of words, in a way similar to the apostrophe for English genitives.
  • Be careful in Armenian, because the ASCII colon followed by a space is interpreted as a full stop terminating the sentence, but not introducing one or more values or another sentence (the roles of full stop and colons are swapped in Armenian!).
  • Also in Khmer which has signs combining to the left of letters or at end of words, looking like a regular English colon but playing a different role in Khmer.

See also[edit]