]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/ikiwiki/directive/graph/discussion.mdwn
comments: Write pending moderation comments to the transient underlay to avoid confli...
[git.ikiwiki.info.git] / doc / ikiwiki / directive / graph / discussion.mdwn
1 How to align this?
2 ==================
4 I have found this patch to be the only way I can float graphs to the right:
6 [[!format diff """
7 --- Plugin/graphviz.pm.orig     2012-04-25 10:26:59.531525247 -0400
8 +++ Plugin/graphviz.pm  2012-04-25 10:26:01.282922144 -0400
9 @@ -87,8 +87,10 @@
10                 error gettext("failed to run graphviz") if ($sigpipe || $?);
11         }
13 +       my $class = '';
14 +       $class = 'class="' . $params{class} if $params{class};
15         return "<img src=\"".urlto($dest, $params{destpage}).
16 -               "\" usemap=\"#graph$sha\" />\n".
17 +               "\" usemap=\"#graph$sha\" $class />\n".
18                 $map;
19  }
20 """]]
22 Then I can use `[[!graph class="align-right" ...]]`.. --[[anarcat]]
24 > You can already use `<div class="align-right">[[!graph ...]]</div>`,
25 > doesn't that have the same practical effect? --[[smcv]]
27 > > It does! I didn't think of that, thanks! I am not used to plain HTML in wikis, and the [[plugins/contrib/osm]] plugin has "right" and "left" directives...  --[[anarcat]]