<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Andoza:Clade converter/doc - Oʻzgarishlar tarixi</title>
		<link>https://ziyosfera.uz/index.php?title=Andoza:Clade_converter/doc&amp;action=history</link>
		<description>Ziyosferadagi mazkur sahifaning oʻzgarishlar tarixi</description>
		<language>uz</language>
		<generator>MediaWiki 1.45.1</generator>
		<lastBuildDate>Sat, 28 Nov 2026 03:16:49 GMT</lastBuildDate>
		<item>
			<title>Programmer: Oʻzbekcha Vikipediyadan import qilindi.</title>
			<link>https://ziyosfera.uz/index.php?title=Andoza:Clade_converter/doc&amp;diff=90016&amp;oldid=prev</link>
			<guid isPermaLink="false">https://ziyosfera.uz/index.php?title=Andoza:Clade_converter/doc&amp;diff=90016&amp;oldid=prev</guid>
			<description>&lt;p&gt;Oʻzbekcha Vikipediyadan import qilindi.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Yangi sahifa&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Hujjat ostsahifasi}}&lt;br /&gt;
{{lua|Module:Clade}}&lt;br /&gt;
==Wikitext list converter==&lt;br /&gt;
&lt;br /&gt;
Converts a list in wikitext marker to the clade structure. The list must be wrapped in {{tag|nowiki}} tags.&lt;br /&gt;
&amp;lt;pre&amp;gt;{{clade converter|list=&amp;amp;lt;nowiki&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;Sitta&amp;#039;&amp;#039;&lt;br /&gt;
** [[Sittelle superbe]] (&amp;#039;&amp;#039;S. formosa&amp;#039;&amp;#039;)&lt;br /&gt;
** &lt;br /&gt;
*** &lt;br /&gt;
**** [[Sittelle des rochers]] (&amp;#039;&amp;#039;S. tephronota&amp;#039;&amp;#039;)&lt;br /&gt;
**** [[Sittelle de Neumayer]] (&amp;#039;&amp;#039;S. neumayer&amp;#039;&amp;#039;)&lt;br /&gt;
***&lt;br /&gt;
**** &lt;br /&gt;
***** [[Sittelle du Cachemire]] (&amp;#039;&amp;#039;S. cashmirensis&amp;#039;&amp;#039;)&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;Sittelle des Naga&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;S. nagaensis&amp;#039;&amp;#039;)&lt;br /&gt;
***** [[Sittelle torchepot]] (&amp;#039;&amp;#039;S. europaea&amp;#039;&amp;#039;)&lt;br /&gt;
**** [[Sittelle de l&amp;#039;Himalaya]] (&amp;#039;&amp;#039;S. himalayensis&amp;#039;&amp;#039;)&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively invoke function directly:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{#invoke:Clade|listConverter|list=&lt;br /&gt;
PUT LIST HERE&lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; produces&lt;br /&gt;
&lt;br /&gt;
{{Clade converter|list=&amp;lt;nowiki&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;Sitta&amp;#039;&amp;#039;&lt;br /&gt;
** [[Sittelle superbe]] (&amp;#039;&amp;#039;S. formosa&amp;#039;&amp;#039;)&lt;br /&gt;
** &lt;br /&gt;
*** &lt;br /&gt;
**** [[Sittelle des rochers]] (&amp;#039;&amp;#039;S. tephronota&amp;#039;&amp;#039;)&lt;br /&gt;
**** [[Sittelle de Neumayer]] (&amp;#039;&amp;#039;S. neumayer&amp;#039;&amp;#039;)&lt;br /&gt;
***&lt;br /&gt;
**** &lt;br /&gt;
***** [[Sittelle du Cachemire]] (&amp;#039;&amp;#039;S. cashmirensis&amp;#039;&amp;#039;)&lt;br /&gt;
***** &amp;#039;&amp;#039;&amp;#039;Sittelle des Naga&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;S. nagaensis&amp;#039;&amp;#039;)&lt;br /&gt;
***** [[Sittelle torchepot]] (&amp;#039;&amp;#039;S. europaea&amp;#039;&amp;#039;)&lt;br /&gt;
**** [[Sittelle de l&amp;#039;Himalaya]] (&amp;#039;&amp;#039;S. himalayensis&amp;#039;&amp;#039;)&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Newick converter ==&lt;br /&gt;
&lt;br /&gt;
Convert simple [[Newick format|Newick]] strings to the clade structure. This is a tool to aid construction of cladograms using the {{tl|clade}} template and not for use directly in the article namespace.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
*{{para|newickstring}} &amp;amp;ndash; the Newick format data to be converted&lt;br /&gt;
*{{para|indent}} &amp;amp;ndash; optionally set an indent, which will indent every line by N spaces. This can help alignment in the final cladogram.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
The following code&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Andoza:Clade newick converter&lt;br /&gt;
|newickstring=((lion,jaguar,leopard),((siberian,javan,bengal)tiger,snow leopard))panthera&lt;br /&gt;
|indent=10&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
produces the output below&lt;br /&gt;
&lt;br /&gt;
::{{Andoza:Clade newick converter|newickstring=((lion,jaguar,leopard),((siberian,javan,bengal)tiger,snow leopard))panthera&lt;br /&gt;
|indent=10&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Processing the Newick string===&lt;br /&gt;
&lt;br /&gt;
The Newick format data provided [[Open Tree of Life]] and other sources typically has extraneous encoding data. This extra information can be removed using the {{para|newickN-pattern}} and {{para|newickN-replace}} parameters which supply a Lua pattern (similar to Regex) and replacement. The following code uses Newick format data for the genus &amp;#039;&amp;#039;[[Prionailurus]]&amp;#039;&amp;#039; downloaded from using Open Tree of Life ([https://tree.opentreeoflife.org/opentree/argus/ottol@570215/Prionailurus source data]):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{clade newick converter&lt;br /&gt;
   |newickstring=(Prionailurus_planiceps_ott86166,(((Prionailurus_bengalensis_chinensis_ott198595,Prionailurus_bengalensis_euptilurus_ott547362,Prionailurus_bengalensis_bengalensis_ott5557509,Prionailurus_bengalensis_rabori_ott7067613)Prionailurus_bengalensis_ott280108,Prionailurus_iriomotensis_ott418475),Prionailurus_viverrinus_ott862641),Prionailurus_rubiginosus_ott507541)Prionailurus_ott570215&lt;br /&gt;
   |newick-pattern=([%a_]+)_(ott[%d]*)&lt;br /&gt;
   |newick-replace={{&amp;#039;}}{{&amp;#039;}}%1{{&amp;#039;}}{{&amp;#039;}}&lt;br /&gt;
   |newick-pattern2=(%a)(%l+)_&lt;br /&gt;
   |newick-replace2=%1._ &lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
produces &lt;br /&gt;
&lt;br /&gt;
::{{clade newick converter|newickstring=(Prionailurus_planiceps_ott86166,(((Prionailurus_bengalensis_chinensis_ott198595,Prionailurus_bengalensis_euptilurus_ott547362,Prionailurus_bengalensis_bengalensis_ott5557509,Prionailurus_bengalensis_rabori_ott7067613)Prionailurus_bengalensis_ott280108,Prionailurus_iriomotensis_ott418475),Prionailurus_viverrinus_ott862641),Prionailurus_rubiginosus_ott507541)Prionailurus_ott570215&lt;br /&gt;
   |newick-pattern=([%a_]+)_(ott[%d]*)&lt;br /&gt;
   |newick-replace={{&amp;#039;}}{{&amp;#039;}}%1{{&amp;#039;}}{{&amp;#039;}}&lt;br /&gt;
   |newick-pattern2=(%a)(%l+)_&lt;br /&gt;
   |newick-replace2=%1._ &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In this example there are two replacements. The first strips the _ott suffix and applies Wikitext markup. Note the Wikitext markup has to be handled with a template (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;#039;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) The second abbreviates the genus name when not standalone. In addition, underscores are always replaced by spaces.&lt;br /&gt;
&lt;br /&gt;
==List Converter==&lt;br /&gt;
&lt;br /&gt;
Converts a [[Wikitext]]-like list to a clade structure. The list uses the symbol &amp;#039;&amp;#039;&amp;#039;@&amp;#039;&amp;#039;&amp;#039; as the &amp;#039;&amp;#039;&amp;#039;*&amp;#039;&amp;#039;&amp;#039; would be processed as Wikitext.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
The following illustrates the code and the desired output:&lt;br /&gt;
&lt;br /&gt;
{{clade example|code=Template call with pseudo-Wikitext list&lt;br /&gt;
                |output=Output of template as clade code&lt;br /&gt;
                |comment=The cladogram that the code produces&lt;br /&gt;
|code1=&amp;lt;pre&amp;gt;{{Clade converter&lt;br /&gt;
|indent=3&lt;br /&gt;
|list=&lt;br /&gt;
@A&lt;br /&gt;
@@A1&lt;br /&gt;
@@A2&lt;br /&gt;
@B&lt;br /&gt;
@C&lt;br /&gt;
@@C1&lt;br /&gt;
@@C2&lt;br /&gt;
@@@C2a&lt;br /&gt;
@@@C2b&lt;br /&gt;
@@@@C2b1&lt;br /&gt;
@@@@C2b2&lt;br /&gt;
@@C3&lt;br /&gt;
@D&lt;br /&gt;
@@D1&lt;br /&gt;
@@D2&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|output1={{Clade converter&lt;br /&gt;
|indent=3&lt;br /&gt;
|list=&lt;br /&gt;
@A&lt;br /&gt;
@@A1&lt;br /&gt;
@@A2&lt;br /&gt;
@B&lt;br /&gt;
@C&lt;br /&gt;
@@C1&lt;br /&gt;
@@C2&lt;br /&gt;
@@@C2a&lt;br /&gt;
@@@C2b&lt;br /&gt;
@@@@C2b1&lt;br /&gt;
@@@@C2b2&lt;br /&gt;
@@C3&lt;br /&gt;
@D&lt;br /&gt;
@@D1&lt;br /&gt;
@@D2&lt;br /&gt;
}}&lt;br /&gt;
|comment1={{cladeN&lt;br /&gt;
|label1=label&lt;br /&gt;
|list1=&lt;br /&gt;
@A&lt;br /&gt;
@@A1&lt;br /&gt;
@@A2&lt;br /&gt;
@B&lt;br /&gt;
@C&lt;br /&gt;
@@C1&lt;br /&gt;
@@C2&lt;br /&gt;
@@@C2a&lt;br /&gt;
@@@C2b&lt;br /&gt;
@@@@C2b1 &lt;br /&gt;
@@@@C2b2&lt;br /&gt;
@@C3&lt;br /&gt;
@D&lt;br /&gt;
@@D1&lt;br /&gt;
@@D2&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</description>
			<pubDate>Thu, 06 Aug 2026 11:48:09 GMT</pubDate>
			<dc:creator>Programmer</dc:creator>
			<comments>https://ziyosfera.uz/ziyo/Andoza_munozarasi:Clade_converter/doc</comments>
		</item>
</channel></rss>