「Template:要検証/dateHandler」の版間の差分
編集の要約なし |
テスト、{{{Y4}}}{{{M1}}}を上から指定するようにしてみる |
||
1行目: | 1行目: | ||
{{#if:{{{1|}}} |
{{#if:{{{1|}}} |
||
|{{#switch:{{ |
|{{#switch:{{{Y4|}}} |
||
|2007|2008=2008年以前{{#switch:{{ |
|2007|2008=2008年以前{{#switch:{{{M1|}}}|1|2|3|4|5|6|7|8|9|A|B|C=|#default=_月}} |
||
|2009=2009年{{#switch:{{ |
|2009=2009年{{#switch:{{{M1|}}}|1|2|3|4|5|6|7|8|9|A|B|C=|#default=_月}} |
||
|2010=2010年{{#switch:{{ |
|2010=2010年{{#switch:{{{M1|}}} |
||
|1|2|3|4|5|6=1月-6月|7|8|9|A|B|C=7月-12月|#default=_月}} |
|1|2|3|4|5|6=1月-6月|7|8|9|A|B|C=7月-12月|#default=_月}} |
||
|2011=2011年{{#switch:{{ |
|2011=2011年{{#switch:{{{M1|}}} |
||
|1|2|3|4|5|6=1月-6月|7|8|9|A|B|C=7月-12月|#default=_月}} |
|1|2|3|4|5|6=1月-6月|7|8|9|A|B|C=7月-12月|#default=_月}} |
||
|#default= |
|#default={{{1}}} |
||
}} |
|||
|{{#if:{{{2|}}}|{{Checkdate|getM1={{{2}}}|year-min=2009|year-max=2011}}|}} |
|||
|{{#if:{{{2|}}} |
|||
|{{#switch:{{{Y4|}}}|2009|2010|2011={{{M1|}}}|#default=}} |
|||
}} |
|||
}}<noinclude> |
}}<noinclude> |
||
* パラメータ '''1''' に年月を指定した場合は当該サブカテゴリ名の末尾を返します。 |
* パラメータ '''1''' に年月を指定した場合は当該サブカテゴリ名の末尾を返します。 |