Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tree: Difference between revisions

Template page
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Tree/style.css"/>
<includeonly><templatestyles src="Template:Tree/style.css"/>
<div class="hierarchy-tree --item">
<div class="hierarchy-tree">
{{tree/item|icon={{{icon|}}}|content={{{content|}}}}}
{{tree/item|icon={{{icon|}}}|content={{{content|}}}}}
{{#if:{{{inner|}}}|<div class="--tree-indent">{{{inner}}}</div>}}
{{#if:{{{inner|}}}|<div class="-tree-indent">{{{inner}}}</div>}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{tree|icon=BBGroup.png|content=root|inner=
{{tree|icon=BBGroup.png|content=root|inner=
Line 11: Line 11:


== Documentation ==
== Documentation ==
Renders a tree-like structure. Work in progress.
Renders a tree-like structure. Nest using the <code>inner</code> parameter.
 
<syntaxhighlight lang="wikitext">
{{tree|icon=BBGroup.png|content=root|inner=
  {{tree|icon=BBGroup.png|content=Head|inner=
    {{tree|icon=BBCube.png|content=Head}}
  }}
}}
</syntaxhighlight>
</noinclude>
</noinclude>

Latest revision as of 03:17, 14 December 2024

root
Head
Head

Documentation

Renders a tree-like structure. Nest using the inner parameter.

{{tree|icon=BBGroup.png|content=root|inner=
  {{tree|icon=BBGroup.png|content=Head|inner=
    {{tree|icon=BBCube.png|content=Head}}
  }}
}}