|
|
(17 intermediate revisions by 12 users not shown) |
Line 1: |
Line 1: |
− | {{#switch:{{{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 = 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月
| |
− | }}
| |
− | | 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
| |
− | }}
| |
− | | 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 = декабря
| |
− | }}
| |
− | | 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
| |
− | | 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. -->
| |
− | | blank
| |
− | | none
| |
− | | {{ns:0}}
| |
− | | 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> | |
− | {{translation switching|cs, de, es, fi, fr, hu, it, ja, nl, pl, ro, ru, sv, zh-hans, 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> |