Difference between revisions of "Template:Clade transclude/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(create)
 
imported>Jts1882
(update to use nested APG template→‎Examples:)
 
Line 2: Line 2:
 
==Examples:==
 
==Examples:==
  
Testcases using {{tl|Phylogeny/APG IV/sandbox}} (all subtrees in outer clade)
+
Testcases using {{tl|Phylogeny/APG IV}} (nested subtrees)
 
</noinclude>
 
</noinclude>
  
Line 12: Line 12:
 
|description1='''Label'''
 
|description1='''Label'''
 
|code1=<pre>{{Clade transclude
 
|code1=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=Commelinids
 
   |label=Commelinids
 
   |wrap=
 
   |wrap=
 
}}</pre>
 
}}</pre>
 
|output1={{Clade transclude
 
|output1={{Clade transclude
         |page=Template:Phylogeny/APG IV/sandbox
+
         |page=Template:Phylogeny/APG IV
 
         |label=Commelinids
 
         |label=Commelinids
 
         |wrap=
 
         |wrap=
Line 25: Line 25:
 
|description2='''Label''' <br/> (with subtree)
 
|description2='''Label''' <br/> (with subtree)
 
|code2=<pre>{{Clade transclude
 
|code2=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=Fabids
 
   |label=Fabids
 
   |wrap=
 
   |wrap=
 
}}</pre>
 
}}</pre>
 
|output2={{Clade transclude
 
|output2={{Clade transclude
         |page=Template:Phylogeny/APG IV/sandbox
+
         |page=Template:Phylogeny/APG IV
 
         |label=Fabids
 
         |label=Fabids
 
         |wrap=
 
         |wrap=
Line 39: Line 39:
 
|description3='''Subtree'''
 
|description3='''Subtree'''
 
|code3=<pre>{{Clade transclude
 
|code3=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |subtree=SUPERROSIDS
 
   |subtree=SUPERROSIDS
 
   |wrap=
 
   |wrap=
 
}}</pre>
 
}}</pre>
 
|output3={{Clade transclude
 
|output3={{Clade transclude
         |page=Template:Phylogeny/APG IV/sandbox
+
         |page=Template:Phylogeny/APG IV
 
         |subtree=SUPERROSIDS  
 
         |subtree=SUPERROSIDS  
 
         |wrap=
 
         |wrap=
Line 52: Line 52:
 
|description4='''Section'''
 
|description4='''Section'''
 
|code4=<pre>{{Clade transclude
 
|code4=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |section=Lamiids
 
   |section=Lamiids
 
   |wrap=
 
   |wrap=
 
}}</pre>
 
}}</pre>
 
|output4={{Clade transclude
 
|output4={{Clade transclude
         |page=Template:Phylogeny/APG IV/sandbox
+
         |page=Template:Phylogeny/APG IV
 
         |section=Lamiids
 
         |section=Lamiids
 
         |wrap=
 
         |wrap=
Line 66: Line 66:
 
|description5='''Label'''  
 
|description5='''Label'''  
 
|code5=<pre>{{Clade transclude
 
|code5=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=Eudicots
 
   |label=Eudicots
 
   |wrap=
 
   |wrap=
 
}}</pre>
 
}}</pre>
 
|output5={{Clade transclude
 
|output5={{Clade transclude
         |page=Template:Phylogeny/APG IV/sandbox
+
         |page=Template:Phylogeny/APG IV
 
         |label=Eudicots
 
         |label=Eudicots
 
         |wrapx=}}
 
         |wrapx=}}
Line 78: Line 78:
 
|description6='''Label'''  
 
|description6='''Label'''  
 
|code6=<pre>{{Clade transclude
 
|code6=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=EUDICOTS
 
   |label=EUDICOTS
 
   |wrap=
 
   |wrap=
 
}}</pre>
 
}}</pre>
 
|output6={{Clade transclude
 
|output6={{Clade transclude
         |page=Template:Phylogeny/APG IV/sandbox
+
         |page=Template:Phylogeny/APG IV
 
         |subtree=EUDICOTS
 
         |subtree=EUDICOTS
 
         |wrapx=}}
 
         |wrapx=}}
Line 95: Line 95:
 
|description1='''Subtree'''
 
|description1='''Subtree'''
 
|code1=<pre>{{Clade transclude
 
|code1=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |subtree=SUPERROSIDS
 
   |subtree=SUPERROSIDS
 
   |exclude=Malvids
 
   |exclude=Malvids
Line 102: Line 102:
 
}}</pre>
 
}}</pre>
 
|output1=  {{Clade transclude
 
|output1=  {{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |subtree=SUPERROSIDS
 
   |subtree=SUPERROSIDS
 
   |exclude=Malvids
 
   |exclude=Malvids
Line 111: Line 111:
 
|description2='''Label''' <br/><br/>(Eudicots pruned)
 
|description2='''Label''' <br/><br/>(Eudicots pruned)
 
|code2=<pre>{{Clade transclude
 
|code2=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=Eudicots
 
   |label=Eudicots
 
   |exclude=Superrosids
 
   |exclude=Superrosids
Line 131: Line 131:
 
|description3='''Subtree''' <br/><br/>(EUDICOTS pruned)
 
|description3='''Subtree''' <br/><br/>(EUDICOTS pruned)
 
|code3=<pre>{{Clade transclude
 
|code3=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |subtree=EUDICOTS
 
   |subtree=EUDICOTS
 
   |exclude=Malvids
 
   |exclude=Malvids
Line 144: Line 144:
 
}}</pre>
 
}}</pre>
 
|output3=  {{Clade transclude
 
|output3=  {{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |subtree=EUDICOTS
 
   |subtree=EUDICOTS
 
   |exclude=Malvids
 
   |exclude=Malvids
Line 160: Line 160:
 
|description4='''Subtree'''<br/><br/>(basal tree)
 
|description4='''Subtree'''<br/><br/>(basal tree)
 
|code4=<pre>{{Clade transclude
 
|code4=<pre>{{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=Angiosperms
 
   |label=Angiosperms
 
   |exclude=Magnoliids
 
   |exclude=Magnoliids
Line 171: Line 171:
 
}}</pre>
 
}}</pre>
 
|output4=  {{Clade transclude
 
|output4=  {{Clade transclude
   |page=Template:Phylogeny/APG IV/sandbox
+
   |page=Template:Phylogeny/APG IV
 
   |label=Angiosperms
 
   |label=Angiosperms
 
   |exclude=Magnoliids
 
   |exclude=Magnoliids
Line 187: Line 187:
  
 
Note that in the last example the Angiosperm tree must be pruned or an expansion depth limit is exceeded. This is because this template recontructs the whole tree before processing. If the whole tree is wanted call the {{tl|Phylogeny/APG IV}} template directly.
 
Note that in the last example the Angiosperm tree must be pruned or an expansion depth limit is exceeded. This is because this template recontructs the whole tree before processing. If the whole tree is wanted call the {{tl|Phylogeny/APG IV}} template directly.
 
 
More examples at:
 
* [[Template:Phylogeny/APG IV]] (nested subtrees)
 
* [[Template:Phylogeny/APG IV/sandbox]] (all subtrees basal)
 
* [[User:Jts1882/test/transclude sections]]
 

Latest revision as of 10:04, 13 November 2019

Examples:

Testcases using {{Phylogeny/APG IV}} (nested subtrees)


Examples of selection transclusion for a larger cladogram

DescriptionCodeOutput
Label
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Commelinids
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Label
(with subtree)
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Fabids
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Subtree
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |subtree=SUPERROSIDS
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Section
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |section=Lamiids
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Label
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Eudicots
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Label
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=EUDICOTS
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.

Examples with pruning

DescriptionCodeOutput
Subtree
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |subtree=SUPERROSIDS
   |exclude=Malvids
   |replace=Malvid clade pruned
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Label

(Eudicots pruned)
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Eudicots
   |exclude=Superrosids
   |replace=Superrosids clade pruned
   |exclude2=Superasterids
   |replace2=Superasterids clade pruned
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Subtree

(EUDICOTS pruned)
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |subtree=EUDICOTS
   |exclude=Malvids
   |replace=Malvid clade pruned
   |exclude2=Fabids
   |replace2=Fabid clade pruned
   |exclude3=Lamiids
   |replace3=Lamiid clade pruned
   |exclude4=Campanulids
   |replace4=Campanulids clade pruned 
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.
Subtree

(basal tree)
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Angiosperms
   |exclude=Magnoliids
   |replace=Magnoliids clade pruned
   |exclude2=Monocots
   |replace2=Monocots clade pruned
   |exclude3=Eudicots
   |replace3=Eudicots clade pruned
   |wrap=
}}
Page with title "Template:Phylogeny/APG IV" not found.

Note that in the last example the Angiosperm tree must be pruned or an expansion depth limit is exceeded. This is because this template recontructs the whole tree before processing. If the whole tree is wanted call the {{Phylogeny/APG IV}} template directly.