Template:Unsigned2/sandbox

From Gentoo Wiki
Jump to:navigation Jump to:search


Correct

Date and username (two anonymous parameters)
Wiki code
{{subst:Unsigned2|26 January 2017|User}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) 26 January 2017
Sandbox version


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


↑ This is OK, but it's better to provide a date. If you really want the username only, it's easier to use {{Unsigned}}.


When the username contains an equal sign (explicitly naming 2nd parameter)
Wiki code
{{subst:Unsigned2|26 January 2017|2=User=name}}
Main version
— The preceding unsigned comment was added by User=name (talkcontribs) 26 January 2017
Sandbox version


↑ Using 1= on the date is optional.


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


↑ Note: There may not be any good reason to use anything but the date in the first position.


Dating a signed comment (using unsigned=undated)
Wiki code
{{subst:Unsigned2|26 January 2017|User|unsigned=undated}}
Main version
— The preceding undated comment was added by User (talkcontribs) 26 January 2017
Sandbox version


Hiding the word "unsigned" (empty value for unsigned)
Wiki code
{{subst:Unsigned2|26 January 2017|User|unsigned=}}
Main version
— The preceding comment was added by User (talkcontribs) 26 January 2017
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:Unsigned2|26 January 2017|User|unsigned=unsigned}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) 26 January 2017
Sandbox version


Incorrect

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


Only first anonymous parameter (exposes raw wikicode)
Wiki code
{{subst:Unsigned2|26 January 2017}}
Main version
— The preceding unsigned comment was added by [[User:{{{2}}}|{{{2}}}]] ([[User talk:{{{2}}}|talk]] • [[Special:Contributions/{{{2}}}|contribs]]) 26 January 2017
Sandbox version


↑ Unlike {{Unsigned}}, this template requires two parameters.


Three anonymous parameters (not supported)
Wiki code
{{subst:Unsigned2|26 January 2017|User|radical!}}
Main version
— The preceding unsigned comment was added by User (talkcontribs) 26 January 2017
Sandbox version
Note
This is the template sandbox page for Template:Unsigned2 (diff).
See also the companion subpage for test cases.