Difference between revisions of "Template:PageTreeListItem"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Memo
(New page: <noinclude> 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 ...)
 
sc4e>Memo
Line 7: Line 7:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<li>[[{{{parent}}}]]
+
<li>[[{{{parent}}}]] - {{#titleparts:{{{path}}}|1|{{{level}}} }}
   {{#ifeq:{{{parent}}}|{{PAGENAME:{{#titleparts:{{{path}}}|1|{{{level}}} }} }}
+
   {{#ifeq:{{{parent}}}|{{#titleparts:{{{path}}}|1|{{{level}}} }}
 
   |<ul>{{{children}}}</ul>
 
   |<ul>{{{children}}}</ul>
   |}}
+
   |nonequal}}
 
</li>
 
</li>
 
</includeonly>
 
</includeonly>

Revision as of 05:32, 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