Difference between revisions of "Template:PageTreeListItem"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Memo
sc4e>Memo
m
Line 5: Line 5:
 
* level=level of expansion to parent (1,2,…)
 
* level=level of expansion to parent (1,2,…)
 
* children=text of html list items containing children
 
* children=text of html list items containing children
</noinclude>
+
</noinclude><includeonly><li>[[{{{parent}}}]]{{#ifeq:{{{parent}}}|{{#titleparts:{{{path}}}|1|{{{level}}} }}|<ul>{{{children}}}</ul>|}}</li></includeonly>
<includeonly>
 
<li>[[{{{parent}}}]] - {{#titleparts:{{{path}}}|1|{{{level}}} }}
 
  {{#ifeq:{{{parent}}}|{{#titleparts:{{{path}}}|1|{{{level}}} }}
 
  |<ul>{{{children}}}</ul>
 
  |nonequal}}
 
</li>
 
</includeonly>
 

Revision as of 05:41, 17 August 2015

List item in page tree with conditional expansion. Parameters:

  • parent=name of parent list item
  • path=path to expanded item in page tree
  • level=level of expansion to parent (1,2,…)
  • children=text of html list items containing children