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

From blackwiki
Jump to navigation Jump to search
imported>GregorB
(Subst)
imported>Amakuru
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if:2009|<!--
+
<noinclude>{|class="wikitable sortable"
 
+
</noinclude>{{Date table sorting/testcases/row
-->{{#ifexpr:2009>0|<!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
=====================================================
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}
= year specified as number > 0, with or without "BC"
+
}}
=====================================================
+
{{Date table sorting/testcases/row
  --><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
  -->{{#ifeq:{{lc:}}|bc|<!--
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=dmy
==========================================
+
}}
= year specified as number > 0, with "BC"
+
{{Date table sorting/testcases/row
==========================================
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
    -->-{{#ifexpr: 2009 > 9000|0}}<!--
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=mdy
    -->{{#ifexpr: 2009 > 9900|0}}<!--
+
}}
    -->{{#ifexpr: 2009 > 9990|0}}<!--
+
{{Date table sorting/testcases/row
    -->{{#expr:10000-2009}}|<!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
==========
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=dm
= year AD
+
}}
==========
+
{{Date table sorting/testcases/row
    -->0{{#ifexpr: 2009 < 1000|0}}<!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
    -->{{#ifexpr: 2009< 100|0}}<!--
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=md
    -->{{#ifexpr: 2009 < 10|0}}<!--
+
}}
    -->{{#expr:1*2009}} }}<!--
+
{{Date table sorting/testcases/row
=============================================================================
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
= rest of hidden part for the case that the year is specified as number > 0,
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=my
= with or without "BC"
+
}}
=============================================================================
+
{{#if:{{{abbr|}}}||
  -->{{#if:1|-{{MONTH|1}}<!--
+
{{Date table sorting/testcases/row
    -->{{#if:1|-{{0expr|1}} }} }} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
=============================================================================
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=d
= visible part for the case that the year is specified as number > 0,
+
}}
= with or without "BC"
+
}}
=============================================================================
+
{{Date table sorting/testcases/row
  -->{{#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><!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
================================
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=m
= year specified as number <= 0
+
}}
================================
+
{{#if:{{{abbr|}}}||
-->{{#ifexpr:2009<=0|<!--
+
{{Date table sorting/testcases/row
--><span style="{{#ifeq:|yes|border:1px solid|display:none}}"><!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
-->-{{#ifexpr: 2009 < -8999|0}}<!--
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=y
-->{{#ifexpr: 2009 < -9899|0}}<!--
+
}}
-->{{#ifexpr: 2009 < -9989|0}}<!--
+
{{Date table sorting/testcases/row
-->{{#expr:9999+2009}}<!--
+
  |{{{1|<noinclude>{{#time:j M Y}}</noinclude>}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|test=1
=============================================================================
+
  |abbr={{{abbr|}}}|addkey={{{addkey|}}}|format=hide
// rest of hidden part for the case that the year is specified as number <= 0
+
}}
=============================================================================
+
}}<noinclude>
-->{{#if:1|-{{MONTH|1}}{{#if:1|-{{0expr|1}}}}}} </span><span style="{{#ifeq:|off||white-space:nowrap;}}"><!--
+
|}</noinclude>
======================================================================
 
// 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|<!--
 
 
 
-->{{#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><!--
 
 
 
--><!--
 
-->}}
 

Latest revision as of 14:48, 10 July 2019

{{Date table sorting|14 Jan 2026}} 14 Jan 2026 14 Jan 2026
{{Date table sorting|14 Jan 2026|format=dmy}} 14 Jan 2026 14 Jan 2026
{{Date table sorting|14 Jan 2026|format=mdy}} Jan 14, 2026 Jan 14, 2026
{{Date table sorting|14 Jan 2026|format=dm}} 14 Jan 14 Jan
{{Date table sorting|14 Jan 2026|format=md}} Jan 14 Jan 14
{{Date table sorting|14 Jan 2026|format=my}} Jan 2026 Jan 2026
{{Date table sorting|14 Jan 2026|format=d}} 14 14
{{Date table sorting|14 Jan 2026|format=m}} Jan Jan
{{Date table sorting|14 Jan 2026|format=y}} 2026 2026
{{Date table sorting|14 Jan 2026|format=hide}}