Template:Unsigned

来自Terraria Wiki
跳到导航 跳到搜索
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Unsigned/l10n for the localization of this template.
Template-info.svg 文档 以下文档来自Template:Unsigned/doc。(编辑 | 历史

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 $user and $username parameters can also be used for this. The template will automatically attempt to determine whether it is an unregistered editor via {{isIP}}. Use the $ip to explicitly specify that.

UTC

The timestamp of when the comment was added to the page, in Coordinated Universal Time (UTC). Alternatively, use the $time parameter to exclude the UTC timezone suffix.


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. 星期日2024, 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.

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 $UTC and $ip can be called either in full uppercase or full lowercase:
    • $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=23:42, 5 5月 2024}} — 以上未签名的留言是由 Westgrass(讨论贡献) 在23:42, 5 5月 2024 (UTC)加入的。
{{unsigned|86.115.19.146|UTC=23:42, 5 5月 2024}} — 以上未签名的留言是由 86.115.19.146 在23:42, 5 5月 2024 (UTC)加入的。
{{unsigned|Westgrass|time=23:42, 5 5月 2024}} — 以上未签名的留言是由 Westgrass(讨论贡献) 在23:42, 5 5月 2024加入的。
{{unsigned|user=Westgrass|23:42, 5 5月 2024}} — 以上未签名的留言是由 Westgrass(讨论贡献) 在23:42, 5 5月 2024加入的。
{{unsigned|user=Westgrass|time=23:42, 5 5月 2024}} — 以上未签名的留言是由 Westgrass(讨论贡献) 在23:42, 5 5月 2024加入的。
{{unsigned|ip=86.115.19.146|time=23:42, 5 5月 2024}} — 以上未签名的留言是由 86.115.19.146 在23:42, 5 5月 2024加入的。
{{unsigned|23:42, 5 5月 2024|星期日2024}} — 以上未签名的留言是由 23:42, 5 5月 2024(讨论 • 贡献) 在星期日2024加入的。
{{unsigned|星期日2024|UTC=23:42, 5 5月 2024}} — 以上未签名的留言是由 星期日2024(讨论 • 贡献) 在23:42, 5 5月 2024 (UTC)加入的。