Template:Colon/doc: Difference between revisions
More actions
mNo edit summary |
mNo edit summary |
||
| Line 25: | Line 25: | ||
|relieson= | |relieson= | ||
}} | }} | ||
== Examples == | |||
* <tt><nowiki>"1{{Colon}}2"</nowiki></tt> gives "1{{Colon}}2" | |||
* <tt><nowiki>"1{{Colon|lang=en}}2"</nowiki></tt> gives "1{{Colon|lang=en}}2" | |||
* <tt><nowiki>"1{{Colon|lang=hi}}2"</nowiki></tt> gives "1{{Colon|lang=hi}}2" | |||
* <tt><nowiki>"1{{Colon|lang=ja}}2"</nowiki></tt> gives "1{{Colon|lang=ja}}2" | |||
* <tt><nowiki>"1{{Colon|lang=zh}}2"</nowiki></tt> gives "1{{Colon|lang=zh}}2" | |||
<includeonly> | <includeonly> | ||
[[Category:Punctuation templates]] | [[Category:Punctuation templates]] | ||
</includeonly> | </includeonly> | ||
Revision as of 11:55, 31 May 2019
The template returns a localized colon, with a non-breaking space before it and/or a space ( ) after it, if needed.
Localized colons need adaptation with some scripts because generic colons (:) may be confusive with other unrelated signs of these scripts, or because these scripts have specific spacing rules.
Usage
{{Colon/doc}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
lang | language | {{int:lang}} | optional | |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)
Examples
- "1{{Colon}}2" gives "1: 2"
- "1{{Colon|lang=en}}2" gives "1: 2"
- "1{{Colon|lang=hi}}2" gives "1 : 2"
- "1{{Colon|lang=ja}}2" gives "1:2"
- "1{{Colon|lang=zh}}2" gives "1:2"