RenderInheritanceGraph
a directed graph of TopicType inheritance

%REVINFO{ " $date - $hour:$min " rev=" IF{ "%NATMAXREV%!=%CURREV%" then="%CURREV%" }: Syntax error in '%NATMAXREV%!=%CURREV%' at '%NATMAXREV%!=%CURREV%' " topic="Applications.RenderInheritanceGraph" }% | Version 1 |

Documentation

This function requires GraphvizPlugin

Implementation

%STARTINCLUDE%<!-- -->
<noautolink>
<div class="overflow">
<literal>
%GRAPHVIZ{
   topic="%BASEWEB%.%BASETOPIC%" 
   format="png" 
   section="dot" 
   expand="on"
}%
</literal>
</div>
</noautolink>
<!-- -->%STOPINCLUDE%

%STARTSECTION{"dot"}%
digraph G {
   tooltip=" "
   graph [fontname = helvetica]; 
   node [tooltip=" "]
   node[shape="box", fontsize="10", fontname = helvetica];
   edge[arrowsize="0.5", fontsize="10", fontname = helvetica];
   ratio="auto";
   %DBQUERY{
      "(TopicType=~'\bTopicType\b' OR @Target.TopicType=~'\bTopicType\b') %IF{"'%BASEWEB%'!='Applications'" then="AND WikiApplication!='WikiWorkbench'"}%"
      web="%BASEWEB%"
      format="$topic[URL=\"%SCRIPTURL{"view"}%/$web/$topic\" label=\"$expand(topictitle)\"]; $percntFORMATLIST{\"$expand(@Target.Inheritance or Inheritance)\"
            format=\"$1 -> $topic;\"
            separator=\"$n\"
            exclude=\"$percntFORMATLIST{
                        \"$percntDBQUERY{topics=\"$expand(@Target.Inheritance or Inheritance), none\"
                              format=\"$dollarexpand(@Target.Inheritance or Inheritance)\"
                              separator=\", \"
                          }$percnt\"
                        separator=\"|\"
                        unique=\"on\"
                        header=\"\b(\"
                        footer=\")\b\"
                      }$percnt\"
         }$percnt"
      separator="$n"
   }%
}
%ENDSECTION{"dot"}%

Test

Calls to 'RenderInheritanceGraph'

Copyright

© 2006-2019 Michael Daum http://michaeldaumconsulting.com

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.
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 Foswiki? Send feedback