Template:Unsigned/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Unsigned and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Unsigned and its sandbox version. You may have to to update the examples.
Correct
Username and date (two anonymous parameters)
Username only (one anonymous parameter)
↑ 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=
)
↑ If
1=
is used, then the date must be specified using 2=
or omitted completely.
Showing something other than the date (two anonymous parameters)
↑ There might not be any good reason to use anything but the date in the second 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: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)