“模板:AcgnEvent”的版本间的差异

来自ACGN大事纪年表
跳到导航 跳到搜索
第6行: 第6行:
 
"type": "string",
 
"type": "string",
 
"required": true,
 
"required": true,
"description":"显示内容"
+
"description": "显示内容"
 
},
 
},
 
"startDate": {
 
"startDate": {
 
"type": "date",
 
"type": "date",
 
"required": true,
 
"required": true,
"description":"起始日期,格式为yyyy-mm-dd"
+
"description": "起始日期,格式为yyyy-mm-dd"
 
},
 
},
 
"endDate": {
 
"endDate": {
 
"type": "date",
 
"type": "date",
"description":"结束日期,格式为yyyy-mm-dd,为空时默认与startDate相等"
+
"description": "结束日期,格式为yyyy-mm-dd,为空时默认与startDate相等"
 +
},
 +
"remark": {
 +
"type": "string"
 
}
 
}
 
},
 
},
第21行: 第24行:
 
"startDate",
 
"startDate",
 
"endDate",
 
"endDate",
"contents"
+
"contents",
 +
"remark"
 
],
 
],
 
"format": "inline"
 
"format": "inline"
第29行: 第33行:
 
|contents=String
 
|contents=String
 
|startDate=Start date
 
|startDate=Start date
|endDate=End date}}
+
|endDate=End date
 +
|remark=String}}
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}}}|}}:{{{contents}}}{{#cargo_store:_table=acgnEvents
+
{{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}}}|}}:{{{contents}}}({{{remark|}}})
 +
{{#cargo_store:_table=acgnEvents
 
   |contents={{{contents|}}}
 
   |contents={{{contents|}}}
 
   |startDate={{{startDate}}}
 
   |startDate={{{startDate}}}
 +
  |remark={{{remark|}}}
 
   |endDate=
 
   |endDate=
 
   {{
 
   {{

2022年5月5日 (四) 11:20的版本

无描述。

模板参数

此模板首选参数行内格式。

参数说明类型状态
StartDatestartDate

起始日期,格式为yyyy-mm-dd

日期必填
EndDateendDate

结束日期,格式为yyyy-mm-dd,为空时默认与startDate相等

日期可选
Contentscontents

显示内容

字符串必填
Remarkremark

无描述

字符串可选

此模板定义表格“acgnEvents”。 查看表格.