"ढाँचा:Dts/core" का संशोधनहरू बिचको अन्तर

कुनै सम्पादन सारांश छैन
570052द्वारा पुनरावलोकन राजा उप्रेती (वार्तालाप) खारेज ग...
 
पङ्क्ति १:
<includeonly><!--
--><span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none; speak:none}}"><!--
 
-->{{#ifexpr:{{{1}}}>0|<!--
=====================================================
= year specified as number > 0, with or without "BC"
=====================================================
--><span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none}}"><!--
-->{{#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
= rest of hidden part for the case that the year is specified as number > 0,
= with or without "BC"
=============================================================================
-->{{#if:{{{2|}}}|-{{MONTH|{{{2}}}}}<!--
-->{{#if:{{{3|}}}|-{{0expr|{{{3}}}}} }} }} </span><span style="{{#ifeq:{{{nowrap|}}}|off||white-space:nowrap;}}"><!--
=============================================================================
= visible part for the case that the year is specified as number > 0,
= with or without "BC"
=============================================================================
-->{{#if:{{{2|}}}|{{#ifeq:{{{link|off}}}|off|{{#ifeq:{{{format|mdy}}}|dmy|{{#if:{{{3|}}}|{{{3|}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#if:{{{3|}}}|{{{3|}}}{{#ifeq:{{{year|}}}|hide||,}}}}}}|[[{{MONTHNAME|{{{2}}}}} {{{3|}}}]]}}}} {{#ifeq:{{{year|}}}|hide||{{#ifeq:{{{link|off}}}|off|{{#ifeq:{{lc:{{{4|}}}}}|bc|{{#expr:1*{{{1}}}}} ई.पू.|{{#expr:1*{{{1}}}}}}}|[[{{#ifeq:{{lc:{{{4|}}}}}|bc|{{#expr:1*{{{1}}}}} ई.पू.|{{#expr:1*{{{1}}}}}}}]]}}}}}}</span><!--
================================
= year specified as number <= 0
================================
-->{{#ifexpr:{{{1}}}<=0|<!--
========== ================================
--><span style="{{#ifeq:{{{debug|}}}|yes|border:1px solid|display:none}}"><!--
= year specified as number ><= 0, with "BC"
-->-{{#ifexpr: {{{1}}} < -8999|0}}<!--
========== ================================
-->{{#ifexpr: {{{1}}} < -9899|0}}<!--
-->-{{#ifexpr: {{{1}}} < -99898999|0}}<!--
-->{{#exprifexpr:9999+ {{{1}}} < -9899|0}}<!--
-->{{#ifexpr: {{{1}}} < 10-9989|0}}<!--
-->{{#expr:1*9999+{{{1}}}}} }}|<!--
============================================= ================================
= year specified as number > 0, with or without "BC"
============================================= ================================
-->{{#ifeq:{{lc:{{{4|}}}}}|bc|<!--
==========
= year BC
==========
-->-{{#ifexpr: {{{1}}} >0 9000|0}}<!--
-->-{{#ifexpr: {{{1}}} > 90009900|0}}<!--
-->{{#ifexpr: {{{1}}} > 99009990|0}}<!--
-->{{#expr:10000-{{{1}}}}}|<!--
==========
= year AD
==========
-->0{{#ifexpr: {{{1}}} >< 99901000|0}}<!--
-->0{{#ifexpr: {{{1}}} < 1000 100|0}}<!--
-->{{#ifexpr: {{{1}}} < 100 10|0}}<!--
-->{{{1}}} }}}}<!--
=============================================================================
= month & day
=============================================================================
-->{{#if:{{{2|}}}|-{{MONTH|{{{2}}}}}<!--
-->{{#if:{{{3|}}}|-{{0expr|{{{3}}}}} }} }} </span><!--
-->{{#if:{{{3|}}}|-{{0expr|{{{3}}}}} }} }} </span><span style="{{#ifeq:{{{nowrap|}}}|off||white-space:nowrap;}}"><!--
=============================================================================
= visible part
// rest of hidden part for the case that the year is specified as number <= 0
=============================================================================
-->{{dts/fmt{{{format|}}}
-->{{#if:{{{2|}}}|-{{MONTH|{{{2}}}}}{{#if:{{{3|}}}|-{{0expr|{{{3}}}}}}}}} </span><span style="{{#ifeq:{{{nowrap|}}}|off||white-space:nowrap;}}"><!--
|l={{{link}}}
======================================================================
|o={{#if:{{{2|}}}|m}}{{{Y|}}}
// visible part for the case that the year is specified as number <= 0
|d={{#if:{{{3|}}}|{{#expr:{{{3}}}}}}}
======================================================================
|m={{MONTHNAME|{{{2}}}}}
-->{{#if:{{{2|}}}|{{#ifeq:{{{link|off}}}|off|{{#ifeq:{{{format|mdy}}}|dmy|{{#if:{{{3|}}}|{{{3|}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#if:{{{3|}}}|{{{3|}}}{{#ifeq:{{{year|}}}|hide||,}}}}}}|[[{{MONTHNAME|{{{2}}}}} {{{3|}}}]]}}}} {{#ifeq:{{{year|}}}|hide||{{#ifeq:{{{link|off}}}|off|{{#expr:0-{{{1}}}}} ई.पू.|[[{{#expr:0-{{{1}}}}} ई.पू.]]}}}}}}</span><!--
|y={{#expr:abs{{{1}}}}}{{#ifexpr:{{{1}}}<=0
 
| BC
--></includeonly><noinclude>{{soft redirect|Template:dts}}</noinclude>
|{{#switch:{{lc:{{{4|}}}}}|bc= BC|bce= BCE}}}}
}}</span></includeonly><noinclude>This is an auxiliary template used by [[Template:Dts]].
</noinclude>
"https://ne.wikipedia.org/wiki/ढाँचा:Dts/core" बाट अनुप्रेषित