Difference between revisions of "Template:ListEdges"
From AtlasWiki
(avoid printing inherited edge table headers unless there are some inherited edges, add "inherited in/out edges" headers) |
(Now lists inherited edges if a "parents" property is given a comma-separated list of all parents (intermediate work done at ListEdgesWIP)) |
||
Line 27: | Line 27: | ||
}}<noinclude><!-- | }}<noinclude><!-- | ||
− | If we were given inheritance information, discover and list the inherited edges as well | + | If we were given inheritance information, discover and list the inherited edges as well. |
− | --></noinclude>{{#if:{{{parents|}}}|{{#arraydefine:parents|{{{parents}}}|,|}} | + | --></noinclude>{{#if:{{{parents|}}}|{{#arraydefine:parents|{{{parents}}}|,|}} |
{{{!}} class="xcsgtable" | {{{!}} class="xcsgtable" | ||
− | |||
− | |||
{{!}}- | {{!}}- | ||
! Inherited From !! In Edge !! Predecessor (Comes From) !! Multiplicity !! Description | ! Inherited From !! In Edge !! Predecessor (Comes From) !! Multiplicity !! Description | ||
{{#arrayprint:parents||@@@@|  | {{#arrayprint:parents||@@@@|  | ||
{{InheritEdgesTo|@@@@}}}} | {{InheritEdgesTo|@@@@}}}} | ||
− | {{! | + | {{!}}} }}<noinclude><!-- |
Next we get the out edges: | Next we get the out edges: | ||
Line 68: | Line 66: | ||
And the inherited out edges table: | And the inherited out edges table: | ||
− | --></noinclude>{{#if:{{{parents| | + | --></noinclude>{{#if:{{{parents|}}}| |
{{{!}} class="xcsgtable" | {{{!}} class="xcsgtable" | ||
− | |||
− | |||
{{!}}- | {{!}}- | ||
! Inherited From !! Out Edge !! Successor (Points To) !! Multiplicity !! Description | ! Inherited From !! Out Edge !! Successor (Points To) !! Multiplicity !! Description | ||
{{#arrayprint:parents||@@@@|  | {{#arrayprint:parents||@@@@|  | ||
{{InheritEdgesFrom|@@@@}}}} | {{InheritEdgesFrom|@@@@}}}} | ||
− | {{! | + | {{!}}} }} |
Revision as of 19:03, 21 April 2014
For use on node kind pages, automatically lists edges declared on the current page.
If the parameter "parents" is given a comma-separated list of the parents of the node, inherited edges will also be listed.