Difference between revisions of "Template:PageTreeListItem"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Memo
m
m (5 revisions imported)
 
(2 intermediate revisions by one other user not shown)
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><includeonly><li>[[{{{parent}}}]]{{#ifeq:{{{parent}}}|{{#titleparts:{{{path}}}|1|{{{level}}} }}|<ul>{{{children}}}</ul>|}}</li></includeonly>
+
</noinclude><includeonly><li>[[Namdoc:{{{parent}}}|{{{parent}}}]]{{#ifeq:{{{parent}}}|{{#titleparts:{{{path}}}|1|{{{level}}} }}|<ul>{{{children}}}</ul>|}}</li></includeonly>

Latest revision as of 14:57, 4 August 2019

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