Template:Unsigned

From Terraria Wiki
Jump to navigation Jump to search
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 Documentation The documentation below is transcluded from Template:Unsigned/doc. (edit | history)

This template is added to talk page comments who were not signed by their author.

{{uns}} is an alias for {{unsigned}}.

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 parameter 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. Wednesday2024, 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 "Copy Unsigned" gadget adds a button for copying {{unsigned}} code from the diff of a talk page to the clipboard, and it uses the recommended format. Gadgets are available to logged-in users in their preferences.
  • 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=03:25, 24 April 2024}} — Preceding unsigned comment added by Westgrass (talkcontribs) at 03:25, 24 April 2024 (UTC)
{{unsigned|86.115.19.146|UTC=03:25, 24 April 2024}} — Preceding unsigned comment added by 86.115.19.146 (talk) at 03:25, 24 April 2024 (UTC)
{{unsigned|Westgrass|time=03:25, 24 April 2024}} — Preceding unsigned comment added by Westgrass (talkcontribs) at 03:25, 24 April 2024
{{unsigned|user=Westgrass|03:25, 24 April 2024}} — Preceding unsigned comment added by Westgrass (talkcontribs) at 03:25, 24 April 2024
{{unsigned|user=Westgrass|time=03:25, 24 April 2024}} — Preceding unsigned comment added by Westgrass (talkcontribs) at 03:25, 24 April 2024
{{unsigned|ip=86.115.19.146|time=03:25, 24 April 2024}} — Preceding unsigned comment added by 86.115.19.146 (talk) at 03:25, 24 April 2024
{{unsigned|03:25, 24 April 2024|Wednesday2024}} — Preceding unsigned comment added by 03:25, 24 April 2024 (talk • contribs) at Wednesday2024
{{unsigned|Wednesday2024|UTC=03:25, 24 April 2024}} — Preceding unsigned comment added by Wednesday2024 (talk • contribs) at 03:25, 24 April 2024 (UTC)