Difference between revisions of "Template:ListEdges"
From AtlasWiki
(Support for out edges of the same kind from different node kinds) |
(adding newlines) |
||
Line 27: | Line 27: | ||
! In Edge !! Predecessor (Comes From) !! Multiplicity !! Description | ! In Edge !! Predecessor (Comes From) !! Multiplicity !! Description | ||
{{!}}- | {{!}}- | ||
− | {{!}}{{#arrayprint:inEdges|{{!}}- | + | {{!}}{{#arrayprint:inEdges|  |
+ | {{!}}- | ||
{{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|  | {{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|  | ||
{{!}}- | {{!}}- | ||
Line 67: | Line 68: | ||
! Out Edge !! Successor (Points To) !! Multiplicity !! Description | ! Out Edge !! Successor (Points To) !! Multiplicity !! Description | ||
{{!}}- | {{!}}- | ||
− | {{!}}{{#arrayprint:outEdges|{{!}}- | + | {{!}}{{#arrayprint:outEdges|  |
+ | {{!}}- | ||
{{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|  | {{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|  | ||
{{!}}- | {{!}}- |
Revision as of 16:46, 22 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.