Template:Unsigned
This template is added to talk page comments who were not signed by their author.
Usage
While there are various ways to transclude this template, the following version is usually used:
{{ unsigned | <user name> | UTC = <UTC timestamp of the edit> }}
- First unnamed parameter
The name of the user who added the comment. The
and $user
parameters can also be used for this. The template will automatically attempt to determine whether it is an unregistered editor via $username
{{isIP}}
. Use the
to explicitly specify that.
$ip
- UTC
The timestamp of when the comment was added to the page, in Coordinated Universal Time (UTC). Alternatively, use the
parameter to exclude the UTC timezone suffix.
$time
While the first and second unnamed parameters can generally both be used for timestamp and user name interchangeably, this is discouraged. If a user happens to be named like a valid timestamp, e.g.
, the template might have unexpected outputs. Therefore, at least one of the two pieces of information should always be passed via a named parameter – the format specified at the top of this section is recommended. The named parameters always take precedence.
星期一2024
Notes
- The transclusion format first specified in the Usage section above is useful for copying from the history of a talk page or from the recent changes. Beware of custom timezone settings, though! The timestamp displayed by this template should always be in UTC.
- The parameters
and$UTC
can be called either in full uppercase or full lowercase:$ip
$UTC
$utc
$IP
$ip
- If passing the timestamp as one of the unnamed parameters, then it will only be displayed if it is accepted by
{{#time:}}
, i.e. PHP's strtotime() function. - Passing a user name is mandatory, whereas passing a timestamp is optional.
Examples
Code | Result |
---|---|
{{unsigned|Westgrass|UTC=09:48, 10 6月 2024}} |
— 以上未签名的留言是由 Westgrass(讨论 • 贡献) 在09:48, 10 6月 2024 (UTC)加入的。 |
{{unsigned|86.115.19.146|UTC=09:48, 10 6月 2024}} |
— 以上未签名的留言是由 86.115.19.146 在09:48, 10 6月 2024 (UTC)加入的。 |
{{unsigned|Westgrass|time=09:48, 10 6月 2024}} |
— 以上未签名的留言是由 Westgrass(讨论 • 贡献) 在09:48, 10 6月 2024加入的。 |
{{unsigned|user=Westgrass|09:48, 10 6月 2024}} |
— 以上未签名的留言是由 Westgrass(讨论 • 贡献) 在09:48, 10 6月 2024加入的。 |
{{unsigned|user=Westgrass|time=09:48, 10 6月 2024}} |
— 以上未签名的留言是由 Westgrass(讨论 • 贡献) 在09:48, 10 6月 2024加入的。 |
{{unsigned|ip=86.115.19.146|time=09:48, 10 6月 2024}} |
— 以上未签名的留言是由 86.115.19.146 在09:48, 10 6月 2024加入的。 |
{{unsigned|09:48, 10 6月 2024|星期一2024}} |
— 以上未签名的留言是由 09:48, 10 6月 2024(讨论 • 贡献) 在星期一2024加入的。 |
{{unsigned|星期一2024|UTC=09:48, 10 6月 2024}} |
— 以上未签名的留言是由 星期一2024(讨论 • 贡献) 在09:48, 10 6月 2024 (UTC)加入的。 |