Template:Clade transclude/doc

Template page

This template can partially transclude marked sections and subclades from cladograms contructed with the {{clade}} template. The template and module were written with{{clade}} cladograms in mind, but the section option works with any page.

Parameters

 

To select target page and section or branch to retrieve
  • |page= – the page name containing the target section or cladogram.
  • |section= – get a named section. This works like {{#section}} and retrieves sections marked with <section begin=NAME /> and <section end=NAME />
  • |label= – select a subtree associated with |labelN= and |N= parameters from a larger cladogram.
  • |subtree= – select the subtree associated with |targetX= and |subcladeX= from a larger cladogram.


To wrap with a labelled {{clade}} template
  • |wrap= – wraps a subclade retrieved with |section= in a {{clade}} template. The label for the root of the tree is the section name if |wrap= used purely as a flag or |wrap=NAME if a value is provided.
  • |style= – applies a style to the outer clade added with the |wrap= parameter.


To modify retrieved tree by pruning and grafting branches
  • |exclude=, |exclude2=, etc. – prunes a subclade from the selected subtree
  • |replace=, |replace2=, etc – replacement content for the corresponding pruned element (i.e content to graft on)


To exclude images, authorities or interactive elements
  • |noimages= – don't retrieve images
  • |noauthority= – suppress authorities (actually removes anything in small tags)
  • |nohidden=] – disable interactive elements using {{clade hidden}}


Substitution
  • |raw= – don't preprocess wikitext

By substituting the template, the wikitext containing the cladogram using {{clade}} templates is added to the page. The local copy can then be further edited as required by the specific example.

Examples:

Examples of selection transclusion for a larger cladogram

DescriptionCodeOutput
Label
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Commelinids
   |wrap=
}}
Commelinids

Arecales Bromhead 1840

Poales Small 1903

Zingiberales Grisebach 1854

Commelinales de Mirbel ex von Berchtold & Presl 1820

Label
(with subtree)
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Fabids
   |wrap=
}}
Fabids

Zygophyllales Link 1829

Celastrales Link 1829

Oxalidales von Berchtold & Presl 1820

Malpighiales de Jussieu ex von Berchtold & Presl 1820

Fabales Bromhead 1838

Rosales von Berchtold & Presl 1820

Cucurbitales de Jussieu ex von Berchtold & Presl 1820

Fagales Engler 1892

Subtree
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |subtree=SUPERROSIDS
   |wrap=
}}
Superrosids

Saxifragales von Berchtold & Presl 1820

Rosids

Vitales de Jussieu ex von Berchtold & Presl 1820

Fabids

<section begin=Fabids />

Zygophyllales Link 1829

Celastrales Link 1829

Oxalidales von Berchtold & Presl 1820

Malpighiales de Jussieu ex von Berchtold & Presl 1820

Fabales Bromhead 1838

Rosales von Berchtold & Presl 1820

Cucurbitales de Jussieu ex von Berchtold & Presl 1820

Fagales Engler 1892

<section end=Fabids />
(eurosids I)
Malvids

<section begin=Malvids />

Geraniales de Jussieu ex von Berchtold & Presl 1820

Myrtales de Jussieu ex von Berchtold & Presl 1820

Crossosomatales Takhtajan ex Reveal 1993

Picramniales Doweld 2001

Sapindales de Jussieu ex von Berchtold & Presl 1820

Huerteales Doweld 2001

Malvales de Jussieu ex von Berchtold & Presl 1820

Brassicales Bromhead 1838

<section end=Malvids />
(eurosids II)
Section
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |section=Lamiids
   |wrap=
}}
Lamiids

Icacinales Van Tieghem 1900

Metteniusales Takhtajan 1997

Garryales Mart. 1835

Gentianales de Jussieu ex von Berchtold & Presl 1820

Solanales de Jussieu ex von Berchtold & Presl 1820

Boraginales de Jussieu ex von Berchtold & Presl 1820

Vahliales Doweld 2001

Lamiales Bromhead 1838

Label
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=Eudicots
   |wrap=
}}

Ranunculales de Jussieu ex von Berchtold & Presl 1820

Proteales de Jussieu ex von Berchtold & Presl 1820

