Difference between revisions of "Template:InheritEdgesTo"

From AtlasWiki
Jump to: navigation, search
(Created page with "Creates table rows listing edges that go to the specified parent. The table is expected to be called with the following format: <pre>{| class="xcsgtable" |- ! Parent !! In E...")
 
(switching from <onlyinclude> to <noinclude>)
Line 1: Line 1:
Creates table rows listing edges that go to the specified parent.
+
<noinclude>Creates table rows listing edges that go to the specified parent.
  
 
The table is expected to be called with the following format:
 
The table is expected to be called with the following format:
Line 11: Line 11:
 
|}</pre>
 
|}</pre>
  
<onlyinclude>{{#ask: [[edge to {{{1}}}::+]]
+
</noinclude>{{#ask: [[edge to {{{1}}}::+]]
 
| ?edge to {{{1}}}
 
| ?edge to {{{1}}}
 
| format=array
 
| format=array
Line 17: Line 17:
 
| propsep=$SEP$
 
| propsep=$SEP$
 
| name=inEdges
 
| name=inEdges
}}</onlyinclude>
+
}}<noinclude>
  
<onlyinclude>{{#switch:{{#arraysize:inEdges}}| 0 = | #default =  
+
</noinclude>{{#switch:{{#arraysize:inEdges}}| 0 = | #default =  
 
{{!}}-
 
{{!}}-
 
{{!}}{{#arrayprint:inEdges|{{!}}-
 
{{!}}{{#arrayprint:inEdges|{{!}}-
 
{{!}}|var|{{{1}}}{{!}}[[{{#explode:var|$SEP$|0}}]] {{!}}{{!}} [[{{#explode:var|$SEP$|1}}]] {{!}}{{!}} {{#explode:var|$SEP$|2}} {{!}}{{!}} {{ReconstructLinks|{{#explode:var|$SEP$|3}}}} }}  
 
{{!}}|var|{{{1}}}{{!}}[[{{#explode:var|$SEP$|0}}]] {{!}}{{!}} [[{{#explode:var|$SEP$|1}}]] {{!}}{{!}} {{#explode:var|$SEP$|2}} {{!}}{{!}} {{ReconstructLinks|{{#explode:var|$SEP$|3}}}} }}  
}}</onlyinclude>
+
}}

Revision as of 11:57, 21 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 !! In Edge !! Multiplicity !! Description
{{InheritEdgesTo | parent}}
{{InheritEdgesTo | other parent}}
...
|}