Difference between revisions of "Template:InheritEdgesFrom"
From AtlasWiki
(adding to Category:XCSG Templates) |
(line breaks, edges of the same type to different node kinds) |
||
Line 16: | Line 16: | ||
| headers=hide | | headers=hide | ||
| propsep=$SEP$ | | propsep=$SEP$ | ||
− | | name= | + | | name=outEdges |
}}<noinclude> | }}<noinclude> | ||
</noinclude>{{#switch:{{#arraysize:inEdges}}| 0 = | #default = | </noinclude>{{#switch:{{#arraysize:inEdges}}| 0 = | #default = | ||
{{!}}- | {{!}}- | ||
− | {{!}}{{#arrayprint: | + | {{!}}{{#arrayprint:outEdges|  |
− | {{!}}|var|{{{1}}}{{!}}{{!}}[[{{# | + | {{!}}- |
+ | {{!}}|var|{{#arraydefine:edgeRelationships|var|<PROP>|}}{{#arraydefine:relationships|{{#arrayindex:edgeRelationships|1}}|<MANY>|}}{{#arrayprint:relationships|  | ||
+ | {{!}}- | ||
+ | {{!}}|@@@@|[[{{{1}}}]] {{!}}{{!}} [[{{#arrayindex:edgeRelationships|0}}]] {{!}}{{!}} [[{{#explode:@@@@|$SEP$|0}}]] {{!}}{{!}} {{#explode:@@@@|$SEP$|1}} {{!}}{{!}} {{ReconstructLinks|{{#explode:@@@@|$SEP$|2}}}} }} }} | ||
}}<noinclude>[[Category:XCSG Templates]]</noinclude> | }}<noinclude>[[Category:XCSG Templates]]</noinclude> |
Revision as of 17:44, 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}} ... |}
|- |