更改

跳到导航 跳到搜索
删除58字节 、 2022年10月14日 (五) 13:31
无编辑摘要
第1行: 第1行: −
<noinclude>
+
<noinclude><templatedata>{ "params": { "title": { "type": "string", "required": true, "description": "作品名称" }, "contents": { "type": "string", "required": true, "description": "显示内容" }, "startDate": { "type": "date", "required": true, "description": "起始日期,格式为yyyy-mm-dd" }, "endDate": { "type": "date", "description": "结束日期,格式为yyyy-mm-dd,为空时默认与startDate相等" }, "remark": { "type": "string" } }, "paramOrder": [ "title", "startDate", "endDate", "contents", "remark" ], "format": "inline"}</templatedata>{{#cargo_declare:_table=acgnEvents|title=String|contents=String|startDate=Start date|endDate=End date|remark=String}}</noinclude><includeonly>{{#cargo_store:_table=acgnEvents |contents={{{contents|}}} |startDate={{{startDate}}} |remark={{{remark|}}} |endDate= {{   #if:   {{{endDate|}}}   |{{{endDate}}}   |{{{startDate}}} }} +1 days}}|-
<templatedata>
+
| {{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}}}|}} || {{{contents}}} || {{#if:{{{remark|}}}|({{{remark|}}})|}} || {{{title}}}</includeonly>
{
  −
"params": {
  −
"title": {
  −
"type": "string",
  −
"required": true,
  −
"description": "作品名称"
  −
},
  −
"contents": {
  −
"type": "string",
  −
"required": true,
  −
"description": "显示内容"
  −
},
  −
"startDate": {
  −
"type": "date",
  −
"required": true,
  −
"description": "起始日期,格式为yyyy-mm-dd"
  −
},
  −
"endDate": {
  −
"type": "date",
  −
"description": "结束日期,格式为yyyy-mm-dd,为空时默认与startDate相等"
  −
},
  −
"remark": {
  −
"type": "string"
  −
}
  −
},
  −
"paramOrder": [
  −
"title",
  −
"startDate",
  −
"endDate",
  −
"contents",
  −
"remark"
  −
],
  −
"format": "inline"
  −
}
  −
</templatedata>
  −
{{#cargo_declare:_table=acgnEvents
  −
|title=String
  −
|contents=String
  −
|startDate=Start date
  −
|endDate=End date
  −
|remark=String}}
  −
</noinclude>
  −
<includeonly>
  −
{{#cargo_store:_table=acgnEvents
  −
  |contents={{{contents|}}}
  −
  |startDate={{{startDate}}}
  −
  |remark={{{remark|}}}
  −
  |endDate=
  −
  {{
  −
    #if:
  −
    {{{endDate|}}}
  −
    |{{{endDate}}}
  −
    |{{{startDate}}}
  −
  }} +1 days
  −
}}
  −
|-
  −
| {{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}}}|}} || {{{contents}}} || {{#if:{{{remark|}}}|({{{remark|}}})|}} || {{{title}}}
  −
</includeonly>
 

导航菜单