Difference between revisions of "Wgraph:Commandline arguments"
(New page: == general syntax == <pre><nowiki> {{ #wgraph: opt1 | opt2 | .. | optN | <wgl script> }} </nowiki></pre> ''wgraph'' must be called as a parser function. The last argument is the wgl scri...) |
|||
Line 45: | Line 45: | ||
== wgl == | == wgl == | ||
shows the wgl code | shows the wgl code | ||
+ | |||
+ | [[Category:Wgraph]] |
Revision as of 15:20, 21 July 2007
general syntax
{{ #wgraph: opt1 | opt2 | .. | optN | <wgl script> }}
wgraph must be called as a parser function. The last argument is the wgl script. The preceding arguments are options which define attributes of the graph.
Options
name
name = <filename>
default for <filename> is the PAGENAME; as usual spaces are converted to underscores. Only letters, digits, dash and underscore are allowed. If your page title is not a valid filename you will get an error message; in that case you must specify thet name explicitly.
It is your responsibility to avoid a name which has been used in another wiki page as a wgraph filename. If you choose the same name you might overwrite the image files mutually.
If you have more than one graph within an article, you MUST define different names, otherwise wgraph will take the same filename and overwrite the first graph with the second.
Note that you can use the 'label' property of the graph to define a label (title) for the graph.
size
size = <number>
thumb
thumb
creates a thumb image; thumb=<number> specifies the resolution of the thumb image
png
creates png output
svg
creates svg output
gdl
shows the GDL code
wgl
shows the wgl code