<?xml version="1.0" encoding="utf-8"?>
<s1 title="HelpOnDrawings"><p></p>
<s2 id="Working with Drawings" title="Working with Drawings">
<p><p>Contents</p>
<ol><li>
<link anchor="W">Working with Drawings</link><ol><li>
<link anchor="B">Basics</link></li>
<li>
<link anchor="U">Usage</link></li>
<li>
<link anchor="E">Examples</link><ol><li>
<link anchor="M">Markup for a TWikiDraw drawing</link></li>
<li>
<link anchor="R">Rendering of a TWikiDraw drawing</link></li>
<li>
<link anchor="M-1">Markup for a AnyWikiDraw drawing</link></li>
<li>
<link anchor="R-1">Rendering of a AnyWikiDraw drawing</link></li>
</ol>
</li>
<li>
<link anchor=".">.tdraw file format</link></li>
<li>
<link anchor=".-1">.adraw file format</link></li>
</ol>
</li>
</ol>
<p> </p>
<s3 id="Basics" title="Basics">
<p>Since MoinMoin 1.9 you can choose from two drawing tools: TWikiDraw and (new) AnyWikiDraw. </p>
<p>TWikiDraw is available in MoinMoin since quite a while and a bit outdated meanwhile. We still provide it for compatibility with existing drawings. </p>
<p><jump href="http://sourceforge.net/projects/anywikidraw/">AnyWikiDraw</jump> is a special version for wikis of JHotDraw7, a successor of TWikiDraw with a modern user interface and a few very cool features. </p>
<p></p>
</s3>
<s3 id="Usage" title="Usage">
<p>Use this syntax for including a drawing on your page: </p>
<p></p>
<source><![CDATA[{{drawing:<name of your drawing>[.tdraw|.adraw]}}]]></source><p>Use <strong>.tdraw</strong> for TWikiDraw drawings and <strong>.adraw</strong> for AnyWikiDraw drawings. If you don&apos;t add an extension it will default to TWikiDraw. </p>
<p>If a drawing does not exist, you will see the attachment symbol instead of a drawing. A click on it will lead you to a page where the drawing applet gets started, so you can create a new drawing and save it. </p>
<p>When moin renders the wiki page afterwards, you&apos;ll see a rendered PNG of your new drawing. </p>
<p>If you click on the PNG rendering of an existing drawing, moin will invoke the drawing applet so you can modify it. </p>
<p>(!) In case you see some message asking whether you want to load the applet, you should confirm that. </p>
<p>Please play around with the drawing tools on your own, you will explore a lot of cool features. </p>
<p>E.g. add images to your drawings, play around with grouping, transparency effects and rotate everything by slowly double clicking on it.  </p>
<p>Have fun! </p>
<p></p>
</s3>
<s3 id="Examples" title="Examples">
<p></p>
<s4 id="Markup for a TWikiDraw drawing" title="Markup for a TWikiDraw drawing">
<p></p>
<source><![CDATA[{{drawing:twikitest.tdraw}}]]></source><p></p>
</s4>
<s4 id="Rendering of a TWikiDraw drawing" title="Rendering of a TWikiDraw drawing">
<p><attachmentdrawing href="twikitest.tdraw">twikitest.tdraw</attachmentdrawing> </p>
<p></p>
</s4>
<s4 id="Markup for a AnyWikiDraw drawing" title="Markup for a AnyWikiDraw drawing">
<p></p>
<source><![CDATA[{{drawing:anywikitest.adraw}}]]></source><p></p>
</s4>
<s4 id="Rendering of a AnyWikiDraw drawing" title="Rendering of a AnyWikiDraw drawing">
<p><attachmentdrawing href="anywikitest.adraw">anywikitest.adraw</attachmentdrawing> </p>
<p></p>
</s4>
</s3>
<s3 id=".tdraw file format" title=".tdraw file format">
<p>MoinMoin &lt; 1.9 stored 3 files for each TWikiDraw drawing: </p>
<ul><li>drawingname.draw (drawing file for TWikiDraw) </li>
<li>drawingname.map (for clickable drawings) </li>
<li>drawingname.png (PNG rendering of the drawing) </li>
</ul>
<p>With MoinMoin 1.9 this was changed so that only 1 file is needed (please use <code>moin migration data</code> to convert existing data): </p>
<ul><li>drawingname.tdraw </li>
</ul>
<p>This .tdraw file is simply a tar archive that internally contains the 3 files (see above). The contained files are ever called <code>drawing.*</code> so they do not need to get renamed if the .tdraw file gets renamed. </p>
<p></p>
</s3>
<s3 id=".adraw file format" title=".adraw file format">
<p>MoinMoin 1.9 now also supports AnyWikiDraw drawings and saves them into a .adraw tar file, which contains: </p>
<ul><li><p>drawing.svg (SVG file for AnyWikiDraw) </p>
</li>
<li>drawing.png (PNG rendering of the SVG) </li>
</ul>
<p>The contained files are ever called <code>drawing.*</code> so they do not need to get renamed if the .adraw file gets renamed. </p>
</s3></s2></s1>