模板:AcgnEvent:修订间差异

来自ACGN大事纪年表
跳转到导航 跳转到搜索
Findsky留言 | 贡献
无编辑摘要
Findsky留言 | 贡献
无编辑摘要
第1行: 第1行:
<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}}|-
<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={{#time:Y年m月d日|{{{startDate}}}}}  |remark={{{remark|}}}  |endDate=  {{    #if:    {{{endDate|}}}    |{{{endDate}}}    |{{{startDate}}}  }} +1 days}}|-
| {{{startDate}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{{endDate}}}}}|}} || {{{title}}} || {{{contents}}} || {{#if:{{{remark|}}}|({{{remark|}}})|}}</includeonly>
| {{{startDate}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{{endDate}}}}}|}} || {{{title}}} || {{{contents}}} || {{#if:{{{remark|}}}|({{{remark|}}})|}}</includeonly>

2023年2月1日 (三) 15:06的版本

无描述。

模板参数[编辑模板数据]

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

参数描述类型状态
titletitle

作品名称

字符串必需
startDatestartDate

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

日期必需
endDateendDate

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

日期可选
contentscontents

显示内容

字符串必需
remarkremark

无描述

字符串可选

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