|
|
(19 intermediate revisions by 14 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 = may
| |
− | | 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> |