Extension talk:GraphVizAndMSCGen
Error
editThis doesn't work for me. I use Windows XP, MW 1.15 and I have GraphViz installed, also the correct path in the execPath variable but this error shows up every time I try to generate a diagram:
Unexpected non-MediaWiki exception encountered, of type "com_exception"
exception "com_exception" with message the system can't find the given file
. there must be something wrong with $ret = $WshShell->Exec($cmdline);
--Danwe 01:23, 15 October 2009 (UTC)
Templates between <graphviz> tags ?
editis there any way to use {{templates}} to generate the graph content ? That would be great !
I know a bit about PHP, but have no idea about MediaWiki extensions, so if someone could just give me one keyword, I'd be able to implement this myself. Thanks !
--Goulu 08:06, 16 February 2010 (UTC)
- You probably have to use the parser function
{{#tag:graphviz}}
instead of the tag itself. --Danwe 21:58, 16 February 2010 (UTC)
Yesss! it works perfectly, thank you very much !
I wrote some templates based on the code below to automatically generate nodes with colored links to pages, maybe it's useful to someone else:
{{{1}}} [{{#ifexist:{{{1}}}|URL="{{localurl:{{{1}}} }}" fontcolor=blue|URL="{{localurl:{{{1}}}|edit}}" fontcolor=red}}];