%TMPL:INCLUDE{"Applications.WikiTopicView"}%
%TMPL:DEF{"beforetext"}%%IF{
"$'DISPLAYTOPICTITLE'!='off'"
then="$percntTMPL:P{\"beforetext::title\"}$percnt"
}%<!-- -->
%DBCALL{"%FORMFIELD{"Target" topic="%BASEWEB%.%BASETOPIC%"}%" section="%FORMFIELD{"Section"}%"}%
%TMPL:END%
%TMPL:DEF{"beforetext::title"}%<div class="foswikiTopicInfo">
%DBCALL{"Applications.RenderWikiTopicView"
TITLE_EXTRA="%TMPL:P{"titleextra"}%"
TITLE_PREFIX="%IF{"'%FORMFIELD{"Target"}%'/TopicType=~'\bTopicType\b'"
then="$percntTMPL:P{\"titleicon\"}$percnt"
}%"
}%
</div>%TMPL:END%
%TMPL:DEF{"titleextra"}%%IF{"context isadmin"
then="<span class='foswikiNormal foswikiGrayText'>([[%FORMFIELD{"Target"}%][%MAKETEXT{"reference"}%]])</span>"
}%%TMPL:END%
%TMPL:DEF{"titleicon"}%%JQICON{
"%FORMFIELD{
"Icon"
topic="%FORMFIELD{"Target"}%"
}%"
}%%TMPL:END%