Difference between revisions of "Wgraph:Sample Genealogy 8"
Line 11: | Line 11: | ||
| include={Wgraph:Person}.wgl | | include={Wgraph:Person}.wgl | ||
}} | }} | ||
− | {{#if:{{{ | + | {{#if:{{{region|}}}| |
region { | region { | ||
− | sources '{{{ | + | sources '{{{region}}}' |
use_edgetypes 'mother,father' | use_edgetypes 'mother,father' | ||
state exclusive | state exclusive | ||
Line 23: | Line 23: | ||
You can select one or more nodes (e.g. 'A' or 'B;C'). You will see the exclusive part of the graph which starts at the selected edge(s) and follows edges of type 'mother' or 'father'. The ''Call'' extension and a slightly modified '''Inputbox'' extension help us to pass the parameters we selectto the article itself. | You can select one or more nodes (e.g. 'A' or 'B;C'). You will see the exclusive part of the graph which starts at the selected edge(s) and follows edges of type 'mother' or 'father'. The ''Call'' extension and a slightly modified '''Inputbox'' extension help us to pass the parameters we selectto the article itself. | ||
− | {{# | + | {{#form: name=demo | action=/dpldemo/index.php?title=Special:Call/Sample_Genealogy_8| |
− | + | {{#input: name= region | value = {{{region}}} }} | |
− | + | {{#input: type = submit | value = extract subgraph }} | |
− | |||
− | |||
}} | }} | ||
Revision as of 08:10, 28 July 2007
Genealogy Demo -- Dynamic Graph , starting at
{{#wgraph: svg | thumb=60 |
nodetype male { shape box color #ddddff bordercolor #9999ff width 140 textwidth 20 } nodetype female { shape box color #ffdddd bordercolor #ff9999 width 140 textwidth 20 }
edgetype father { color #7777ff backarrowsize 10 backarrowstyle solid arrowsize 0 } edgetype mother { color #ff7777 backarrowsize 10 backarrowstyle solid arrowsize 0 } edgetype marriage { kind rightnear arrowstyle line backarrowstyle line backarrowsize 10 color #ff77ff }
nodetype info { color #f0f0f0 borderstyle dashed bordercolor #e0e0e0 } edgetype info { kind near arrowstyle none linestyle dotted color lightgray }
nodetype 'undefined node' { bordercolor red // label '%%?' }
orientation bottom_to_top splines yes
node " A " {
label " A " "\n*" "24.12.1950"
}
edge from " A " to "C" {type mother} edge from " A " to "B" {type father}
edge from " A " to "X" {type marriage label "1.1.1970
in Las Vegas" }
node " B " {
}
edge from " B " to "E" {type mother} edge from " B " to "D" {type father}
node " C " {
}
edge from " C " to "G" {type mother} edge from " C " to "F" {type father} edge from " C " to " C " "_info" { type info }
node " C " "_info" { type info label "some explanation to C" }
node " A2 " {
}
edge from " A2 " to "C2" {type mother} edge from " A2 " to "B" {type father}
node " A3 " {
}
edge from " A3 " to "C2" {type mother} edge from " A3 " to "B" {type father}
node " D " {
}
edge from " D " to "I" {type mother} edge from " D " to "B" {type father}
node " I " {
}
edge from " I " to "K" {type mother} edge from " I " to "D" {type father}
node " L " {
}
edge from " L " to "K" {type mother}
node " X " {
}
edge from " X " to "Y" {type mother}
orientation right_to_left
}}
You can select one or more nodes (e.g. 'A' or 'B;C'). You will see the exclusive part of the graph which starts at the selected edge(s) and follows edges of type 'mother' or 'father'. The Call extension and a slightly modified 'Inputbox extension help us to pass the parameters we selectto the article itself.
{{#form: name=demo | action=/dpldemo/index.php?title=Special:Call/Sample_Genealogy_8| {{#input: name= region | value = {{{region}}} }} {{#input: type = submit | value = extract subgraph }} }}
back to Wgraph:Sample Genealogy 7 ..