__section__
default
__description__
Create a link to a comment

* date = date of comment
* commentsort = user's comment sorting pref
* mode = user's mode pref
* comment = make link to only one comment, not whole story (i.e., include cid= in link)

Also included are all the individual elements of the comment and its poster: sid, cid, pid, date, subject, uid, points, lastmod, reason, nickname, fakeemail, homepage, sig

We only display links to user pages on nicknames to admins because it
would be distracting for other users.

__title__

__page__
misc
__lang__
en_US
__name__
linkComment
__template__
<a href="[% gSkin.rootdir %]/comments.pl?sid=[% sid;
IF op.defined                                 %]&amp;op=[% op; END;
IF threshold.defined                          %]&amp;threshold=[% threshold; END;
IF commentsort.defined                        %]&amp;commentsort=[% commentsort; END;
IF mode.defined                               %]&amp;mode=[% mode; END;
IF (user.state.no_d2 || no_d2)                %]&amp;no_d2=1[% END;
IF startat                                    %]&amp;startat=[% startat; END;
IF (user.state.tid && constants.tids_in_urls) %]&amp;tid=[% user.state.tid; END;
IF comment
	%]&amp;cid=[% cid;
ELSE;
	IF pid %]&amp;pid=[% pid; END;
	IF cid %]#[% cid; END;
END %]"[% IF onclick %] onclick="[% onclick %]"[% END 
%]>[% subject %]</a>

[% IF !subject_only %]
	[% IF nickname %]
		[% IF adminflag %]
			by <a href="[% gSkin.rootdir %]/users.pl?op=userinfo&amp;fieldname=nickname&amp;userfield=[% nickname %]">[% nickname %]</a>
		[% ELSE %]
			by [% nickname %]
		[% END %]
	[% END %]

	[% IF !user.noscores && points.defined %]
		(Score:[% points %])
	[% END %]

	[% IF date %]
		[% Slash.timeCalc(time) %]
	[% END %]
[% END %]

__seclev__
10000
__version__
$Id: linkComment;misc;default,v 1.17 2007/10/23 23:20:19 pudge Exp $
