Template:Lang date: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{lang | {{#if:{{{force|}}}|force|null}} = {{{force|}}}<!-
{{common string|month-{{lc:{{{1|january}}}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}<noinclude>
 
{{translation switching|all}}
// 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 ===
| ar = {{#switch:{{{1|}}}
* {{tlx|lang date|2}} generates {{lang date|2}}
| 1 = يناير
* {{tlx|lang date|2|3=force=ru}} generates {{lang date|2|force=ru}}
| 2 = فبراير
| 3 = مارس
| 4 = ابريل
| 5 = مايو
| 6 = يونيو
| 7 = يوليو
| 8 = اغسطس
| 9 = سبتمبر
| 10 = أكتوبر
| 11 = نوفمبر
| 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
}}
| da = {{#switch:{{{1|}}}
| 1 = Januar
| 2 = Februar
| 3 = Marts
| 4 = April
| 5 = Maj
| 6 = Juni
| 7 = Juli
| 8 = August
| 9 = September
| 10 = Oktober
| 11 = November
| 12 = December
}}
| 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 = février
| 3 = mars
| 4 = avril
| 5 = mai
| 6 = juin
| 7 = juillet
| 8 = août
| 9 = septembre
| 10 = octobre
| 11 = novembre
| 12 = décembre
}}
| 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>
{{translation switching|all languages}}{{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 01:41, 3 April 2024

January

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Lang date

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

Usage