"ढाँचा:Dts/core" का संशोधनहरू बिचको अन्तर
Content deleted Content added
कुनै सम्पादन सारांश छैन |
570052द्वारा पुनरावलोकन राजा उप्रेती (वार्तालाप) खारेज ग... |
||
पङ्क्ति १:
<includeonly><!--
-->{{#ifexpr:{{{1}}}>0|<!--▼
=====================================================▼
= year specified as number > 0, with or without "BC"▼
=====================================================▼
-->{{#ifeq:{{lc:{{{4|}}}}}|bc|<!--▼
==========================================▼
= year specified as number > 0, with "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}}<!--▼
-->{{#expr:1*{{{1}}}}} }}<!--▼
=============================================================================
= hidden part
=============================================================================
-->{{#if:{{{2|}}}|-{{MONTH|{{{2}}}}}<!--▼
-->{{#if:{{{3|}}}|-{{0expr|{{{3}}}}} }} }} </span><span style="{{#ifeq:{{{nowrap|}}}|off||white-space:nowrap;}}"><!--▼
=============================================================================▼
=============================================================================▼
-->{{#ifexpr:{{{1}}}<=0|<!--
▲--><span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none}}"><!--
-->-{{#ifexpr: {{{1}}} < -
-->{{#
▲ -->{{#ifeq:{{lc:{{{4|}}}}}|bc|<!--
▲ ==========
= year BC
▲ ==========
▲ -->{{#expr:10000-{{{1}}}}}|<!--
==========
▲ = year AD
==========
-->{{{1}}} }}}}<!--
▲ =============================================================================
= month & day
▲ =============================================================================
▲ -->{{#if:{{{2|}}}|-{{MONTH|{{{2}}}}}<!--
-->{{#if:{{{3|}}}|-{{0expr|{{{3}}}}} }} }} </span><!--
▲
=============================================================================
= 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]].
</noinclude>
|