Template:Comma/doc: Difference between revisions
Content deleted Content added
m Reverted changes by Andres.m.012 (talk) to last version by Kaganer |
GVarnum-WMF (talk | contribs) {{Meta-Wiki duplicate content|documentation=true}} Tag: 2017 source edit |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Meta-Wiki duplicate content|documentation=true}} |
|||
== 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 {{tl|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 <code>uselang</code>). |
|||
== Examples == |
|||
* In {{#language:en|en}}, <code>{{#language:de|en}}<nowiki>{{comma|en}}</nowiki>{{#language:es|en}}<nowiki>{{stop|en}}</nowiki></code> gives |
|||
*: <bdi lang="en" dir=ltr">{{#language:de|en}}{{comma|en}}{{#language:es|en}}{{stop|en}}</bdi> |
|||
* In {{#language:ar|en}}, <code>{{#language:de|ar}}<nowiki>{{comma|ar}}</nowiki>{{#language:es|ar}}<nowiki>{{stop|ar}}</nowiki></code> gives |
|||
*: <bdi lang="ar" dir=rtl">{{#language:de|ar}}{{comma|ar}}{{#language:es|ar}}{{stop|ar}}</bdi> |
|||
* In {{#language:hy|en}}, <code>{{#language:de|hy}}<nowiki>{{comma|hy}}</nowiki>{{#language:es|hy}}<nowiki>{{stop|hy}}</nowiki></code> gives |
|||
*: <bdi lang="hy" dir=ltr">{{#language:de|hy}}{{comma|hy}}{{#language:es|hy}}{{stop|hy}}</bdi> |
|||
* In {{#language:zh|en}}, <code>{{#language:de|zh}}<nowiki>{{comma|zh}}</nowiki>{{#language:es|zh}}<nowiki>{{stop|zh}}</nowiki></code> gives |
|||
*: <bdi lang="zh" dir=ltr">{{#language:de|zh}}{{comma|zh}}{{#language:es|zh}}{{stop|zh}}</bdi> |
|||
== 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 <code><nowiki>{{</nowiki>formatnum:...<nowiki>|</nowiki>''language-code''<nowiki>}}</nowiki></code>): do not use this Comma template for such usage. |
|||
== See also == |
== See also == |
Latest revision as of 08:13, 26 March 2024
This is a documentation subpage for Template:Comma. It contains usage information, categories, and other content that is not part of the original template page. |
This template has a duplicate on Meta-Wiki. Please visit its documentation on Meta-Wiki for usage details and any additional information. Please keep the content and translations synchronized as much as possible. Thank you! |
See also