Difference between revisions of "Template:Lang date"

From Team Fortress Wiki
Jump to: navigation, search
m
(Updated available languages)
 
(23 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{lang | force = {{{force|{{SUBPAGENAME}}}}}<!-
+
{{common string|month-{{lc:{{{1|january}}}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}<noinclude>
 
+
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}}
// To translate, just copy and paste a language and replace it with your own language. Add it to the list in alphabetical order.
+
{{doc begin}}
// New languages should go below this line. -->
+
This template draws month names from [[Template:Dictionary/common_strings]]'s month names, based on the page language.
 
+
=== Usage ===
| cs = {{#switch:{{{1|}}}
+
* {{tlx|lang date|2}} generates {{lang date|2}}
| 1 = Ledna
+
* {{tlx|lang date|2|3=force=ru}} generates {{lang date|2|force=ru}}
| 2 = Února
 
| 3 = Brezna
 
| 4 = Dubna
 
| 5 = Kvetna
 
| 6 = Cervna
 
| 7 = Cervence
 
| 8 = Srpna
 
| 9 = Zárí
 
| 10 = Ríjna
 
| 11 = Listopadu
 
| 12 = Prosince
 
}}
 
| de = {{#switch:{{{1|}}}
 
| 1 = Januar
 
| 2 = Februar
 
| 3 = März
 
| 4 = April
 
| 5 = Mai
 
| 6 = Juni
 
| 7 = Juli
 
| 8 = August
 
| 9 = September
 
| 10 = Oktober
 
| 11 = November
 
| 12 = Dezember
 
}}
 
| fr = {{#switch:{{{1|}}}
 
| 1 = Janvier
 
| 2 = Fevrier
 
| 3 = Mars
 
| 4 = Avril
 
| 5 = Mai
 
| 6 = Juin
 
| 7 = Juillet
 
| 8 = Août
 
| 9 = Septembre
 
| 10 = Octobre
 
| 11 = Novembre
 
| 12 = Decembre
 
}}
 
| hu = {{#switch:{{{1|}}}
 
| 1 = január
 
| 2 = február
 
| 3 = március
 
| 4 = április
 
| 5 = május
 
| 6 = június
 
| 7 = július
 
| 8 = augusztus
 
| 9 = szeptember
 
| 10 = október
 
| 11 = november
 
| 12 = december
 
}}
 
| it = {{#switch:{{{1|}}}
 
| 1 = gennaio
 
| 2 = febbraio
 
| 3 = marzo
 
| 4 = aprile
 
| 5 = mag
 
| 6 = giugno
 
| 7 = luglio
 
| 8 = agosto
 
| 9 = settembre
 
| 10 = ottobre
 
| 11 = novembre
 
| 12 = dicembre
 
}}
 
| pl = {{#switch:{{{1|}}}
 
| 1 = stycznia
 
| 2 = lutego
 
| 3 = marca
 
| 4 =  kwietnia
 
| 5 =  maja
 
| 6 =  czerwca
 
| 7 =  lipca
 
| 8 =  sierpnia
 
| 9 =  września
 
| 10 =  października
 
| 11 =  listopada
 
| 12 =  grudnia
 
}}
 
| ro = {{#switch:{{{1|}}}
 
| 1 = Ianuarie
 
| 2 = Februarie
 
| 3 = Martie
 
| 4 = Aprilie
 
| 5 = Mai
 
| 6 = Iunie
 
| 7 = Iulie
 
| 8 = August
 
| 9 = Septembrie
 
| 10 = Octombrie
 
| 11 = Noiembrie
 
| 12 = Decembrie
 
}}
 
| ru = {{#switch:{{{1|}}}
 
| 1 = января
 
| 2 = февраля
 
| 3 = марта
 
| 4 = апреля
 
| 5 = мая
 
| 6 = июня
 
| 7 = иоля
 
| 8 = августа
 
| 9 = сентября
 
| 10 = октября
 
| 11 = ноября
 
| 12 = декабря
 
}}
 
| zh-hant = {{#switch:{{{1|}}}
 
| 1 = 一月
 
| 2 = 二月
 
| 3 = 三月
 
| 4 = 四月
 
| 5 = 五月
 
| 6 = 六月
 
| 7 = 七月
 
| 8 = 八月
 
| 9 = 九月
 
| 10 = 十月
 
| 11 = 十一月
 
| 12 = 十二月
 
}}
 
<!--  // New languages should go above this line.
 
 
 
      // English names below. -->
 
| en = {{#switch:{{{1|}}}
 
| 1 = January
 
| 2 = February
 
| 3 = March
 
| 4 = April
 
| 5 = May
 
| 6 = June
 
| 7 = July
 
| 8 = August
 
| 9 = September
 
| 10 = October
 
| 11 = November
 
| 12 = December
 
}}
 
}}<noinclude>
 
{{translation switching|cs, de, fr, hu, it, pl, ro, ru, zh-hant}}{{doc begin}}
 
 
 
== Usage ==
 
* Add the following code to the template (in alphabetical order)
 
** Replace ''xx'' with your language's code
 
** Replace the month names with translations
 
 
 
<pre>
 
| xx = {{#switch:{{{1|}}}
 
| 1 = January
 
| 2 = February
 
| 3 = March
 
| 4 = April
 
| 5 = May
 
| 6 = June
 
| 7 = July
 
| 8 = August
 
| 9 = September
 
| 10 = October
 
| 11 = November
 
| 12 = December
 
}}
 
</pre>
 
  
 
[[Category:Language templates|Lang date]]
 
[[Category:Language templates|Lang date]]
 
[[Category:Templates|Lang date]]
 
[[Category:Templates|Lang date]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:05, 20 June 2016

January

Documentation for Lang date

This template draws month names from Template:Dictionary/common_strings's month names, based on the page language.

Usage