Difference between revisions of "Template:Date"

From Self-sufficiency
Jump to: navigation, search
(allows use in phrases)
(th fix)
Line 31: Line 31:
 
|pt      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} de {{I18n month-gen|{{{2|}}}|pt}} | {{I18n month|{{{2|}}}|pl}} }} de {{{1|}}}
 
|pt      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} de {{I18n month-gen|{{{2|}}}|pt}} | {{I18n month|{{{2|}}}|pl}} }} de {{{1|}}}
 
|ru      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month-gen|{{{2|}}}|ru}} {{{1|}}}
 
|ru      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month-gen|{{{2|}}}|ru}} {{{1|}}}
|th      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month|{{{2|}}}|th}} {{#if: {{{1|}}} | {{#ifexpr: {{{1}}} <= 1940 | {{#if: {{{2|}}} | {{#ifexpr: {{{2|}}} < 4 | พ.ศ. {{#expr: {{{1}}} + 542 }} | พ.ศ. {{#expr: {{{1}}} + 543 }} }} | {{other date|or|{{#expr: {{{1}}} + 542 }}|{{#expr: {{{1}}} + 543 }}|th}} }} | พ.ศ. {{#expr: {{{1}}} + 543 }} }} }}
+
|th      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month|{{{2|}}}|th}} {{#if: {{{1|}}} | {{#ifexpr: {{{1}}} <= 1940 | {{#if: {{{2|}}} | {{#ifexpr: {{{2|}}} < 4 | พ.ศ. {{#expr: {{{1}}} + 542 }} | พ.ศ. {{#expr: {{{1}}} + 543 }} }} | {{#expr: {{{1}}} + 542 }} หรือ {{#expr: {{{1}}} + 543 }} }} | พ.ศ. {{#expr: {{{1}}} + 543 }} }} }}
 
|uk      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month-gen|{{{2|}}}|uk}} {{{1|}}}
 
|uk      ={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month-gen|{{{2|}}}|uk}} {{{1|}}}
 
|#default={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month|{{{2|}}}|{{#if: {{{4|}}} |{{{4}}}|{{int:lang}}}}}} {{{1|}}}
 
|#default={{#if: {{{3|}}} | {{#expr: {{{3}}} }} }} {{I18n month|{{{2|}}}|{{#if: {{{4|}}} |{{{4}}}|{{int:lang}}}}}} {{{1|}}}

Revision as of 19:28, 11 June 2009