ઢાંચો:Clade/doc/common: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
નાનું en:ઢાંચો:Clade/doc/common થી ૧૧ પુનરાવર્તનો
નાનું Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]; cosmetic changes
 
લીટી ૧૯૨:
 
Example Perl script to automate the conversion:
<sourcesyntaxhighlight lang="perl">
use constant N=>"\n";
use constant T=>"\t";
લીટી ૨૧૧:
 
print $tree;
</syntaxhighlight>
</source>
 
== Using a box ==
 
You can nest the templates and use links around the text. You may use non-breaking spaces (&amp;nbsp;) to obtain spaces or to have labels that have spaces.
લીટી ૨૬૯:
</pre>
 
== Controlling the layout of sisters ==
 
When one sister is represented as a leaf node and the other as a labelled subclade, they do not appear to be at the same level. Consider this cladogram:
લીટી ૩૨૯:
 
-->{{#ifeq:{{{1|}}}|cladex|
== Bracketting nodes ==
'''{{tlf|Cladex}} only.''' To insert a coloured 'bracket' around a set of leaf nodes which follow one another in the generated cladogram:
* Add <tt>barbeginN=''colour''</tt> for the first leaf node, where N is the order of that leaf node within its clade, and ''colour'' is the required colour.
લીટી ૪૧૭:
with the expectation that the bar will be to the right of the whole of the clade containing Leaf B and Leaf C. This does not produce the required output.
 
=== Specifying colours ===
 
You can use any of the ways in which colours can be specified in HTML; e.g. the standard [http://www.w3schools.com/html/html_colornames.asp colour names], the three or six hex digit notations, such as #FC3 or #F3C630, or the <tt>rgb()</tt> notation.
 
=== Supplying text labels ===
 
Text labels for each bracket/bar can be added using {{tl|Barlabel}}. Accessibility guidelines require pages not to rely on colour alone, so it's particularly important to add labels if you have more than one bracket/bar and need to refer to them separately.
 
=== Debugging ===
 
If your cladogram doesn't display brackets/bars as you expected, check that:
લીટી ૪૩૩:
}}<!--
===== END OF FOR cladex ONLY-->
== Limitations ==
=== Label length ===
Labels produced by <tt>|labelN=</tt>, where <tt>N</tt> is 1, 2, ..., can lead to poor layout of the resulting cladogram. (This does not apply to the text of leaves, i.e. text produced by <tt>|N=</tt>.) To avoid problems:
* labels should be kept as short as possible, ideally a single word
લીટી ૪૪૦:
* line breaks (i.e. <nowiki><br></nowiki>) should not be used.
 
=== Browser differences ===
[[Fileચિત્ર:Cladograms - browser variation.png|thumb|Browser variation: left – Internet Explorer, Firefox; right – Safari, Chrome, Opera]]
Cladograms are drawn by generating hidden tables. The horizontal and vertical lines making up the tree are actually the edges of table cells. The tables are then drawn by the browser or user agent using its internal algorithms. As these differ from browser to browser, the trees produced will not look the same on all browsers.
 
લીટી ૪૫૦:
If there is a choice over the ordering of the terminal nodes (leaves) of the tree, cladograms look best in the second group of browsers if as much branching as possible is at the bottom of the cladogram. Typically this is produced by arranging the terminal nodes ''downwards'' on the page in order of their evolutionary divergence. Compare the bottom row of the diagram to the top row.
 
=== Large cladograms ===
There are limitations on the size and complexity of the cladograms which can be drawn:
* A maximum of 17 children is allowed per node. It may seem that this could easily be increased by editing the template, but see the next point.
* Cladograms can only be expanded up to a certain level of complexity because the MediaWiki software limits the resources available for template expansion. The cladogram at [[APG_III_systemAPG III system#Phylogeny]] has had to be broken into three parts, because the entire cladogram exhausts the allowed resources (in this case the allowed expansion depth). ''Any change to the template could result in large cladograms failing to display correctly.'' In general, don't exceed a depth of 19, i.e. don't nest one {{#ifeq:{{{1|}}}|cladex|cladex|clade}} template inside another more than 19 times.
 
=== Inclusion in books ===
There are many known bugs in rendering tables in the software which produces [[Helpમદદ:Books|Wikipedia books]]; see the [//meta.wikimedia.org/wiki/Book_tool/Feedback book tool feedback page]. {{as of|2011|July|}} these result in the lines in cladograms not displaying in books.</includeonly><noinclude>
{{doc|content=
This is the common part of the documentation for the two templates {{tl|Clade}} and {{tl|Cladex}}.