Template:ListEdgesWIP
From AtlasWiki
Revision as of 13:08, 27 March 2014 by TheodoreMurdock (Talk | contribs) (temporarily removing HTML comments around <noinclude>ed items to ensure nothing's leaking through)
For use on node kind pages; will eventually automatically lists all known kinds of in and out edges to/from this kind of node, and the kinds of nodes those edges come from.
Currently lists just the node/edge pairs that point explicitly to/from this kind of node, ignoring superkinds.
Above, we've stored all the in edges in an array named "inEdges".
Each entry in the array is in this format:
[link to edge]$SEP$[name of predecessor]$SEP$[multiplicity]$SEP$[edge description])
...now we parse those into an "In Edge" table, if and only if there is at least one in edge:
Next we get the out edges:
If both arrays have values, then we need to add the whitespace that goes between the two tables.
Finally, we print the out edges table: