Difference between revisions of "Wgraph:Commandline arguments"

From FollowTheScore
Jump to: navigation, search
 
Line 15: Line 15:
  
 
default for <filename> is the PAGENAME; as usual spaces are converted to underscores.
 
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.
+
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 the 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.  
+
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 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.
 
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.
 
Note that you can use the 'label' property of the graph to define a label (title) for the graph.
 
  
 
== size ==
 
== size ==

Latest revision as of 12:31, 15 August 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 the 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 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