This template produces phylogenetic trees based on the Angiosperm Phylogeny Group IV (APG IV).[1] The whole system can be output as a large cladogram or sections can be selected for partial transclusion.
Partial transclusion is available for Magnolids, Monocots, Commelinids, Eudicots, Superrosids, Malvids, Fabids, Superasterids, Campulids, and Lamiids.
Sections from the whole tree can be transcluded separately. For example, the following code extracts the monocot tree. The sections are marked in the template using <section begin=SECTION_NAME /> and <section end=SECTION_NAME />. In this example the SECTION_NAME is Monocots. The |wrap= causes the transcluded section to be wrapped with an outer clade element labelled with the section name (by default) or the value assigned to the parameter.
Selective transclusion can also use the |label= parameters in the {{clade}} template. This method can be used with any clade with a label with no special encoding (sections or subtrees).
Note that this just retrieves the clade containing the malvids, without a labelled root. The following example uses |wrap= to wrap the recovered subtree within a clade with a label.
{{Phylogeny/APG IV|subtree=EUDICOTS|wrap=}}
Eudicots
Ranunculales de Jussieu ex von Berchtold & Presl 1820
Proteales de Jussieu ex von Berchtold & Presl 1820
The following example extracts the rosid clade using the |label= parameter and then prunes the malvid clade using the |exclude= and substitutes with the content in the |replace= parameter.
The following example extracts the eudicot clade using the |subtree= parameter and then prunes the superrosid and superasterid clades using the |exclude= parameters and substitutes with the content in the |replace= parameters.
The following example extracts the eudicot clade using the |subtree= parameter and then prunes the rosid and lamiid clades using the |exclude= parameters and substitutes with the content in the |replace= parameters.