Difference between revisions of "Template:Test2"

From Electronen Mikroskopie Museum Nürnberg
Jump to navigation Jump to search
Line 2: Line 2:
 
<templatedata>
 
<templatedata>
 
{
 
{
    "description": "Label unsigned comments in a conversation.",
+
"description": "Label unsigned comments in a conversation.",
    "params": {
+
"params": {
        "user": {
+
"user": {
            "label": "User's name",
+
"label": "User's name",
            "type": "wiki-user-name",
+
"type": "wiki-user-name",
            "required": true,
+
"required": true,
            "description": "User name of person who forgot to sign their comment.",
+
"description": "User name of person who forgot to sign their comment.",
            "aliases": ["1"]
+
"aliases": [
        },
+
"1"
        "date": {
+
]
            "label": "Date",
+
},
            "suggested": true,
+
"date": {
            "description": {
+
"label": "Date",
                "en": "Timestamp of when the comment was posted, in YYYY-MM-DD format."
+
"suggested": true,
            },
+
"description": {
            "aliases": ["2"],
+
"en": "Timestamp of when the comment was posted, in YYYY-MM-DD format."
            "autovalue": "{{subst:#time:Y-m-d}}"
+
},
        },
+
"aliases": [
        "year": {
+
"2"
            "label": "Year",
+
],
            "type": "number"
+
"autovalue": "{{subst:#time:Y-m-d}}"
        },
+
},
        "month": {
+
"year": {
            "label": "Month",
+
"label": "Year",
            "inherits": "year"
+
"type": "number"
        },
+
},
        "day": {
+
"month": {
            "label": "Day",
+
"label": "Month",
            "inherits": "year"
+
"inherits": "year"
        },
+
},
        "comment": {
+
"day": {
            "required": false
+
"label": "Day",
        }
+
"inherits": "year"
    },
+
},
    "sets": [
+
"comment": {
        {
+
"required": false
            "label": "Date",
+
}
            "params": ["year", "month", "day"]
+
},
        }
+
"sets": [
    ],
+
{
    "maps": {
+
"label": "Date",
        "ExampleConsumer": {
+
"params": [
            "foo": "user",
+
"year",
            "bar": ["year", "month", "day"],
+
"month",
            "quux": [
+
"day"
                "date",
+
]
                ["day", "month"],
+
}
                ["month", "year"],
+
],
                "year"
+
"maps": {
            ]
+
"ExampleConsumer": {
        }
+
"foo": "user",
    }
+
"bar": [
 +
"year",
 +
"month",
 +
"day"
 +
],
 +
"quux": [
 +
"date",
 +
[
 +
"day",
 +
"month"
 +
],
 +
[
 +
"month",
 +
"year"
 +
],
 +
"year"
 +
]
 +
}
 +
},
 +
"format": "inline"
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 16:22, 1 February 2021

Label unsigned comments in a conversation.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
User's nameuser 1

User name of person who forgot to sign their comment.

Userrequired
Datedate 2

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

Auto value
{{subst:#time:Y-m-d}}
Unknownsuggested
Yearyear

no description

Numberoptional
Monthmonth

no description

Numberoptional
Dayday

no description

Numberoptional
Commentcomment

no description

Unknownoptional