Template:Checkdate: Difference between revisions

857 bytes removed ,  3 October 2021
Replaced content with "{{#if:{{{1|}}}|{{#iferror:{{#time:F Y|{{{1}}}}}||{{#time:F Y|{{{1}}}}}}}}}"
(Created page with "{{#ifeq:{{padleft:|7|{{{1}}}*}}|{{padleft:月|7|{{{1}}} }} |{{padleft:|7|{{{1}}} }}<!-- yyyy*m月~(月1桁) --> |{{#ifeq:{{padleft:|8|{{{1}}}*}}{{padleft:|6|{{{1}}} }}|{...")
 
(Replaced content with "{{#if:{{{1|}}}|{{#iferror:{{#time:F Y|{{{1}}}}}||{{#time:F Y|{{{1}}}}}}}}}")
Tag: Replaced
 
Line 1: Line 1:
{{#ifeq:{{padleft:|7|{{{1}}}*}}|{{padleft:月|7|{{{1}}} }}
{{#if:{{{1|}}}|{{#iferror:{{#time:F Y|{{{1}}}}}||{{#time:F Y|{{{1}}}}}}}}}
|{{padleft:|7|{{{1}}} }}<!-- yyyy*m月~(月1桁) -->
|{{#ifeq:{{padleft:|8|{{{1}}}*}}{{padleft:|6|{{{1}}} }}|{{padleft:月|8|{{{1}}} }}{{padleft:1|6|{{{1}}} }}
  |{{padleft:|8|{{{1}}} }}<!-- yyyy*1*月~ -->
  |{{#ifeq:{{padleft:|6|{{{1}}}*}}<!-- yyyy-m~ , yyyy-mm~ -->
          |{{#expr:trunc{{padleft:|4|{{{1|}}} }} }}-{{#expr:trunc-(-0.{{padleft:|6|{{{1|}}} }}) }}
    |{{padleft:|4|{{{1}}} }}年<!--
      -->{{#expr:-(trunc 0.{{padleft:|{{#if:{{#ifexpr:{{padleft:|7|{{{1}}}*}} }}|6|7}}|{{{1}}} }}) }}
    |{{#if:{{#if:{{{1|}}}|{{#time:|{{{1}}} 2100 +7940 year}}|error}}<!-- Month yyyy , yyyy d Month など -->
      |{{#ifeq:{{padleft:|3|{{{defaultdate|}}}X}}|エラー
        |{{ErrorJA|alias={{{1|}}}|{{{defaultdate}}} }}
        |{{{defaultdate|}}}<!-- エラー出力 -->
        }}
      |{{#time:Y年F|{{{1}}} }}
      }}
    }}
  }}
}}
3,314

edits