Trochodendrales Takhtajan ex Cronquist 1981

Buxales Takhtajan ex Reveal 1996

core

Gunnerales Takhtajan ex Reveal 1992

Dilleniales de Candolle ex von Berchtold & Presl 1820

Superrosids

<section begin=Superrosids />

Saxifragales von Berchtold & Presl 1820

Rosids

Vitales de Jussieu ex von Berchtold & Presl 1820

Fabids

<section begin=Fabids />

Zygophyllales Link 1829

Celastrales Link 1829

Oxalidales von Berchtold & Presl 1820

Malpighiales de Jussieu ex von Berchtold & Presl 1820

Fabales Bromhead 1838

Rosales von Berchtold & Presl 1820

Cucurbitales de Jussieu ex von Berchtold & Presl 1820

Fagales Engler 1892

<section end=Fabids />
(eurosids I)
Malvids

<section begin=Malvids />

Geraniales de Jussieu ex von Berchtold & Presl 1820

Myrtales de Jussieu ex von Berchtold & Presl 1820

Crossosomatales Takhtajan ex Reveal 1993

Picramniales Doweld 2001

Sapindales de Jussieu ex von Berchtold & Presl 1820

Huerteales Doweld 2001

Malvales de Jussieu ex von Berchtold & Presl 1820

Brassicales Bromhead 1838

<section end=Malvids />
(eurosids II)
<section end=Superrosids />
Superasterids

<section begin=Superasterids />

Berberidopsidales Doweld 2001

Santalales Brown ex von Berchtold & Presl 1820

Caryophyllales

Asterids

Cornales Link 1829

Ericales von Berchtold & Presl 1820

Lamiids

<section begin=Lamiids />

Icacinales Van Tieghem 1900

Metteniusales Takhtajan 1997

Garryales Mart. 1835

Gentianales de Jussieu ex von Berchtold & Presl 1820

Solanales de Jussieu ex von Berchtold & Presl 1820

Boraginales de Jussieu ex von Berchtold & Presl 1820

Vahliales Doweld 2001

Lamiales Bromhead 1838

<section end=Lamiids />
(euasterids I)
Campanulids

<section begin=Campulids />

Aquifoliales Senft 1856

Escalloniales Mart. 1835

Asterales Link 1829

Bruniales Dumortier 1829

Apiales Nakai 1930

Paracryphiales Takhtajan ex Reveal 1992

Dipsacales de Jussieu ex von Berchtold & Presl 1820

<section end=Campulids />
(euasterids II)
<section end=Superasterids />
eudicots
Label
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |label=EUDICOTS
   |wrap=
}}

Ranunculales de Jussieu ex von Berchtold & Presl 1820

Proteales de Jussieu ex von Berchtold & Presl 1820

Trochodendrales Takhtajan ex Cronquist 1981

Buxales Takhtajan ex Reveal 1996

core

Gunnerales Takhtajan ex Reveal 1992

Dilleniales de Candolle ex von Berchtold & Presl 1820

Superrosids

<section begin=Superrosids />

Saxifragales von Berchtold & Presl 1820

Rosids

Vitales de Jussieu ex von Berchtold & Presl 1820

Fabids

<section begin=Fabids />

Zygophyllales Link 1829

Celastrales Link 1829

Oxalidales von Berchtold & Presl 1820

Malpighiales de Jussieu ex von Berchtold & Presl 1820

Fabales Bromhead 1838

Rosales von Berchtold & Presl 1820

Cucurbitales de Jussieu ex von Berchtold & Presl 1820

Fagales Engler 1892

<section end=Fabids />
(eurosids I)
Malvids

<section begin=Malvids />

Geraniales de Jussieu ex von Berchtold & Presl 1820

Myrtales de Jussieu ex von Berchtold & Presl 1820

Crossosomatales Takhtajan ex Reveal 1993

Picramniales Doweld 2001

Sapindales de Jussieu ex von Berchtold & Presl 1820

Huerteales Doweld 2001

Malvales de Jussieu ex von Berchtold & Presl 1820

Brassicales Bromhead 1838

<section end=Malvids />
(eurosids II)
<section end=Superrosids />
Superasterids

