Template:Unsigned/doc

From Terraria Mods Wiki
Jump to navigation Jump to search

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. Thursday2024, 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=14:24, 16 May 2024}} — Preceding unsigned comment added by Westgrass (talk • contribs) at 14:24, 16 May 2024 (UTC)
{{unsigned|86.115.19.146|UTC=14:24, 16 May 2024}} — Preceding unsigned comment added by 86.115.19.146 at 14:24, 16 May 2024 (UTC)
{{unsigned|Westgrass|time=14:24, 16 May 2024}} — Preceding unsigned comment added by Westgrass (talk • contribs) at 14:24, 16 May 2024
{{unsigned|user=Westgrass|14:24, 16 May 2024}} — Preceding unsigned comment added by Westgrass (talk • contribs) at 14:24, 16 May 2024
{{unsigned|user=Westgrass|time=14:24, 16 May 2024}} — Preceding unsigned comment added by Westgrass (talk • contribs) at 14:24, 16 May 2024
{{unsigned|ip=86.115.19.146|time=14:24, 16 May 2024}} — Preceding unsigned comment added by 86.115.19.146 at 14:24, 16 May 2024
{{unsigned|14:24, 16 May 2024|Thursday2024}} — Preceding unsigned comment added by 14:24, 16 May 2024 (talk • contribs) at Thursday2024
{{unsigned|Thursday2024|UTC=14:24, 16 May 2024}} — Preceding unsigned comment added by Thursday2024 (talk • contribs) at 14:24, 16 May 2024 (UTC)