Difference between revisions of "Template:ListEdges"

From AtlasWiki
Jump to: navigation, search
(Switching to permitted and specified edges, instead of just one class of edge relationships)
(Moving the parent separator to reduce/avoid empty rows)
Line 47: Line 47:
 
| nodeTitle = <abbr title="The node that the edge comes from">Predecessor</abbr>
 
| nodeTitle = <abbr title="The node that the edge comes from">Predecessor</abbr>
 
| uninheritedEdges = {{#arrayprint:specifiedInEdges|<EDGE_SEP>}}
 
| uninheritedEdges = {{#arrayprint:specifiedInEdges|<EDGE_SEP>}}
| inheritedEdges = {{#arrayprint:parentsArray|<PARENT_SEP>|@@@@|{{#if:{{EdgesTo|@@@@|specified}}|@@@@<PARENT>{{EdgesTo|@@@@|specified}} }} }}
+
| inheritedEdges = {{#arrayprint:parentsArray||@@@@|{{#if:{{EdgesTo|@@@@|specified}}|@@@@<PARENT>{{EdgesTo|@@@@|specified}}<PARENT_SEP>}} }}
 
}}{{ListEdges.generateTable
 
}}{{ListEdges.generateTable
 
| title = Specified Out Edges
 
| title = Specified Out Edges
Line 53: Line 53:
 
| nodeTitle = <abbr title="The node that the edge points to">Successor</abbr>
 
| nodeTitle = <abbr title="The node that the edge points to">Successor</abbr>
 
| uninheritedEdges = {{#arrayprint:specifiedOutEdges|<EDGE_SEP>}}
 
| uninheritedEdges = {{#arrayprint:specifiedOutEdges|<EDGE_SEP>}}
| inheritedEdges = {{#arrayprint:parentsArray|<PARENT_SEP>|@@@@|{{#if:{{EdgesFrom|@@@@|specified}}|@@@@<PARENT>{{EdgesFrom|@@@@|specified}} }} }}
+
| inheritedEdges = {{#arrayprint:parentsArray||@@@@|{{#if:{{EdgesFrom|@@@@|specified}}|@@@@<PARENT>{{EdgesFrom|@@@@|specified}}<PARENT_SEP>}} }}
 
}}{{ListEdges.generateTable
 
}}{{ListEdges.generateTable
 
| title = Known Possible In Edges
 
| title = Known Possible In Edges
Line 59: Line 59:
 
| nodeTitle = <abbr title="The node that the edge comes from">Predecessor</abbr>
 
| nodeTitle = <abbr title="The node that the edge comes from">Predecessor</abbr>
 
| uninheritedEdges = {{#arrayprint:permittedInEdges|<EDGE_SEP>}}
 
| uninheritedEdges = {{#arrayprint:permittedInEdges|<EDGE_SEP>}}
| inheritedEdges = {{#arrayprint:parentsArray|<PARENT_SEP>|@@@@|{{#if:{{EdgesTo|@@@@|permitted}}|@@@@<PARENT>{{EdgesTo|@@@@|permitted}} }} }}
+
| inheritedEdges = {{#arrayprint:parentsArray||@@@@|{{#if:{{EdgesTo|@@@@|permitted}}|@@@@<PARENT>{{EdgesTo|@@@@|permitted}}<PARENT_SEP>}} }}
 
}}{{ListEdges.generateTable
 
}}{{ListEdges.generateTable
 
| title = Known Possible Out Edges
 
| title = Known Possible Out Edges
Line 65: Line 65:
 
| nodeTitle = <abbr title="The node that the edge points to">Successor</abbr>
 
| nodeTitle = <abbr title="The node that the edge points to">Successor</abbr>
 
| uninheritedEdges = {{#arrayprint:permittedOutEdges|<EDGE_SEP>}}
 
| uninheritedEdges = {{#arrayprint:permittedOutEdges|<EDGE_SEP>}}
| inheritedEdges = {{#arrayprint:parentsArray|<PARENT_SEP>|@@@@|{{#if:{{EdgesFrom|@@@@|permitted}}|@@@@<PARENT>{{EdgesFrom|@@@@|permitted}} }} }}
+
| inheritedEdges = {{#arrayprint:parentsArray||@@@@|{{#if:{{EdgesFrom|@@@@|permitted}}|@@@@<PARENT>{{EdgesFrom|@@@@|permitted}}<PARENT_SEP>}} }}
 
}}
 
}}

Revision as of 13:49, 12 May 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.