Difference between revisions of "Template:Lang date"

From Team Fortress Wiki
Jump to: navigation, search
(added /ar lines to temp)
(Update: alter structure to make use of translated strings in existing MediaWiki interface, and to avoid using numerous giant switches.)
Line 1: Line 1:
{{lang | {{#if:{{{force|}}}|force|null}} = {{{force|}}}<!-- 
+
{{  
 
+
  {{#if:{{{1|}}}
// To translate, just copy and paste a language and replace it with your own language. Add it to the list in alphabetical order.
+
  | MediaWiki:{{#switch:{{{1|}}}
// New languages should go below this line. -->
+
   | 1 = January
 
+
   | 2 = February
| ar = {{#switch:{{{1|}}}
+
   | 3 = March
| 1 = يناير
+
   | 4 = April
| 2 = فبراير
+
   | 5 = May
| 3 = مارس
+
   | 6 = June
| 4 = ابريل
+
   | 7 = July
| 5 = مايو
+
   | 8 = August
| 6 = يونيو
+
   | 9 = September
| 7 = يوليو
+
   | 10 = October
  | 8 = اغسطس
+
   | 11 = November
| 9 = سبتمبر
+
   | 12 = December
| 10 = أكتوبر
+
   }}/{{if lang|en=en|non-en={{{force|{{SUBPAGENAME}}}}}}}
| 11 = نوفمبر
+
  | ns:0
| 12 = ديسمبر
 
}}
 
| cs = {{#switch:{{{1|}}}
 
| 1 = Ledna
 
| 2 = Února
 
| 3 = Března
 
| 4 = Dubna
 
| 5 = Května
 
| 6 = Června
 
| 7 = Července
 
| 8 = Srpna
 
| 9 = Září
 
| 10 = Ří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
 
}}
 
| es = {{#switch:{{{1|}}}
 
| 1 = Enero
 
| 2 = Febrero
 
| 3 = Marzo
 
| 4 = Abril
 
| 5 = Mayo
 
| 6 = Junio
 
| 7 = Julio
 
| 8 = Agosto
 
| 9 = Septiembre
 
| 10 = Octubre
 
| 11 = Noviembre
 
| 12 = Diciembre
 
}}
 
| fi = {{#switch:{{{1|}}}
 
| 1 = Tammikuu
 
| 2 = Helmikuu
 
| 3 = Maaliskuu
 
| 4 = Huhtikuu
 
| 5 = Toukokuu
 
| 6 = Kesäkuu
 
| 7 = Heinäkuu
 
| 8 = Elokuu
 
| 9 = Syyskuu
 
| 10 = Lokakuu
 
| 11 = Marraskuu
 
| 12 = Joulukuu
 
}}
 
| 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
 
}}
 
| ja = {{#switch:{{{1|}}}
 
   | 1 = 1月
 
   | 2 = 2月
 
   | 3 = 3月
 
   | 4 = 4月
 
   | 5 = 5月
 
   | 6 = 6月
 
   | 7 = 7月
 
   | 8 = 8月
 
   | 9 = 9月
 
   | 10 = 10月
 
   | 11 = 11月
 
   | 12 = 12月
 
   }}
 
| ko = {{#switch:{{{1|}}}
 
  | 1 = 1월
 
  | 2 = 2월
 
  | 3 = 3월
 
  | 4 = 4월
 
  | 5 = 5월
 
  | 6 = 6월
 
  | 7 = 7월
 
  | 8 = 8월
 
  | 9 = 9월
 
  | 10 = 10월
 
  | 11 = 11월
 
  | 12 = 12월
 
  }}
 
| nl = {{#switch:{{{1|}}}
 
| 1 = Januari
 
| 2 = Februari
 
| 3 = Maart
 
| 4 = April
 
| 5 = Mei
 
| 6 = Juni
 
| 7 = Juli
 
| 8 = Augustus
 
| 9 = September
 
| 10 = Oktober
 
| 11 = November
 
| 12 = December
 
}}
 
| no = {{#switch:{{{1|}}}
 
| 1 = Januar
 
| 2 = Februar
 
| 3 = Mars
 
| 4 = April
 
| 5 = Mai
 
| 6 = Juni
 
| 7 = Juli
 
| 8 = August
 
| 9 = September
 
| 10 = Oktober
 
| 11 = November
 
| 12 = Desember
 
}}
 
| 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
 
}}
 
| pt = {{#switch:{{{1|}}}
 
| 1 = Janeiro
 
| 2 = Fevereiro
 
| 3 = Março
 
| 4 = Abril
 
| 5 = Maio
 
| 6 = Junho
 
| 7 = Julho
 
| 8 = Agosto
 
| 9 = Setembro
 
| 10 = Outubro
 
| 11 = Novembro
 
| 12 = Dezembro
 
}}
 
| pt-br = {{#switch:{{{1|}}}
 
| 1 = Janeiro
 
| 2 = Fevereiro
 
| 3 = Março
 
| 4 = Abril
 
| 5 = Maio
 
| 6 = Junho
 
| 7 = Julho
 
| 8 = Agosto
 
| 9 = Setembro
 
| 10 = Outubro
 
| 11 = Novembro
 
| 12 = Dezembro
 
}}
 
| 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 = декабря
 
}}
 
| sv = {{#switch:{{{1|}}}
 
  | 1 = Januari
 
| 2 = Februari
 
| 3 = Mars
 
| 4 = April
 
| 5 = Maj
 
| 6 = Juni
 
| 7 = Juli
 
| 8 = Augusti
 
| 9 = September
 
| 10 = Oktober
 
| 11 = November
 
| 12 = December
 
}}
 
| zh-hans = {{#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 = 十二月
 
}}
 
| 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>
 
}}<noinclude>
{{translation switching|all languages}}{{doc begin}}
+
{{translation switching|all languages}}
 
+
{{doc begin}}
== Usage ==
+
This template draws month names from MediaWiki's own internal translations based on the page language.
* Add the following code to the template (in alphabetical order)
+
=== Usage ===
** Replace ''xx'' with your language's code
+
* {{tlx|lang date|2}} generates {{lang date|2}}
** Replace the month names with translations
+
* {{tlx|lang date|2|force=ru}} generates {{lang date|2|force=ru}}
 
 
<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>

Revision as of 07:50, 18 June 2011

Documentation for Lang date

This template draws month names from MediaWiki's own internal translations based on the page language.

Usage