Шаблон:Dts/core: відмінності між версіями

[перевірена версія][перевірена версія]
Вилучено вміст Додано вміст
м Відкинуто редагування Nickispeaki до зробленого Ahonc
Avatar6 (обговорення | внесок)
<span></span> - відкриті теґи, fix
 
Рядок 1:
<includeonly><!--{{
-->{{#ifexpr:{{{1}}}>0|<!--
 
-->{{#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}}}}} }}<!--
=============================================================================
= rest of hidden part for the case that the year is specified as number > 0,
= with or without "BC"
=============================================================================
-->{{
#if:{{{2|}}}|-{{МІСЯЦЬ|{{{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||,}}}}}}|[[{{#if:{{{3|}}}|{{#expr:{{{3}}}}}}} {{MONTHNAME|{{{2}}}}}]]}}}} {{#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}}"><!--{{
-->-{{#ifexpr: {{{1}}} < -8999|0}}<!--{{
-->{{#ifexpr: {{{1}}} < -9899|0}}<!--{{
-->{{#ifexpr: {{{1}}} < -9989|0}}<!--{{
-->{{#expr:9999+{{{1}}}}}<!--
=============================================================================
// rest of hidden part for the case that the year is specified as number <= 0
=============================================================================
-->{{#if:{{{2|}}}|-{{МІСЯЦЬ|{{{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
======================================================================
-->{{#if:{{{2|}}}|{{#ifeq:{{{link|off}}}|off|{{#ifeq:{{{format|mdy}}}|dmy|{{#if:{{{3|}}}|{{{3|}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#if:{{{3|}}}|{{{3|}}}{{#ifeq:{{{year|}}}|hide||,}}}}}}|[[{{#if:{{{3|}}}|{{#expr:{{{3}}}}}}} {{MONTHNAME|{{{2}}}}}]]}}}} {{#ifeq:{{{year|}}}|hide||{{#ifeq:{{{link|off}}}|off|{{#expr:0-{{{1}}}}} до н. е.|[[{{#expr:0-{{{1}}}}} до н. е.]]}}}}}}</span><!--
--}}</span>}}</includeonly><noinclude>
 
--></includeonly><noinclude>
[[Категорія:Підшаблони шаблонів]]