Difference between revisions of "Template:Lang date"

From Team Fortress Wiki
Jump to: navigation, search
(Update: alter structure to make use of translated strings in existing MediaWiki interface, and to avoid using numerous giant switches.)
(Updated available languages)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{  
+
{{common string|month-{{lc:{{{1|january}}}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}<noinclude>
{{#if:{{{1|}}}
+
{{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}}
| MediaWiki:{{#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
 
  }}/{{if lang|en=en|non-en={{{force|{{SUBPAGENAME}}}}}}}
 
| ns:0
 
}}
 
}}<noinclude>
 
{{translation switching|all languages}}
 
 
{{doc begin}}
 
{{doc begin}}
This template draws month names from MediaWiki's own internal translations based on the page language.
+
This template draws month names from [[Template:Dictionary/common_strings]]'s month names, based on the page language.
 
=== Usage ===
 
=== Usage ===
 
* {{tlx|lang date|2}} generates {{lang date|2}}
 
* {{tlx|lang date|2}} generates {{lang date|2}}
* {{tlx|lang date|2|force=ru}} generates {{lang date|2|force=ru}}
+
* {{tlx|lang date|2|3=force=ru}} generates {{lang date|2|force=ru}}
  
 
[[Category:Language templates|Lang date]]
 
[[Category:Language templates|Lang date]]
 
[[Category:Templates|Lang date]]
 
[[Category:Templates|Lang date]]
 
</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