WikiTopicViewTemplate
Generic topic view

02 May 2019 - 19:27 | Version 1 |

%{
}%
%TMPL:INCLUDE{"view"}%
%{
}%

%{
}%
%TMPL:DEF{"formdefinition"}%%QUERY{"form.name"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"beforetext"}%%IF{
   "$'DISPLAYTOPICTITLE'!='off'"
   then="$percntTMPL:P{\"beforetext::title\"}$percnt"
}%%IF{
   "$'ENABLEQUALITYCHECK'='on' and '%WEB%.%TOPIC%' allows 'change'" 
   then="$percntTMPL:P{\"qualitycheck\"}$percnt"
}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"beforetext::title"}%<div class="foswikiTopicInfo">
%DBCALL{"Applications.RenderWikiTopicView" 
   TITLE_EXTRA="%TMPL:P{"titleextra"}%"
   TITLE_PREFIX="%TMPL:P{"titleicon"}%"
}%
</div>%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"form"}%%TMPL:END% 
%TMPL:DEF{"topicinfo"}%%TMPL:END%
%TMPL:DEF{"revinfo"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck"}%%TMPL:P{"qualitycheck::multipleh1"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"qualitycheck::multipleh1"}%%IF{
  "'%BASEWEB%.%BASETOPIC%'/text=~'\-\-\-\+[^\+]'"  
  then="<p class='foswikiWarningMessage'>%TRANSLATE{"There are multiple h1 titles on this page. Please use only one h1 for the title and h2-h6 within the text."}%</p>
" 
}%%TMPL:END%
%{
}%

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding AustLII Communities? Send feedback
This website is using cookies. More info. That's Fine