Template:Unsigned

From Gentoo Wiki
Jump to:navigation Jump to:search
[edit Documentation
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

This template is for attributing unsigned comments on talk pages — although you may find {{Unsigned2}} easier to use.

Parameters

Parameter name Required? Default value Description
Anonymous parameter 1 Yes (n/a) Username.
Anonymous parameter 2 No (n/a) Date (or in fact any additional text).
unsigned No unsigned If provided, replaces the word "unsigned" in the message.

The unsigned parameter is intended for cases where the comment was "manually" signed (using plain text instead of the magical four tildes: ~~~~). If the commenter did not provide a date, it makes sense to use unsigned=undated; if they provided a username and a date, you still might want to use his template with unsigned= to provide readers a link to the commenter's user page and contributions. See the testcases below.

Note that if you have set a timezone in your preferences, the time shown to you in a page history or diff may be different from the time shown to other users. This may make the date provided by this template look wrong to some users. This effect can be minimized (although not avoided completely) by simply not using the "time" part of the date (as shown in the testcases). Alternatively, you can include the time with the correct timezone (although this information is not shown in page histories and diffs, so you'll have to do more work).

Usage

{{subst:Unsigned|username|date}}
{{subst:Unsigned|username|date|unsigned=}}

See the template's testcases:

Correct

Username and date (two anonymous parameters)
Wiki code
{{subst:Unsigned|User|2024-05-14}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) 2024-05-14
Sandbox version


Username only (one anonymous parameter)
Wiki code
{{subst:Unsigned|User}}
Main version
— The preceding unsigned comment was added by User (talkcontribs)
Sandbox version


↑ This is OK, but it's really better to provide a date, as in the previous example.


When the username contains an equal sign (using 1= and 2=)
Wiki code
{{subst:Unsigned|1=User{{=}}name|2=2024-05-14}}
Main version
— The preceding unsigned comment was added by User=name (talkcontribs) 2024-05-14
Sandbox version


↑ If 1= is used, then the date must be specified using 2= or omitted completely.


Showing something other than the date (two anonymous parameters)
Wiki code
{{subst:Unsigned|User|— oops)}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) — oops
Sandbox version


↑ There might not be any good reason to use anything but the date in the second position.


Dating a signed comment (using unsigned=undated)
Wiki code
{{subst:Unsigned|User|2024-05-14|unsigned=undated}}
Main version
— The preceding undated comment was added by User (talkcontribs) 2024-05-14
Sandbox version


Hiding the word "unsigned" (empty value for unsigned)
Wiki code
{{subst:Unsigned|User|2024-05-14|unsigned=}}
Main version
— The preceding comment was added by User (talkcontribs) 2024-05-14
Sandbox version


↑ This is useful when a comment has been "manually" signed using plain text.


Suppressing the link on the word "unsigned" (using unsigned=unsigned)
Wiki code
{{subst:Unsigned|User|2024-05-14|unsigned=unsigned}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) 2024-05-14
Sandbox version


Incorrect

No parameters (exposes raw wikicode)
Wiki code
{{subst:Unsigned}}
Main version
— The preceding unsigned comment was added by [[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] • [[Special:Contributions/{{{1}}}|contribs]])
Sandbox version


Only second anonymous parameter (exposes raw wikicode)
Wiki code
{{subst:Unsigned||2024-05-14}}
Main version
— The preceding unsigned comment was added by [[User:|]] ([[User talk:|talk]] • contribs) 2024-05-14
Sandbox version


Three anonymous parameters (no error, but not supported)
Wiki code
{{subst:Unsigned|User|2024-05-14|radical!}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) 2024-05-14
Sandbox version


See also

Note
The above documentation is transcluded from Template:Unsigned/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)