Difference between revisions of "Template:Lang date"

From Team Fortress Wiki
Jump to: navigation, search
(Updated available languages)
 
(31 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{#switch:{{{force|{{SUBPAGENAME}}}}}
+
{{common string|month-{{lc:{{{1|january}}}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}<noinclude>
<!-- New languages should go below here. -->
+
{{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}}
|cs={{#switch:{{{1|}}}
+
{{doc begin}}
|1=Ledna
+
This template draws month names from [[Template:Dictionary/common_strings]]'s month names, based on the page language.
|2=Února
+
=== Usage ===
|3=Brezna
+
* {{tlx|lang date|2}} generates {{lang date|2}}
|4=Dubna
+
* {{tlx|lang date|2|3=force=ru}} generates {{lang date|2|force=ru}}
|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
 
}}
 
|pl={{#switch:{{{1|}}}
 
|1=stycznia
 
|2=lutego
 
|3=marca
 
|4= kwietnia
 
|5= maja
 
|6= czerwca
 
|7= lipca
 
|8= sierpnia
 
|9= wrzesnia
 
|10= pazdziernika
 
|11= listopada
 
|12= grudnia
 
}}
 
<!-- New languages should go above here. -->
 
|blank
 
|none
 
|en
 
|#default={{#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>
 
* '''Supported languages''': en, cs, de, fr, hu, pl
 
== Usage ==
 
  
* Add the following code to the template (in alphabetical order)
+
[[Category:Language templates|Lang date]]
** Replace ''xx'' with your language's code
+
[[Category:Templates|Lang date]]
** 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>
 
 
</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