Difference between revisions of "Template:ListEdges"

From AtlasWiki
Jump to: navigation, search
(Extra whitespace is due to the output starting with a table, and cannot be avoided (it is automatically added by mediawiki), reverting)
(added use of ReconstructLinks template)
Line 23: Line 23:
 
{{!}}-
 
{{!}}-
 
{{!}}{{#arrayprint:inEdges|{{!}}-
 
{{!}}{{#arrayprint:inEdges|{{!}}-
{{!}}|var|[[{{#explode:var|$SEP$|0}}]] {{!}}{{!}} [[{{#explode:var|$SEP$|1}}]] {{!}}{{!}} {{#explode:var|$SEP$|2}} {{!}}{{!}} {{#explode:var|$SEP$|3}} }}
+
{{!}}|var|[[{{#explode:var|$SEP$|0}}]] {{!}}{{!}} [[{{#explode:var|$SEP$|1}}]] {{!}}{{!}} {{#explode:var|$SEP$|2}} {{!}}{{!}} {{ReconstructLinks|{{#explode:var|$SEP$|3}}}} }}
 
{{!}}}  
 
{{!}}}  
 
}}<noinclude><!--
 
}}<noinclude><!--
Line 50: Line 50:
 
{{!}}-
 
{{!}}-
 
{{!}}{{#arrayprint:outEdges|{{!}}-
 
{{!}}{{#arrayprint:outEdges|{{!}}-
{{!}}|var|[[{{#explode:var|$SEP$|0}}]] {{!}}{{!}} [[{{#explode:var|$SEP$|1}}]] {{!}}{{!}} {{#explode:var|$SEP$|2}} {{!}}{{!}} {{#explode:var|$SEP$|3}} }}
+
{{!}}|var|[[{{#explode:var|$SEP$|0}}]] {{!}}{{!}} [[{{#explode:var|$SEP$|1}}]] {{!}}{{!}} {{#explode:var|$SEP$|2}} {{!}}{{!}} {{ReconstructLinks|{{#explode:var|$SEP$|3}}}} }}
 
{{!}}}  
 
{{!}}}  
 
}}
 
}}

Revision as of 18:32, 2 April 2014

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.