Template:Colon/doc: Difference between revisions
Template page
More actions
No edit summary |
use TemplateData |
||
| Line 3: | Line 3: | ||
{{TemplateBox | {{TemplateBox | ||
|1=lang | |1=lang | ||
| | |1label=language | ||
|1type=line | |||
|1def=<nowiki>{{int:lang}}</nowiki> | |1def=<nowiki>{{int:lang}}</nowiki> | ||
|1stat=optional- | |1stat=optional- | ||
|name= | |||
|desc=The template returns a localized colon, with a non-breaking space before it and/or a space (<nowiki> </nowiki>) after it | |name=Colon | ||
|desc=The template returns a localized colon, with a non-breaking space before it and/or a space (<nowiki> </nowiki>) 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. | 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. | ||
| Line 27: | Line 29: | ||
|shorthand= | |shorthand= | ||
|relieson= | |relieson= | ||
|useTemplateData=only | |||
}} | }} | ||
| Line 61: | Line 64: | ||
* <code><nowiki>"1{{Colon|lang=yue}}2"</nowiki></code> gives "1{{Colon|lang=yue}}2" | * <code><nowiki>"1{{Colon|lang=yue}}2"</nowiki></code> gives "1{{Colon|lang=yue}}2" | ||
* <code><nowiki>"1{{Colon|lang=zh}}2"</nowiki></code> gives "1{{Colon|lang=zh}}2" | * <code><nowiki>"1{{Colon|lang=zh}}2"</nowiki></code> gives "1{{Colon|lang=zh}}2" | ||
<includeonly> | <includeonly> | ||
[[Category:Punctuation templates]] | [[Category:Punctuation templates]] | ||
</includeonly> | </includeonly> | ||