Difference between revisions of "Template:Colon"

From Team Fortress Wiki
Jump to: navigation, search
(Created template.)
 
(You folks know HTML tags have to match, right?)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
  | en = <nowiki>:</nowiki>&nbsp;
 
  | en = <nowiki>:</nowiki>&nbsp;
 
  | fr = &nbsp;<nowiki>:</nowiki>&nbsp;
 
  | fr = &nbsp;<nowiki>:</nowiki>&nbsp;
  | ja = </nowiki>:</nowiki>
+
  | ja = <nowiki>:</nowiki>
  | zh-hans = </nowiki>:</nowiki>
+
  | zh-hans = <nowiki>:</nowiki>
  | zh-hant = </nowiki>:</nowiki>
+
  | zh-hant = <nowiki>:</nowiki>
 
}}</includeonly><noinclude>{{Doc begin}}
 
}}</includeonly><noinclude>{{Doc begin}}
;Usage
+
Inserts the language-appropriate colon (<code>:</code>), as well as a space after it. For <code>fr</code>, it also includes the space before it. For <code>ja</code>, <code>zh-hans</code>, and <code>zh-hant</code>, it does ''not'' include the space after it.
Inserts the language-appropriate colon (<code>:</code>), as well as a space after it.
 
:For <code>fr</code>, it also includes the space before it.
 
:For <code>ja</code>, <code>zh-hans</code>, and <code>zh-hant</code>, it does ''not'' include the space after it.
 
  
 +
== Example ==
 +
<code><nowiki>{{common string|default key}}{{colon}}{{key|V}}</nowiki></code>
 +
* On a page in English, it generates {{common string|default key}}{{colon}}{{key|V}}
 +
* On a page in French, it generates {{common string|default key|lang=fr}}{{colon}}{{key|V}}
 +
* On a page in Japanese, it generates {{common string|default key|lang=ja}}{{colon}}{{key|V}}
  
;Example
+
[[Category:Templates]]</noinclude>
<code><nowiki>{{common string|default key}}</nowiki>'''{<nowiki>{colon}</nowiki>}'''<nowiki>{{key|V}}</nowiki></code>
 
*On a page in English, it generates default key: {{key|V}}
 
*On a page in French, it generates touche par défaut : {{key|V}}
 
*On a page in Japanese, it generates デフォルトキー:{{key|V}}
 
 
 
[[Category:Templates]]
 
</noinclude>
 

Latest revision as of 20:45, 1 December 2024

Documentation for Colon

Inserts the language-appropriate colon (:), as well as a space after it. For fr, it also includes the space before it. For ja, zh-hans, and zh-hant, it does not include the space after it.

Example

{{common string|default key}}{{colon}}{{key|V}}

  • On a page in English, it generates default key: V
  • On a page in French, it generates touche par défaut: V
  • On a page in Japanese, it generates デフォルトキー: V