Difference between revisions of "Template:InheritEdgesFrom"

From AtlasWiki
Jump to: navigation, search
(line breaks, edges of the same type to different node kinds)
(should now add new lines as needed, support edges of the same kind to different nodes)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
| format=array
 
| format=array
 
| headers=hide
 
| headers=hide
| propsep=$SEP$
+
| name=inEdges
| name=outEdges
+
 
}}<noinclude>
 
}}<noinclude>
  
 
</noinclude>{{#switch:{{#arraysize:inEdges}}| 0 = | #default =  
 
</noinclude>{{#switch:{{#arraysize:inEdges}}| 0 = | #default =  
 
{{!}}-
 
{{!}}-
{{!}}{{#arrayprint:outEdges|&#32;
+
{{!}}{{#arrayprint:inEdges|&#32;
 
{{!}}-
 
{{!}}-
 
{{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|&#32;
 
{{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|&#32;

Latest revision as of 18:28, 22 April 2014

Creates table rows listing edges that go to the specified parent.

The table is expected to be called with the following format:

{| class="xcsgtable"
|-
! Parent !! Out Edge !! Successor (Points To) !! Multiplicity !! Description
{{InheritEdgesFrom|parent}}
{{InheritEdgesFrom|other parent}}
...
|}