]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/contrib/mscgen.mdwn
d7eb23a6d6e98b21b59f38ca26c4b8cbf5d5cc2d
[git.ikiwiki.info.git] / doc / plugins / contrib / mscgen.mdwn
1 [[!template id=plugin name=mscgen author="[[TerryGolubiewski]]"]
2 [[!tag type/widget]]
4 This plugin provides the mscgen [[ikiwiki/directive]].
5 This directive allows embedding [mscgen](http://www.mcternan.me.uk/mscgen/)
6 message sequence chart graphs in a page.
8 Here's an mscgen source example.
10     \[[!msc src="""
11       arcgradient = 8;
13       a [label="Client"],b [label="Server"];
15       a=>b [label="data1"];
16       a-xb [label="data2"];
17       a=>b [label="data3"];
18       a<=b [label="ack1, nack2"];
19       a=>b [label="data2", arcskip="1"];
20       |||;
21       a<=b [label="ack3"];
22       |||;
23     """]]
25 Security implications: to be determined
27 [[!if test="enabled(mscgen)" then="""
28 And here's the resulting graph.
30 [[!msc src="""
31   arcgradient = 8;
33   a [label="Client"],b [label="Server"];
35   a=>b [label="data1"];
36   a-xb [label="data2"];
37   a=>b [label="data3"];
38   a<=b [label="ack1, nack2"];
39   a=>b [label="data2", arcskip="1"];
40   |||;
41   a<=b [label="ack3"];
42   |||;
43 """]]
45 """]]
47 This plugin uses the [[!cpan Digest::SHA]] perl module.
49 This plugin borrows heavily from the [[graphviz|plugins/graphviz]] plugin written by [[JoshTriplett]].
52 [[!mscgen src=
53 mscgen is