“模板:砥石参数”的版本间的差异

来自砥石百科
跳到导航 跳到搜索
(清空页面)
标签清空
(测试)
 
第1行: 第1行:
 
<templatedata>
{
    "description": "Label unsigned comments in a conversation.",
    "params": {
        "user": {
            "label": "User's name",
            "type": "wiki-user-name",
            "required": true,
            "description": "User name of person who forgot to sign their comment.",
            "aliases": ["1"]
        },
        "date": {
            "label": "Date",
            "suggested": true,
            "description": {
                "en": "Timestamp of when the comment was posted, in YYYY-MM-DD format."
            },
            "aliases": ["2"],
            "autovalue": "{{subst:#time:Y-m-d}}"
        },
        "year": {
            "label": "Year",
            "type": "number"
        },
        "month": {
            "label": "Month",
            "inherits": "year"
        },
        "day": {
            "label": "Day",
            "inherits": "year"
        },
        "comment": {
            "required": false
        }
    },
    "sets": [
        {
            "label": "Date",
            "params": ["year", "month", "day"]
        }
    ],
    "maps": {
        "ExampleConsumer": {
            "foo": "user",
            "bar": ["year", "month", "day"],
            "quux": [
                "date",
                ["day", "month"],
                ["month", "year"],
                "year"
            ]
        }
    }
}
</templatedata>

2019年8月24日 (六) 01:59的最新版本

Label unsigned comments in a conversation.

模板参数

参数说明类型状态
User's nameuser1

User name of person who forgot to sign their comment.

用户必填
Datedate2

Timestamp of when the comment was posted, in YYYY-MM-DD format.

自动值
{{subst:#time:Y-m-d}}
未知推荐
Yearyear

无描述

数值可选
Monthmonth

无描述

数值可选
Dayday

无描述

数值可选
commentcomment

无描述

未知可选