Extension talk:GraphViz/Archive3

Debugging
'''For debugging, see Manual:How_to_debug. I use the following in my LocalSettings.php: $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log"; $wgDebugToolbar = true; $wgShowExceptionDetails = true; $wgDevelopmentWarnings = true;

'''The GraphViz extension uses wfDebug statements to produce debug log entries which include the function name. You can search for names like "GraphViz::", "GraphRenderParms::" and "UploadLocalFile::".

'''--Thanks, Keith Welter

Arranging diagrams
Extension:ImageMap now handles image rendering on behalf of the GraphViz extension. It does standard MediaWiki image rendering. If you scroll down in the image format table, you'll see that format=frame does yield the image on the right of the screen. Also see, Help:Images I think all the answers to your formatting questions should be on the image page. If not, the talk page for that is the right place to post follow-up questions. --Thanks, Keith Welter'''

Updating diagrams
Since version 1.3.1 the GraphViz extension also updates images with MediaWiki versions beginning with 1.19. (Here, updating means that the diagram changes if the DOT code in the page is changed.)

I (Martin) could reproduce this while testing, using Mediawiki 1.19.17, GraphViz extension v1.3.1 plus several other extensions. I have tried two different types of diagram:
 * 1) Diagrams with hard-coded DOT code
 * 2) Diagrams with DOT code produced by Templates

For the first type the update worked at the first time. But the presentation was not very fine. My impression is that the new diagram is fitted into the dimensions of the old diagram, either diminishing or enlarging the diagram. This changes when additionally doing a "Refresh".

For the second type I have to use some workarounds. If I change the page which results in the templates generating new DOT code and simply click "Save page" nothing changes. Then I can go to the images own page by clicking the Information Button, delete the image and afterwards update the containing page. Doing a "Refresh" and/or clicking the "load again" button of the browser showed the new diagram.

It is simpler to use the "Show preview" on the editing page. Then the preview does not show an image but the message "Graph image source changed. Reload page to display updated graph image." Now one can do a "Save page" and afterwards the page is displayed with the changed diagram. I have tried this several times. This worked more often than not, but sometimes it didn't work. Then I have deleted the image as described above.

This is not perfect but it works. As these changes won't happen very often in my wiki and I have a few workarounds, I would leave this as it is. -- Martin

Thanks
Thanks again, Keith and team, to rework this extension and for doing the fix for backward compatibility. -- Martin

Concluding Remark
I have added one line in the links section https://www.mediawiki.org/wiki/Extension:GraphViz#Links which simply says that the Link syntax differs from the syntax used in the earlier versions of this extension.

I have also removed all the stuff which is not of importance anymore on this page.