Difference between revisions of "Template:Clade/doc/common"

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
(update obsolete HTML <tt>)
imported>Peter coxhead
(→‎Browser differences: updated to apparent 2017 position)
Line 444: Line 444:
 
===Browser differences===
 
===Browser differences===
  
[[File:Cladograms - browser variation.png|thumb|Browser variation: left – Internet Explorer, Firefox; right – Safari, Chrome, Opera]]
+
[[File:Cladograms - browser variation.png|thumb|Browser variation: left – most browsers; right – Safari
 +
]]
  
 
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.
 
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.
  
In particular, {{as of|2012|April|lc=yes}} there are two algorithms for laying out tables with empty cells, used by two groups of browsers. Browsers like Internet Explorer and Firefox use one algorithm, producing cladograms like the two on the left in the diagram. Browsers like Safari, Chrome and Opera use another algorithm, producing cladograms like the two on the right in the diagram.
+
In particular, {{as of|2017|January|lc=yes}}, there are two algorithms for laying out tables with empty cells, used by two groups of browsers. Most browsers now use the algorithm that produces cladograms like the two on the left in the diagram. Safari (under both MacOS and iOS) uses another algorithm, producing cladograms like the two on the right in the diagram.
  
 
No automated "fix" for these differences exists at present.
 
No automated "fix" for these differences exists at present.
  
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.
+
If there is a choice over the ordering of the terminal nodes (leaves) of the tree, cladograms look best in a Safari-like browser 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===
 
===Large cladograms===

Revision as of 10:41, 1 January 2017

50px Template documentation

This is the common part of the documentation for the two templates {{Clade}} and {{Cladex}}. Set the first parameter to "clade" or "cladex" to select which version is shown.