Difference between revisions of "Wgraph:Commandline arguments"

From FollowTheScore
Jump to: navigation, search
(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...)
 
 
(One intermediate revision by the same user not shown)
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 ==
Line 45: Line 44:
 
== wgl ==
 
== wgl ==
 
shows the wgl code
 
shows the wgl code
 +
 +
[[Category:Wgraph]]

Latest revision as of 13: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