“模板:AcgnEvent”的版本间的差异
跳到导航
跳到搜索
(建立内容为“ <noinclude> <templatedata> { "params": { "startDate": { "type": "date" }, "endDate": { "type": "date" }, "contents": { "type": "string", "…”的新页面) |
|||
(未显示2个用户的53个中间版本) | |||
第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> | + | | {{#time:Y年m月d日|{{{startDate}}}}}{{#if:{{{endDate|}}}|{{#ifeq:{{{startDate}}}|{{{endDate}}}||-{{#time:Y年m月d日|{{{endDate}}}}}|}}}} || {{{title}}} || {{{contents}}} || {{#if:{{{remark|}}}|({{{remark|}}})|}}</includeonly> |
− | <templatedata> | ||
− | { | ||
− | |||
− | |||
− | |||
− | }, | ||
− | |||
− | |||
− | }, | ||
− | |||
− | |||
− | |||
− | |||
− | }, | ||
− | "description": " | ||
− | "paramOrder": [ | ||
− | |||
− | |||
− | |||
− | ], | ||
− | |||
− | } | ||
− | </templatedata> | ||
− | {{#cargo_declare:_table=acgnEvents | ||
− | |contents=String | ||
− | |startDate= | ||
− | |endDate= | ||
− | </noinclude> | ||
− | <includeonly> | ||
− | {{#cargo_store:_table=acgnEvents}} | ||
− | {| | ||
− | |||
− | | {{{ | ||
− | |- | ||
− | |||
− | | {{{startDate|}}} | ||
− | |- | ||
− | |||
− | | {{{endDate|}}} | ||
− | |} | ||
− | </includeonly> |
2023年2月1日 (三) 23:17的最新版本
无描述。
参数 | 说明 | 类型 | 状态 | |
---|---|---|---|---|
Title | title | 作品名称 | 字符串 | 必填 |
StartDate | startDate | 起始日期,格式为yyyy-mm-dd | 日期 | 必填 |
EndDate | endDate | 结束日期,格式为yyyy-mm-dd,为空时默认与startDate相等 | 日期 | 可选 |
Contents | contents | 显示内容 | 字符串 | 必填 |
Remark | remark | 无描述 | 字符串 | 可选 |
此模板定义表格“acgnEvents”。 查看表格.