Difference between revisions of "Template:InheritEdgesTo"

From AtlasWiki
Jump to: navigation, search
(change to support split between "permitted" and "specified" edges)
(roll back to previous version until ready for transition)
 
Line 1: Line 1:
 
<noinclude>Creates table rows listing edges that go to the specified parent.
 
<noinclude>Creates table rows listing edges that go to the specified parent.
  
Inherited edges are of two kinds: "permitted" edges and "specified" edges.
+
The table is expected to be called with the following format:
 
+
An example requesting "permitted" edges might look like this:
+
  
 
<pre>{| class="xcsgtable"
 
<pre>{| class="xcsgtable"
 
|-
 
|-
 
! Parent !! In Edge !! Prececessor (Comes From) !! Multiplicity !! Description
 
! Parent !! In Edge !! Prececessor (Comes From) !! Multiplicity !! Description
{{InheritEdgesTo|parent|permitted}}
+
{{InheritEdgesTo|parent}}
{{InheritEdgesTo|other parent|permitted}}
+
{{InheritEdgesTo|other parent}}
 
...
 
...
 
|}</pre>
 
|}</pre>
  
</noinclude>{{#ask: [[{{{2}}} edge to {{{1}}}::+]]
+
</noinclude>{{#ask: [[edge to {{{1}}}::+]]
| ?{{{2}}} edge to {{{1}}}
+
| ?edge to {{{1}}}
 
| format=array
 
| format=array
 
| headers=hide
 
| headers=hide

Latest revision as of 18:58, 7 May 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 !! Prececessor (Comes From) !! Multiplicity !! Description
{{InheritEdgesTo|parent}}
{{InheritEdgesTo|other parent}}
...
|}