<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AClade_hidden%2Fdoc</id>
	<title>Template:Clade hidden/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AClade_hidden%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Clade_hidden/doc&amp;action=history"/>
	<updated>2026-11-01T15:16:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Clade_hidden/doc&amp;diff=126687&amp;oldid=prev</id>
		<title>Wikipedia&gt;IDB.S: Undid revision 1285775954 by IDB.S (talk) Sorry accidently changed the wrong code.</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Clade_hidden/doc&amp;diff=126687&amp;oldid=prev"/>
		<updated>2025-04-15T19:52:11Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/wiki/Special:Diff/1285775954&quot; title=&quot;Special:Diff/1285775954&quot;&gt;1285775954&lt;/a&gt; by &lt;a href=&quot;/wiki/Special:Contributions/IDB.S&quot; title=&quot;Special:Contributions/IDB.S&quot;&gt;IDB.S&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User_talk:IDB.S&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:IDB.S (page does not exist)&quot;&gt;talk&lt;/a&gt;) Sorry accidently changed the wrong code.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Documentation subpage}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
{{Lua|Module:Clade|Module:Clade/hidden}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Clade hidden/styles.css}}&lt;br /&gt;
&lt;br /&gt;
Creates an interactive clade element that is collapsible. The initial state can be collapsed (hidden) or expanded (visible). Interactivity is achieved by clicking appropriate symbols in the cladogram (e.g. &amp;amp;#8862; or &amp;amp;#8863;) or custom interactive elements can be added externally with {{tl|clade toggle}}.&lt;br /&gt;
&lt;br /&gt;
This feature is intended to be used sparsely on large clagograms where the whole structure cannot be seen in the screen window.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
Parameters as {{tl|clade}} with the addition of the following:&lt;br /&gt;
&lt;br /&gt;
*{{para|expanded|true}} &amp;amp;ndash; sets initial state to expanded (default: hidden)&lt;br /&gt;
*{{para|id}} &amp;amp;ndash; id to control interactivity; use unique ids for independent behaviour or same ids for shared behaviour&lt;br /&gt;
*{{para|expand-symbol}} &amp;amp;ndash; symbol for expansion (e.g. &amp;amp;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;#8862; --&amp;gt; &amp;amp;#8862; or &amp;amp;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;#10753; --&amp;gt; &amp;amp;#10753;)&lt;br /&gt;
*{{para|collapse-symbol}} &amp;amp;ndash; symbol for collapsing (e.g. &amp;amp;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;#8863; --&amp;gt; &amp;amp;#8863; or &amp;amp;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;#10754; --&amp;gt;&amp;amp;#10754;)&lt;br /&gt;
*{{para|mode|left}} &amp;amp;ndash; position of collapse symbol (left or right of the clade content; default: left)&lt;br /&gt;
*{{para|expand-text|(expand text)}} &amp;amp;ndash; text to replace hidden content&lt;br /&gt;
*{{para|collapse-text|(collapse text)}} &amp;amp;ndash; text to show with collapse symbol (when {{para|mode|right}})&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;Development note: The behaviour of the hidden element when in mobile mode or with javascript disable is controlled in {{tl|clade hidden/styles.css}}. The currentl behaviour is to hide the symbols and leave the expanded content. The following CSS code can hide the content in these modes. However there are currently a couple of issues: width of labels on collapsed elements if on dummy clade; initial state of content when {{para|expanded|true}}.&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;table.clade td.clade-interactive  div.mw-collapsible-content { display:none; }&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{clade example |code= |output=&lt;br /&gt;
|code1=&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Clade&lt;br /&gt;
|label1=root&lt;br /&gt;
|1={{Clade&lt;br /&gt;
   |1=Unhidden Leaf&lt;br /&gt;
   |label2=Hidden clade&lt;br /&gt;
   |2={{Clade hidden  |id=1&lt;br /&gt;
      |1=Leaf1&lt;br /&gt;
      |2=Leaf2&lt;br /&gt;
      }}&lt;br /&gt;
   }}&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|output1=&lt;br /&gt;
{{Clade&lt;br /&gt;
|label1=root&lt;br /&gt;
|1={{Clade&lt;br /&gt;
   |1=Unhidden Leaf&lt;br /&gt;
   |label2=Hidden clade&lt;br /&gt;
   |2={{Clade hidden  |id=1&lt;br /&gt;
      |1=Leaf1&lt;br /&gt;
      |2=Leaf2&lt;br /&gt;
      }}&lt;br /&gt;
   }}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|code2=&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Clade&lt;br /&gt;
|label1=root&lt;br /&gt;
|1={{Clade&lt;br /&gt;
   |1=Unhidden Leaf&lt;br /&gt;
   |label2=Collapsible clade &lt;br /&gt;
   |2={{Clade hidden &lt;br /&gt;
      |id=2        &amp;lt;!-- clade hidden parameters --&amp;gt;&lt;br /&gt;
      |expanded=true&lt;br /&gt;
      |mode=right &lt;br /&gt;
      |expand-text=(expand text) &lt;br /&gt;
      |collapse-text=(collapse text)&lt;br /&gt;
      |expand-symbol=&amp;amp;#10753; &lt;br /&gt;
      |collapse-symbol=&amp;amp;#10754;&lt;br /&gt;
      &lt;br /&gt;
      |1=Leaf1   &amp;lt;!-- standard clade parameters --&amp;gt;&lt;br /&gt;
      |2=Leaf2&lt;br /&gt;
      }}&lt;br /&gt;
   }}&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|output2=&lt;br /&gt;
{{Clade&lt;br /&gt;
|label1=root&lt;br /&gt;
|1={{Clade&lt;br /&gt;
   |1=Unhidden Leaf&lt;br /&gt;
   |label2=Collapsible clade &lt;br /&gt;
   |2={{Clade hidden |expanded=true |id=2 |mode=right &lt;br /&gt;
                     |expand-text=(expand text) |collapse-text=(collapse text)&lt;br /&gt;
                     |expand-symbol=&amp;amp;#10753; |collapse-symbol=&amp;amp;#10754;&lt;br /&gt;
      |1=Leaf1&lt;br /&gt;
      |2=Leaf2&lt;br /&gt;
      }}&lt;br /&gt;
   }}&lt;br /&gt;
}}&lt;br /&gt;
}}&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Genealogy formatting templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;IDB.S</name></author>
	</entry>
</feed>