Examples using xsection function
edit
Test 2: transclude four cladograms based on <section/>
tags in target article.
Source file: User:Jts1882/cladeN/Passeriformes
{{#invoke:Sandbox/Jts1882/Test|xsection|User:Jts1882/cladeN/Passeriformes |Passeriformes |Tyranni}}
{{CladeN |style=font-size:100%;line-height:100%
|label1=[[Passerines]]
|1={{CladeN
|label1=[[Acanthisitti]]
|1={{cladeN
|1=[[Acanthisittidae]] (New Zealand wrens)
}}
|label2=[[Eupasseres]]
|2=<section begin=TyranniWithLabel />{{CladeN
|label1=[[Tyranni]]
|1=replacement string<section end=TyranniWithLabel />
|label2=[[Passeri]]
|2={{CladeN
|label1=[[Menurida]]
|1={{CladeN
|2=[[Atrichornithidae]] (scrubbords)
|1=[[Menuridae]] (lyrebirds)
}}
|label2=[[Euoscines]]
|2={{CladeN
|label1=[[Climacterida]]
|1={{CladeN
|2=[[Ptilonorhynchidae]] (bowerbirds)
|1=[[Climacteridae]] (Australian treecreepers)
}}
|2={{CladeN
|label1=[[Meliphagida]]
|1={{CladeN
|1=[[Maluridae]] (Australian wrend)
|2={{CladeN
|1=[[Dasyornithidae]] (bristlebirds)
|2={{CladeN
|1=[[Pardalotidae]] (gerygones & allies)
|2=[[Meliphagidae]] (honeyeasyers)
}}
}}
}}
|2={{CladeN
|label1=[[Orthonychida]]
|1={{CladeN
|1=[[Orthonychidae]] (logrunners)
|2=[[Pomatostomidae]] (Australian babblers)
}}
|2={{#tag:section||begin=Test}}{{CladeN
|label1=
|1= [[Corvida]] (see below)
|label2=
|2= [[Passerida]] (see below)
}}{{#tag:section||end=Test}}
}}
}}
}}
}}
<section begin=TyranniWithLabel />}}<section end=TyranniWithLabel />
}}
}}
Section tag transclusion
edit
Examples using #section
edit
Examples using #section to partially transclude from large cladograms (commented out due to size)
Lua module transclusion
edit
Examples using section function
edit
Test 2: transclude four cladograms based on <section/>
tags in target article.
Source file: User:Jts1882/sandbox/test/Passeriformes
{{#invoke:Sandbox/Jts1882/Test|section|User:Jts1882/cladeN/Passeriformes |Passeroidea |Corvida |TyranniWithLabel}}
Examples using label function
edit
Examples from article namespace
edit
Examples from using label function to partially transclude from article namespace
(1) Panthera and Felis |label=
s from Felidae page
{{#invoke:Sandbox/Jts1882/Test|label|Felidae|Panthera|Felis}}
Failed to capture subclade with label Panthera Failed to capture subclade with label Felis
(2) |label=Eusuchia
and subclade CROCODYLIA from Neosuchia article.
{{#invoke:Sandbox/Jts1882/Test|label|Neosuchia|Eusuchia|CROCODYLIA}}
Result commented out.
Examples with labels and subclades
edit
Test 4: transclude two cladograms based on |label=
and two based on |subclade=
(in capitals). Note that |labelN=Rosids
doesn't transclude the subtrees.
{{#invoke:Sandbox/Jts1882/Test|label|Template:Phylogeny/APG IV|Commelinids|Rosids|MALVIDS|EUDICOTS}}
Vitales de Jussieu ex von Berchtold & Presl 1820
Fabids
(eurosids I)
Malvids
Geraniales de Jussieu ex von Berchtold & Presl 1820
Myrtales de Jussieu ex von Berchtold & Presl 1820
(eurosids II)
Geraniales de Jussieu ex von Berchtold & Presl 1820
Myrtales de Jussieu ex von Berchtold & Presl 1820
Examples with labels
edit
Transclude two cladograms based on |label=
{{#invoke:Sandbox/Jts1882/Test|label|User:Jts1882/phylogeny/Passerines|Eurylaimides|Corvoidea}}
Examples from using xlabel function
edit
Note: the basic function is working in second case (excluding clades from full tree) but the replacement string is hard coded (TODO: add parameters). The first doesn't work because the target strings have been substituted.
{{#invoke:Sandbox/Jts1882/Test|xlabel|Template:Phylogeny/APG IV|Superrosids|MALVIDS|FABIDS}}
{{#invoke:Sandbox/Jts1882/Test|xlabel|Template:Phylogeny/APG IV|Superrosids|Fabids|Malvids}}
Saxifragales von Berchtold & Presl 1820
Rosids
Vitales de Jussieu ex von Berchtold & Presl 1820
Fabids
(eurosids I)
Malvids
Geraniales de Jussieu ex von Berchtold & Presl 1820
Myrtales de Jussieu ex von Berchtold & Presl 1820
(eurosids II)
Saxifragales von Berchtold & Presl 1820
Rosids
Vitales de Jussieu ex von Berchtold & Presl 1820
Fabids
replacement string
(eurosids I)
Malvids
replacement string
(eurosids II)
A target example using section tags on subtrees
Code Output
{{CladeN
|label1=root |sublabel1=[12/40]
|1={{CladeN
|1=Leaf 1
|2={{cladeN
|1=Leaf 2.1
|2={{cladeN
|1=Leaf 2.2.1
|2={{cladeN
|label1=SubcladeA
|1=SUBCLADE_A <!-- this leaf will be substituted with subcladeA parameter contents without adding to transclusion depth-->
|label2=SubcladeB
|2=SUBCLADE_B <!-- liekwose this leaf will be substituted with subcladeB parameter contents -->
}}
}}
}}
}}
|targetA = SUBCLADE_A
|subcladeA={{CladeN
|1=Leaf A1
|2={{cladeN
|1=Leaf A2.1
|2={{cladeN
|1=Leaf A2.2.1
|2=Leaf A2.2.2
}}
}}
}}
|targetBx = SUBCLADE_B
|subcladeB={{CladeN
|1=Leaf B1
|2={{cladeN
|1=Leaf B.1
|2={{cladeN
|1=Leaf B2.2.1
|label2=SubcladeC
|2=TARGET_C
}}
}}
}}
|targetC = TARGET_C
|subcladeC=<section begin=TARGET_C />{{CladeN
|1=Leaf C1
|2={{cladeN
|1=Leaf C2.1
|2={{cladeN
|1=Leaf C2.2.1
|2=Leaf C2.2.2
}}
}}
}}<section end=TARGET_C />
}}
A test <section/>
for translusion from another page