|
|
Line 1: |
Line 1: |
- | <includeonly><!-- | + | <includeonly>{{#if:{{{1|}}}|{{dts/{{#ifeq:{{#expr:{{{1|}}}0*0}}|0|core|hart}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|debug={{{debug|}}}|format={{{format|}}}|link={{#if:{{{link|}}}|off|no}}|nowrap={{{nowrap|}}}|Y=y}}|<!-- |
- | --><span style="{{#ifeq:{{{debug}}}|yes|border:1px solid|display:none; speak:none}}"><!--
| + | -->{{dts/core|{{CURRENTYEAR}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|debug={{{debug|}}}|format={{{format|}}}|link={{#if:{{{link|}}}|off|no}}|nowrap={{{nowrap|}}}}}<!-- |
- | =============================================================================
| + | -->}}</includeonly> |
- | = hidden part
| + | |
- | =============================================================================
| + | |
- | -->{{#ifexpr:{{{1}}}<=0|<!--
| + | |
- | ================================
| + | |
- | = year specified as number <= 0
| + | |
- | ================================
| + | |
- | -->-{{#ifexpr: {{{1}}} < -8999|0}}<!--
| + | |
- | -->{{#ifexpr: {{{1}}} < -9899|0}}<!--
| + | |
- | -->{{#ifexpr: {{{1}}} < -9989|0}}<!--
| + | |
- | -->{{#expr:9999+{{{1}}}}}|<!--
| + | |
- | ================================
| + | |
- | = year specified as number > 0
| + | |
- | ================================
| + | |
- | -->{{#ifeq:{{lc:{{{4|}}}}}|bc|<!--
| + | |
- | ==========
| + | |
- | = year BC
| + | |
- | ==========
| + | |
- | -->-{{#ifexpr: {{{1}}} > 9000|0}}<!--
| + | |
- | -->{{#ifexpr: {{{1}}} > 9900|0}}<!--
| + | |
- | -->{{#ifexpr: {{{1}}} > 9990|0}}<!--
| + | |
- | -->{{#expr:10000-{{{1}}}}}|<!--
| + | |
- | ==========
| + | |
- | = year AD
| + | |
- | ==========
| + | |
- | -->0{{#ifexpr: {{{1}}} < 1000|0}}<!--
| + | |
- | -->{{#ifexpr: {{{1}}} < 100|0}}<!--
| + | |
- | -->{{#ifexpr: {{{1}}} < 10|0}}<!--
| + | |
- | -->{{{1}}} }}}}<!--
| + | |
- | =============================================================================
| + | |
- | = month & day
| + | |
- | =============================================================================
| + | |
- | -->{{#if:{{{2|}}}|-{{MONTH|{{{2}}}}}<!--
| + | |
- | -->{{#if:{{{3|}}}|-{{0expr|{{{3}}}}} }} }} </span><!--
| + | |
- | --><span style="{{#ifeq:{{{nowrap}}}|off||white-space:nowrap;}}"><!--
| + | |
- | =============================================================================
| + | |
- | = visible part
| + | |
- | =============================================================================
| + | |
- | -->{{dts/fmt{{{format|}}} | + | |
- | |l={{{link}}}
| + | |
- | |o={{#if:{{{2|}}}|m}}{{{Y|}}} | + | |
- | |d={{#if:{{{3|}}}|{{#expr:{{{3}}}}}}} | + | |
- | |m={{MONTHNAME|{{{2}}}}} | + | |
- | |y={{#expr:abs{{{1}}}}}{{#ifexpr:{{{1}}}<=0 | + | |
- | | BC
| + | |
- | |{{#switch:{{lc:{{{4|}}}}}|bc= BC|bce= BCE}}}}
| + | |
- | }}</span></includeonly><noinclude>This is an auxiliary template used by [[Template:Dts]].[[vi:Bản mẫu:Dts/core]] | + | |
- | </noinclude>
| + | |
- | [[Category:Pages moved from Wikipedia]]
| + | |