「Template:要検証/dateHandler」の版間の差分
編集の要約なし |
2024年対応 |
||
(3人の利用者による、間の38版が非表示) | |||
1行目: | 1行目: | ||
{{#if:{{{ |
{{#if:{{{1|}}} |
||
|{{#switch:{{{year|}}} |
|||
|2007|2008=2008年以前{{#switch:{{{M1}}}|1|2|3|4|5|6|7|8|9|A|B|C=|#default=_月}} |
|||
|2007年|2008年|2009年|2010年=2010年以前 |
|||
|2009=2009年{{#switch:{{{M1}}}|1|2|3|4|5|6|7|8|9|A|B|C=|#default=_月}} |
|||
|2011年|2012年|2013年|2014年|2015年={{{year}}} |
|||
|2010=2010年{{#switch:{{{M1}}}|1|2|3|4|5|6=1月-6月|7|8|9|A|B|C=7月-12月|#default=_月}} |
|||
|2016年|2017年|2018年|2019年|2020年|2021年|2022年|2023年|2024年={{#switch:{{{1}}} |
|||
|2011=2011年{{#switch:{{{M1}}}|1|2|3|4|5|6=1月-6月|7|8|9|A|B|C=7月-12月|#default=_月}} |
|||
|{{{year}}}1月|{{{year}}}2月|{{{year}}}3月|{{{year}}}4月|{{{year}}}5月|{{{year}}}6月={{{year}}}1月-6月 |
|||
|#default={{#switch:{{{M1}}}|1|2|3|4|5|6|7|8|9|A|B|C=|#default=_月}}}} |
|||
|{{{year}}}7月|{{{year}}}8月|{{{year}}}9月|{{{year}}}10月|{{{year}}}11月|{{{year}}}12月={{{year}}}7月-12月 |
|||
⚫ | |||
|#default=}} |
|||
⚫ | |||
|#default={{{1}}} |
|||
** 1箇月単位でよい場合については何も返しません。 |
|||
}} |
|||
** 月の未記入や誤記入は {{Tl|DMC/core}}で検出させるために 「_月」を返します。 |
|||
|{{#if:{{{2|}}} |
|||
⚫ | |||
|{{#switch:{{{year|}}} |
|||
</noinclude> |
|||
|2007年=* |
|||
|2008年|2009年=0 |
|||
|2010年|2011年|2012年|2013年|2014年|2015年|2016年|2017年|2018年|2019年|2020年|2021年|2022年|2023年|2024年={{#switch:{{{2}}} |
|||
|{{{year}}}1月=1|{{{year}}}4月=4|{{{year}}}7月=7|{{{year}}}10月=A |
|||
|{{{year}}}2月=2|{{{year}}}5月=5|{{{year}}}8月=8|{{{year}}}11月=B |
|||
|{{{year}}}3月=3|{{{year}}}6月=6|{{{year}}}9月=9|{{{year}}}12月=C |
|||
|#default=}} |
|||
|#default=}} |
|||
|}} |
|||
⚫ | |||
⚫ | |||
* パラメータ '''2''' に年月を指定した場合は月を1文字で返します。10月はA、11月はB、12月はCを返します。月別分類をしない年 および1箇月単位で分類する年については何も返しません。
|
|||
⚫ |