Jump to content

Extension talk:GraphVizAndMSCGen

Add topic
From mediawiki.org
Latest comment: 14 years ago by Goulu in topic Templates between <graphviz> tagsĀ ?

Error

[edit]

This 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)Reply

Templates between <graphviz> tagsĀ ?

[edit]

is 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)Reply

You probably have to use the parser function {{#tag:graphviz}} instead of the tag itself. --Danwe 21:58, 16 February 2010 (UTC)Reply

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}}];

Goulu 14:26, 18 February 2010 (UTC)Reply