<section begin=Superasterids />

Berberidopsidales Doweld 2001

Santalales Brown ex von Berchtold & Presl 1820

Caryophyllales

Asterids

Cornales Link 1829

Ericales von Berchtold & Presl 1820

Lamiids

<section begin=Lamiids />

Icacinales Van Tieghem 1900

Metteniusales Takhtajan 1997

Garryales Mart. 1835

Gentianales de Jussieu ex von Berchtold & Presl 1820

Solanales de Jussieu ex von Berchtold & Presl 1820

Boraginales de Jussieu ex von Berchtold & Presl 1820

Vahliales Doweld 2001

Lamiales Bromhead 1838

<section end=Lamiids />
(euasterids I)
Campanulids

<section begin=Campulids />

Aquifoliales Senft 1856

Escalloniales Mart. 1835

Asterales Link 1829

Bruniales Dumortier 1829

Apiales Nakai 1930

Paracryphiales Takhtajan ex Reveal 1992

Dipsacales de Jussieu ex von Berchtold & Presl 1820

<section end=Campulids />
(euasterids II)
<section end=Superasterids />
eudicots

Examples with pruning

DescriptionCodeOutput
Subtree
{{Clade transclude
   |page=Template:Phylogeny/APG IV
   |subtree=SUPERROSIDS
   |exclude=Malvids
   |replace=Malvid clade pruned
   |wrap=
}}
Superrosids

Saxifragales von Berchtold & Presl 1820

Rosids

Vitales de Jussieu ex von Berchtold & Presl 1820

Fabids

<section begin=Fabids />

Zygophyllales Link 1829

Celastrales Link 1829

Oxalidales von Berchtold & Presl 1820

Malpighiales de Jussieu ex von Berchtold & Presl 1820

Fabales Bromhead 1838

Rosales von Berchtold & Presl 1820

Cucurbitales de Jussieu ex von Berchtold & Presl 1820

Fagales Engler 1892

<section end=Fabids />
(eurosids I)
Malvids

Malvid clade pruned

(eurosids II)
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=
}}
Eudicots

Ranunculales de Jussieu ex von Berchtold & Presl 1820

Proteales de Jussieu ex von Berchtold & Presl 1820

Trochodendrales Takhtajan ex Cronquist 1981

Buxales Takhtajan ex Reveal 1996

core

Gunnerales Takhtajan ex Reveal 1992

Dilleniales de Candolle ex von Berchtold & Presl 1820

Superrosids

Superrosids clade pruned

Superasterids

Superasterids clade pruned

eudicots
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=
}}
Eudicots

Ranunculales de Jussieu ex von Berchtold & Presl 1820

Proteales de Jussieu ex von Berchtold & Presl 1820

Trochodendrales Takhtajan ex Cronquist 1981

Buxales Takhtajan ex Reveal 1996

core

Gunnerales Takhtajan ex Reveal 1992

Dilleniales de Candolle ex von Berchtold & Presl 1820

Superrosids

<section begin=Superrosids />

Saxifragales von Berchtold & Presl 1820

Rosids

Vitales de Jussieu ex von Berchtold & Presl 1820

Fabids

Fabid clade pruned

(eurosids I)
Malvids

Malvid clade pruned

(eurosids II)
<section end=Superrosids />
Superasterids

<section begin=Superasterids />

Berberidopsidales Doweld 2001

Santalales Brown ex von Berchtold & Presl 1820

Caryophyllales

Asterids

Cornales Link 1829

Ericales von Berchtold & Presl 1820

Lamiids

Lamiid clade pruned

(euasterids I)
Campanulids

Campanulids clade pruned

(euasterids II)
<section end=Superasterids />
eudicots
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=
}}
Angiosperms

Amborellales Melikyan, Bobrov & Zaytzeva 1999

Nymphaeales Salisbury ex von Berchtold & Presl 1820

Austrobaileyales Takhtajan ex Reveal 1992

Mesangiosperms

Chloranthales Mart. 1835

Magnoliids

Magnoliids clade pruned

Monocots

Monocots clade pruned

Ceratophyllales Link 1829

Eudicots

Eudicots clade pruned

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.

More examples at: