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.)
(moov to dictionary)
Line 1: Line 1:
{{  
+
{{common string|month-{{lc:{{{1|january}}}}}}}<noinclude>
{{#if:{{{1|}}}
 
| 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}}
 
{{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}}

Revision as of 23:35, 20 June 2011

January

Documentation for Lang date

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

Usage