Difference between revisions of "Template:And"

From Team Fortress Wiki
Jump to: navigation, search
(case functionality, add more langs from translatewiki)
(Similar to {{Not}})
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{{{#switch:{{{case|{{{2|}}}}}}
+
{{#if:{{not|{{{1|}}}}}{{not|{{{2|}}}}}||true}}<noinclude>
| lc | lowercase | lower | lower case | #default  = lc
+
[[Category:Expression templates]]</noinclude>
| uc | uppercase | upper case | ucfirst | uppercase first | upper case first = ucfirst
 
}}:{{lang | {{#if:{{{force|{{{lang|}}}}}}|force|null}} = {{{force|{{{lang|}}}}}}
 
  | ar = و
 
  | cs = a
 
  | da = og
 
  | de = und
 
  | en = and
 
  | es = y
 
  | fi = ja
 
  | fr = et
 
  | hu = és
 
  | it = e
 
  | ja = と
 
  | ko = 와
 
  | nl = en
 
  | no = og
 
  | pl = i
 
  | pt = e
 
  | pt-br = e
 
  | ro = și
 
  | ru = и
 
  | sv = och
 
  | zh-hans = 以及
 
  | zh-hant = 以及
 
  }}
 
}}<noinclude>
 
{{translation switching|All languages.}}
 
{{doc begin}}
 
Use {{tl|and}} on templates that use translation switching and must have word "and" translated.
 
 
 
=== Usage ===
 
* {{tl|and}} on [[Soldier]] generates "{{and}}"
 
* {{tlx|and|uppercase}} on [[Soldier]] generates "{{and|uppercase}}"
 
* {{tl|and}} on [[Soldier/zh-hant]] generates "{{and|lang=zh-hant}}"
 
 
 
[[Category:Pre-translated templates|And]]
 
</noinclude>
 

Latest revision as of 18:05, 29 May 2024