Documentation
Parameters
- THETOPIC, defaults to BASEWEB.BASETOPIC
- TITLE_EXTRA
- SHOWREVINFO: boolean flag to switch on/off revinfo
Implementation
%STARTINCLUDE%<noautolink>%DBCALL{
"Applications.RenderWikiTopicView"
section="title"
OBJECT="%THETOPIC{default="%BASEWEB%.%BASETOPIC%"}%"
}%%IF{"'%SHOWREVINFO{default="on"}%'='on'"
then="$percntDBCALL{\"%WEB%.%TOPIC%\" section=\"revinfo\" THETOPIC=\"%THETOPIC{default="%BASEWEB%.%BASETOPIC%"}%\"}$percnt"
}%</noautolink>%DEPRECATED%%STOPINCLUDE%
Revision info
%STARTSECTION{"revinfo"}%<div class="blogInfo">
%DBQUERY{
topic="%THETOPIC%"
format="%JQICON{"fa-calendar"}% <a href='%SCRIPTURLPATH{"diff"}%/$web/$topic?rev=%CURREV{topic="%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%"}%'>
<span itemprop='datePublished' content='$formatTime(publishdate, '$year-$mo-$day')'>$formatTime(publishdate)</span></a>
<span class='foswikiRevisionSep'>|</span> %JQICON{"fa-user"}% $percntFORMATLIST{
\"$expand(Author or createauthor)\"
pattern=\"^(?:%USERSWEB%\.)?(.*)$\"
split=\"\s*,\s*\"
format=\"$dollarpercntIF{\\"istopic '%USERSWEB%.$1'\\" then=\\"<a href='$dollarpercntSCRIPTURLPATH{\\"view\\" topic=\\"%USERSWEB%.$1\\"}$dollarpercnt' rel='author' itemprop='author' class='foswikiUserField' data-wiki-name='$1'><span itemprop='name'>$dollarpercntGETTOPICTITLE{%USERSWEB%.$1}$dollarpercnt</span></a>\\" else=\\"<nop>$1\\"}$dollarpercnt\"
separator=\", \"
}$percnt"
}%
%IF{"context LikePluginEnabled"
then="$percntLIKE{
topic=\"%OBJECT{default="%BASEWEB%.%BASETOPIC%"}%\"
format=\"<span class='foswikiRevisionSep'>|</span> <div class='jqLike jqLikeSimple %editable%' %params% style='margin:0'>%like%</div>\"
likelabel=\"\"
likeicon=\"fa-thumbs-o-up\"
hidenull=\"on\"
}$percnt"
}%<!-- -->
%DBQUERY{"comment"
topic="%THETOPIC%"
format="<span class='foswikiRevisionSep'>|</span> %JQICON{"fa-comments-o"}% $expand(comment[])"
}%<!-- -->
%RENDERFORDISPLAY{
topic="%THETOPIC%"
fields="Category, Tag"
editable="on"
hideempty="on"
header="<span class='inlineEditor' data-topic='%THETOPIC%'>"
Category_format="<span class='foswikiRevisionSep'>|</span> <span class='inlineEditRow'>$percntJQICON{\"fa-folder\"}$percnt <span class='inlineEditValue' data-formfield='$name'>$value $editicon</span></span>"
Tag_format="<span class='foswikiRevisionSep'>|</span> <span class='inlineEditRow'>$percntJQICON{\"fa-tag\"}$percnt <span class='inlineEditValue' data-formfield='$name'>$value $editicon</span></span>"
separator=" "
footer="</span>"
}%<!-- -->
</div>%DEPRECATED%%ENDSECTION{"revinfo"}%
Test
04 February 2022
| Henry Miller, Stefan Zweig
| 5
| News | bar, foo, release, tag, test, welcome
Copyright
© 2005-2025 Michael Daum
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read the
LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.