Difference between revisions of "Template:Date table sorting/testcases/block"

From blackwiki
Jump to navigation Jump to search
imported>GregorB
(Testing)
 
imported>GregorB
(Subst)
Line 1: Line 1:
{{#if:2009|{{dts/core|2009|1|1||debug=|format=|link=off}}|<!--
+
{{#if:2009|<!--
-->{{dts/core|{{CURRENTYEAR}}|1|1||debug=|format=|link=off|year=hide}}<!--
+
 
 +
-->{{#ifexpr:2009>0|<!--
 +
=====================================================
 +
= year specified as number > 0, with or without "BC"
 +
=====================================================
 +
  --><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
  -->{{#ifeq:{{lc:}}|bc|<!--
 +
==========================================
 +
= year specified as number > 0, with "BC"
 +
==========================================
 +
    -->-{{#ifexpr: 2009 > 9000|0}}<!--
 +
    -->{{#ifexpr: 2009 > 9900|0}}<!--
 +
    -->{{#ifexpr: 2009 > 9990|0}}<!--
 +
    -->{{#expr:10000-2009}}|<!--
 +
==========
 +
= year AD
 +
==========
 +
    -->0{{#ifexpr: 2009 < 1000|0}}<!--
 +
    -->{{#ifexpr: 2009< 100|0}}<!--
 +
    -->{{#ifexpr: 2009 < 10|0}}<!--
 +
    -->{{#expr:1*2009}} }}<!--
 +
=============================================================================
 +
= rest of hidden part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|-{{MONTH|1}}<!--
 +
    -->{{#if:1|-{{0expr|1}} }} }} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
=============================================================================
 +
= visible part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:|hide||{{#ifeq:off|off|{{#ifeq:{{lc:}}|bc|{{#expr:1*2009}} BC|{{#expr:1*2009}}}}|[[{{#ifeq:{{lc:}}|bc|{{#expr:1*2009}} BC|{{#expr:1*2009}}}}]]}}}}}}</span><!--
 +
================================
 +
= year specified as number <= 0
 +
================================
 +
-->{{#ifexpr:2009<=0|<!--
 +
--><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
-->-{{#ifexpr: 2009 < -8999|0}}<!--
 +
-->{{#ifexpr: 2009 < -9899|0}}<!--
 +
-->{{#ifexpr: 2009 < -9989|0}}<!--
 +
-->{{#expr:9999+2009}}<!--
 +
=============================================================================
 +
// rest of hidden part for the case that the year is specified as number <= 0
 +
=============================================================================
 +
-->{{#if:1|-{{MONTH|1}}{{#if:1|-{{0expr|1}}}}}} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
======================================================================
 +
// visible part for the case that the year is specified as number <= 0
 +
======================================================================
 +
-->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:|hide||{{#ifeq:off|off|{{#expr:0-2009}} BC|[[{{#expr:0-2009}} BC]]}}}}}}</span><!--
 +
 
 +
-->|<!--
 +
--><!--
 +
 
 +
-->{{#ifexpr:{{CURRENTYEAR}}>0|<!--
 +
=====================================================
 +
= year specified as number > 0, with or without "BC"
 +
=====================================================
 +
  --><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
  -->{{#ifeq:{{lc:}}|bc|<!--
 +
==========================================
 +
= year specified as number > 0, with "BC"
 +
==========================================
 +
    -->-{{#ifexpr: {{CURRENTYEAR}} > 9000|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}} > 9900|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}} > 9990|0}}<!--
 +
    -->{{#expr:10000-{{CURRENTYEAR}}}}|<!--
 +
==========
 +
= year AD
 +
==========
 +
    -->0{{#ifexpr: {{CURRENTYEAR}} < 1000|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}}< 100|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}} < 10|0}}<!--
 +
    -->{{#expr:1*{{CURRENTYEAR}}}} }}<!--
 +
=============================================================================
 +
= rest of hidden part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|-{{MONTH|1}}<!--
 +
    -->{{#if:1|-{{0expr|1}} }} }} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
=============================================================================
 +
= visible part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:hide|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:hide|hide||{{#ifeq:off|off|{{#ifeq:{{lc:}}|bc|{{#expr:1*{{CURRENTYEAR}}}} BC|{{#expr:1*{{CURRENTYEAR}}}}}}|[[{{#ifeq:{{lc:}}|bc|{{#expr:1*{{CURRENTYEAR}}}} BC|{{#expr:1*{{CURRENTYEAR}}}}}}]]}}}}}}</span><!--
 +
================================
 +
= year specified as number <= 0
 +
================================
 +
-->{{#ifexpr:{{CURRENTYEAR}}<=0|<!--
 +
--><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
-->-{{#ifexpr: {{CURRENTYEAR}} < -8999|0}}<!--
 +
-->{{#ifexpr: {{CURRENTYEAR}} < -9899|0}}<!--
 +
-->{{#ifexpr: {{CURRENTYEAR}} < -9989|0}}<!--
 +
-->{{#expr:9999+{{CURRENTYEAR}}}}<!--
 +
=============================================================================
 +
// rest of hidden part for the case that the year is specified as number <= 0
 +
=============================================================================
 +
-->{{#if:1|-{{MONTH|1}}{{#if:1|-{{0expr|1}}}}}} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
======================================================================
 +
// visible part for the case that the year is specified as number <= 0
 +
======================================================================
 +
-->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:hide|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:hide|hide||{{#ifeq:off|off|{{#expr:0-{{CURRENTYEAR}}}} BC|[[{{#expr:0-{{CURRENTYEAR}}}} BC]]}}}}}}</span><!--
 +
 
 +
--><!--
 
-->}}
 
-->}}
  
{{#if:2009|{{dts/core|2009|1|1||debug=|format=|link=off}}|<!--
+
{{#if:2009|<!--
-->{{dts/core|{{CURRENTYEAR}}|1|1||debug=|format=|link=off|year=hide}}<!--
+
 
 +
-->{{#ifexpr:2009>0|<!--
 +
=====================================================
 +
= year specified as number > 0, with or without "BC"
 +
=====================================================
 +
  --><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
  -->{{#ifeq:{{lc:}}|bc|<!--
 +
==========================================
 +
= year specified as number > 0, with "BC"
 +
==========================================
 +
    -->-{{#ifexpr: 2009 > 9000|0}}<!--
 +
    -->{{#ifexpr: 2009 > 9900|0}}<!--
 +
    -->{{#ifexpr: 2009 > 9990|0}}<!--
 +
    -->{{#expr:10000-2009}}|<!--
 +
==========
 +
= year AD
 +
==========
 +
    -->0{{#ifexpr: 2009 < 1000|0}}<!--
 +
    -->{{#ifexpr: 2009< 100|0}}<!--
 +
    -->{{#ifexpr: 2009 < 10|0}}<!--
 +
    -->{{#expr:1*2009}} }}<!--
 +
=============================================================================
 +
= rest of hidden part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|-{{MONTH|1}}<!--
 +
    -->{{#if:1|-{{0expr|1}} }} }} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
=============================================================================
 +
= visible part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:|hide||{{#ifeq:off|off|{{#ifeq:{{lc:}}|bc|{{#expr:1*2009}} BC|{{#expr:1*2009}}}}|[[{{#ifeq:{{lc:}}|bc|{{#expr:1*2009}} BC|{{#expr:1*2009}}}}]]}}}}}}</span><!--
 +
================================
 +
= year specified as number <= 0
 +
================================
 +
-->{{#ifexpr:2009<=0|<!--
 +
--><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
-->-{{#ifexpr: 2009 < -8999|0}}<!--
 +
-->{{#ifexpr: 2009 < -9899|0}}<!--
 +
-->{{#ifexpr: 2009 < -9989|0}}<!--
 +
-->{{#expr:9999+2009}}<!--
 +
=============================================================================
 +
// rest of hidden part for the case that the year is specified as number <= 0
 +
=============================================================================
 +
-->{{#if:1|-{{MONTH|1}}{{#if:1|-{{0expr|1}}}}}} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
======================================================================
 +
// visible part for the case that the year is specified as number <= 0
 +
======================================================================
 +
-->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:|hide||{{#ifeq:off|off|{{#expr:0-2009}} BC|[[{{#expr:0-2009}} BC]]}}}}}}</span><!--
 +
 
 +
-->|<!--
 +
--><!--
 +
 
 +
-->{{#ifexpr:{{CURRENTYEAR}}>0|<!--
 +
=====================================================
 +
= year specified as number > 0, with or without "BC"
 +
=====================================================
 +
  --><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
  -->{{#ifeq:{{lc:}}|bc|<!--
 +
==========================================
 +
= year specified as number > 0, with "BC"
 +
==========================================
 +
    -->-{{#ifexpr: {{CURRENTYEAR}} > 9000|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}} > 9900|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}} > 9990|0}}<!--
 +
    -->{{#expr:10000-{{CURRENTYEAR}}}}|<!--
 +
==========
 +
= year AD
 +
==========
 +
    -->0{{#ifexpr: {{CURRENTYEAR}} < 1000|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}}< 100|0}}<!--
 +
    -->{{#ifexpr: {{CURRENTYEAR}} < 10|0}}<!--
 +
    -->{{#expr:1*{{CURRENTYEAR}}}} }}<!--
 +
=============================================================================
 +
= rest of hidden part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|-{{MONTH|1}}<!--
 +
    -->{{#if:1|-{{0expr|1}} }} }} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
=============================================================================
 +
= visible part for the case that the year is specified as number > 0,
 +
= with or without "BC"
 +
=============================================================================
 +
  -->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:hide|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:hide|hide||{{#ifeq:off|off|{{#ifeq:{{lc:}}|bc|{{#expr:1*{{CURRENTYEAR}}}} BC|{{#expr:1*{{CURRENTYEAR}}}}}}|[[{{#ifeq:{{lc:}}|bc|{{#expr:1*{{CURRENTYEAR}}}} BC|{{#expr:1*{{CURRENTYEAR}}}}}}]]}}}}}}</span><!--
 +
================================
 +
= year specified as number <= 0
 +
================================
 +
-->{{#ifexpr:{{CURRENTYEAR}}<=0|<!--
 +
--><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
 +
-->-{{#ifexpr: {{CURRENTYEAR}} < -8999|0}}<!--
 +
-->{{#ifexpr: {{CURRENTYEAR}} < -9899|0}}<!--
 +
-->{{#ifexpr: {{CURRENTYEAR}} < -9989|0}}<!--
 +
-->{{#expr:9999+{{CURRENTYEAR}}}}<!--
 +
=============================================================================
 +
// rest of hidden part for the case that the year is specified as number <= 0
 +
=============================================================================
 +
-->{{#if:1|-{{MONTH|1}}{{#if:1|-{{0expr|1}}}}}} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
 +
======================================================================
 +
// visible part for the case that the year is specified as number <= 0
 +
======================================================================
 +
-->{{#if:1|{{#ifeq:off|off|{{#ifeq:|dmy|{{#if:1|1}} {{MONTHNAME|1}}|{{MONTHNAME|1}} {{#if:1|1{{#ifeq:hide|hide||,}}}}}}|[[{{MONTHNAME|1}} 1]]}}}} {{#ifeq:hide|hide||{{#ifeq:off|off|{{#expr:0-{{CURRENTYEAR}}}} BC|[[{{#expr:0-{{CURRENTYEAR}}}} BC]]}}}}}}</span><!--
 +
 
 +
--><!--
 
-->}}
 
-->}}

Revision as of 13:29, 27 April 2009

02009-01-01 January 1, 2009

02009-01-01 January 1, 2009