Template:Unsigned2/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Unsigned2 and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Unsigned2 and its sandbox version. You may have to to update the examples.
Correct
Date and username (two anonymous parameters)
Username only (empty first parameter)
↑ 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)
↑ Using
1=
on the date is optional.
Showing something other than the date (two anonymous parameters)
↑ 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
)
Hiding the word "unsigned" (empty value for
unsigned
)
↑ This is useful when a comment has been "manually" signed using plain text.
Suppressing the link on the word "unsigned" (using
unsigned=unsigned
)
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.