Difference between revisions of "Template:ListEdges"
From AtlasWiki
(Now lists inherited edges if a "parents" property is given a comma-separated list of all parents (intermediate work done at ListEdgesWIP)) |
(Undo accidental reversion) |
||
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...if there are any inherited edges. |
− | --></noinclude>{{#if:{{{parents|}}}|{{#arraydefine:parents|{{{parents}}}|,|}} | + | --></noinclude>{{#if:{{{parents|}}}|{{#arraydefine:parents|{{{parents}}}|,|}}{{#if:{{#arrayprint:parents||@@@@|{{InheritEdgesTo|@@@@}}}}| |
{{{!}} class="xcsgtable" | {{{!}} class="xcsgtable" | ||
+ | {{!}}- | ||
+ | ! colspan="5" {{!}} Inherited In Edges | ||
{{!}}- | {{!}}- | ||
! 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><!-- | + | {{!}}} }} }}<noinclude><!-- |
Next we get the out edges: | Next we get the out edges: | ||
Line 66: | Line 68: | ||
And the inherited out edges table: | And the inherited out edges table: | ||
− | --></noinclude>{{#if:{{{parents|}}}| | + | --></noinclude>{{#if:{{{parents|}}}|{{#if:{{#arrayprint:parents||@@@@|{{InheritEdgesFrom|@@@@}}}}| |
{{{!}} class="xcsgtable" | {{{!}} class="xcsgtable" | ||
+ | {{!}}- | ||
+ | ! colspan="5" {{!}} Inherited Out Edges | ||
{{!}}- | {{!}}- | ||
! 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:04, 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.