Difference between revisions of "Wgraph:Ahnen"
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
</nowiki></pre> | </nowiki></pre> | ||
− | {{#wgraph: svg | thumb= | + | {{#wgraph: svg | thumb=60 | wgl | gdl | |
smanhattan_edges = yes | smanhattan_edges = yes | ||
equal_y_dist = yes | equal_y_dist = yes | ||
portsharing = yes | portsharing = yes | ||
− | {{Nachkommen |Urgroßmutter | + | {{Nachkommen | Urgroßmutter | Großonkel | Großtante |*Großmutter }} |
− | {{Nachkommen |Großmutter | + | {{Nachkommen | Großmutter | *Mutter | Tante }} |
− | {{Nachkommen |Mutter | + | {{Nachkommen | Mutter | Schwester | Bruder |*Jana }} |
− | {{Nachkommen | | + | {{Nachkommen | Jana | *Tochter | Sohn }} |
− | + | {{Nachkommen | Bruder | Nichte | Neffe }} | |
− | + | {{Nachkommen | Tochter | Enkel | *Enkelin }} | |
− | {{Nachkommen |Bruder | + | {{Nachkommen | Enkelin | *Urenkelin | Urenkel }} |
− | {{Nachkommen |Tochter | + | {{Nachkommen | Tante | Kusine | Vetter }} |
− | {{Nachkommen |Enkelin | + | {{Nachkommen | Schwiegermutter | Ehemann | Schwager }} |
− | {{Paar |Urgroßmutter | + | {{Paar | Urgroßmutter | Urgroßvater }} |
− | {{Paar |Großmutter | + | {{Paar | Großmutter | Großvater }} |
− | {{Paar |Schwiegermutter | + | {{Paar | Schwiegermutter | Schwiegervater }} |
− | {{Paar |Mutter | + | {{Paar | Mutter | Vater }} |
− | + | {{Paar | Jana | Ehemann }} | |
− | {{Paar |Jana | + | {{Paar | Tochter | Schwiegersohn }} |
− | {{Paar |Tochter | + | {{Paar | Sohn | Schwiegertochter }} |
− | {{Paar |Sohn | + | {{Paar | Enkelin | Ehemann der Enkelin }} |
− | {{Paar |Enkelin | + | {{Paar | Tante | Onkel }} |
− | node | + | node Schwiegermutter { vertical_order 2 } |
− | node | + | node Jana { type Fokus } |
− | nodetype Fokus | + | nodetype Fokus { bordercolor blue font helvB10 borderwidth 3} |
− | nodetype * | + | nodetype * { bordercolor white font helvR10 } |
− | edgetype Fokus | + | edgetype Fokus { thickness 4 } |
− | edgetype * | + | edgetype * { arrowstyle none color blue } |
}} | }} |
Latest revision as of 16:37, 27 September 2007
This is one of the examples on the aiSee website.
We show how the genealogy graph can be produced using two templates which raise the semantic level of expression compared to the native description in gdl. The wiki source structure is like this:
... {{Nachkommen |Mutter |Schwester |Bruder |*Jana }} {{Paar |Jana |Ehemann }} {{Nachkommen |Jana |*Tochter |Sohn }} {{Paar |Tochter |Schwiegersohn }} ...
{{#wgraph: svg | thumb=60 | wgl | gdl |
smanhattan_edges = yes equal_y_dist = yes portsharing = yes
{{#vardefine:v|{{#replace: Urgroßmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Großonkel |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Großtante |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:*Großmutter |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Großmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: *Mutter |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Tante |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Mutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Schwester |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Bruder |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:*Jana |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Jana |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: *Tochter |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Sohn |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Bruder |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Nichte |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Neffe |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Tochter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Enkel |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: *Enkelin |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Enkelin |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: *Urenkelin |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Urenkel |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Tante |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Kusine |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Vetter |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:v|{{#replace: Schwiegermutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:n|{{#replace: Ehemann |/^\s*(.*)\s*$/|\1}}}}edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:n|{{#replace: Schwager |/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {} {{#vardefine:n|{{#replace:|/^\s*(.*)\s*$/|\1}}}} edge "{{#var:v}}" to "{{#var:n}}" {}
{{#vardefine:w|{{#replace: Urgroßmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Urgroßvater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Großmutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Großvater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Schwiegermutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Schwiegervater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Mutter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Vater |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Jana |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Ehemann |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Tochter |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Schwiegersohn |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Sohn |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Schwiegertochter |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Enkelin |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Ehemann der Enkelin |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {} {{#vardefine:w|{{#replace: Tante |/^\s*(.*)\s*$/|\1}}}}{{#vardefine:m|{{#replace: Onkel |/^\s*(.*)\s*$/|\1}}}}nearedge "{{#var:w}}" to "{{#var:m}}" {}
node Schwiegermutter { vertical_order 2 } node Jana { type Fokus }
nodetype Fokus { bordercolor blue font helvB10 borderwidth 3} nodetype * { bordercolor white font helvR10 }
edgetype Fokus { thickness 4 } edgetype * { arrowstyle none color blue }
}}