“模板:AcgnEvent”的版本间的差异
跳到导航
跳到搜索
第31行: | 第31行: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
− | {{#cargo_store:_table=acgnEvents|contents={{{contents|}}}|startDate={{{startDate}}}|endDate={{#if:{{{endDate|}}}|{{{endDate}}}|{{{startDate}}}}} +1 days}} | + | {{#cargo_store:_table=acgnEvents |
+ | |contents={{{contents|}}} | ||
+ | |startDate={{{startDate}}} | ||
+ | |endDate= | ||
+ | {{ | ||
+ | #if: | ||
+ | {{{endDate|}}} | ||
+ | |{{{endDate}}} | ||
+ | |{{{startDate}}} | ||
+ | }} +1 days | ||
+ | }} | ||
+ | |||
+ | |||
{{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}}}|}}:{{{contents}}} | {{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}}}|}}:{{{contents}}} | ||
</includeonly> | </includeonly> |
2022年5月3日 (二) 07:34的版本
endDate为空时默认与startDate相等,endDate不为空时那一天不计算在内,如1月1日
参数 | 说明 | 类型 | 状态 | |
---|---|---|---|---|
StartDate | startDate | 无描述 | 日期 | 必填 |
EndDate | endDate | 无描述 | 日期 | 可选 |
Contents | contents | 无描述 | 字符串 | 必填 |
此模板定义表格“acgnEvents”。 查看表格.