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)
Created page with "<templatestyles src="Template:Tree/style.css"/> <div class="hierarchy-tree --item"> {{tree/item|icon={{{icon|}}}|content={{{content|}}}}} {{#if:{{{inner|}}}|<div class="--tree-indent">{{{inner}}}</div>}} </div><includeonly> == Documentation == Renders a tree-like structure. Work in progress. </includeonly>"
Tag: 2017 source edit
 
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>
</div></includeonly><noinclude>
{{tree|icon=BBGroup.png|content=root|inner=
  {{tree|icon=BBGroup.png|content=Head|inner=
    {{tree|icon=BBCube.png|content=Head}}
  }}
}}
 
== Documentation ==
== Documentation ==
Renders a tree-like structure. Work in progress.
Renders a tree-like structure. Nest using the <code>inner</code> parameter.
</includeonly>
 
<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>

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}}
  }}
}}