Difference between revisions of "Wgraph:Example 2"

From FollowTheScore
Jump to: navigation, search
(New page: == sample graphs for mediawiki parser extension 'wgraph' == This script generates a demo graph. The graph reflects articles (about painters) and their interrelations...)
 
Line 10: Line 10:
 
   {{#dpl:
 
   {{#dpl:
 
   |category = Painter
 
   |category = Painter
   |include={wgraph node}.dpl
+
   |include={Wgraph node}.dpl
 
   |addcategories = true
 
   |addcategories = true
 
   |mode=userformat
 
   |mode=userformat
Line 18: Line 18:
 
   {{#dpl:
 
   {{#dpl:
 
   |uses = Template:is friend of
 
   |uses = Template:is friend of
   |include={is friend of}.dpl
+
   |include={Is friend of}.dpl
 
   |mode=userformat
 
   |mode=userformat
 
   |listseparators=,\nedge {,} ,\n
 
   |listseparators=,\nedge {,} ,\n
Line 27: Line 27:
 
   |namespace=Category
 
   |namespace=Category
 
   |uses = Template:wgraph nodetype
 
   |uses = Template:wgraph nodetype
   |include = {wgraph nodetype}.dpl
+
   |include = {Wgraph nodetype}.dpl
 
   |mode=userformat
 
   |mode=userformat
 
   |listseparators=\n,\nnodetype "%TITLE%" { ,} ,
 
   |listseparators=\n,\nnodetype "%TITLE%" { ,} ,
Line 35: Line 35:
 
   |namespace=Template
 
   |namespace=Template
 
   |uses = Template:wgraph edgetype
 
   |uses = Template:wgraph edgetype
   |include = {wgraph edgetype}.dpl
+
   |include = {Wgraph edgetype}.dpl
 
   |mode=userformat
 
   |mode=userformat
 
   |listseparators=\n,\nedgetype "%TITLE%" {,} ,
 
   |listseparators=\n,\nedgetype "%TITLE%" {,} ,

Revision as of 22:01, 21 July 2007

sample graphs for mediawiki parser extension 'wgraph'

This script generates a demo graph. The graph reflects articles (about painters) and their interrelationships. If you click the thumb image you will get the SVG file in which nodes contain clickable links to wiki articles.

    {{#wgraph: thumb=50 | svg |

     display_edge_labels = yes
     splines=yes
     
    

    node "Van Gogh" { label="Van Gogh" url="Van Gogh" type="Expressionism, Painter" shape:ellipse} node "Renoir" { label="Renoir" url="Renoir" type="Impressionism, Painter" shape:hexagon layer:"1a"} node "Cezanne" { label="Cezanne" url="Cezanne" type="Painter" /* */} node "Manet" { label="Manet" url="Manet" type="Painter" scaling:1.3 color:magenta layer:"2b"} node "Signac" { label="Signac" url="Signac" type="Impressionism, Painter" /* */}

    edge {from "Renoir" to "Van Gogh" label="somehow" type="Is friend of"} edge {from "Renoir" to "Cezanne" label="somehow" type="Is friend of"} edge {from "Manet" to "Renoir" label="this way" type="Is friend of"} edge {from "Manet" to "Van Gogh" label="that way" type="Is friend of"} edge {/* */}



    edgetype "Is friend of" {weight:90 arrowsize:12 backarrowsize:23 color:red thickness:5 arrowstyle:solid} }}