Jump to content

User:Jts1882/test/transclude sections

From Wikipedia, the free encyclopedia

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}}
Passerines
Acanthisitti

Acanthisittidae (New Zealand wrens)



Eupasseres
Tyranni
Eurylaimides

Sapayoidae (sapayoa)





Philepittidae (asites)



Eurylaimidae (eurylaimid broadbills)






Smithornithidae (African broadbills)



Calyptomenidae (Asian green broadbills




Pittidae (pittas)





Tyrannides
Tyrannida

Pipridae (manakins)




Cotingidae (cotingas)





Oxyruncidae (sharpbill)



Onychorhynchidae (royal flycatchers & allies)





Tityridae (titras, becards)




Pipritidae (piprites)





Platyrinchidae (spadebills)




Tachurididae (many-coloured rush tyrant)



Rhynchocyclidae (mionectine flycatchers)





Tyrannidae (tyrant flycatchers)








Furnariida


Melanopareiidae (crescent chests)




Conopophagidae (gnateaters)



Thamnophilidae (antbirds)






Grallariidae (antpittas)




Rhinocryptidae (tapaculos)




Formicariidae (antthrushes)



Furnariidae (ovenbirds)








Passeri
Menurida

Menuridae (lyrebirds)



Atrichornithidae (scrubbords)



Euoscines
Climacterida

Climacteridae (Australian treecreepers)



Ptilonorhynchidae (bowerbirds)




Meliphagida

Maluridae (Australian wrend)




Dasyornithidae (bristlebirds)




Pardalotidae (gerygones & allies)



Meliphagidae (honeyeasyers)






Orthonychida

Orthonychidae (logrunners)



Pomatostomidae (Australian babblers)





Corvida (see below)



Passerida (see below)









Passerines
Acanthisitti

Acanthisittidae (New Zealand wrens)



Eupasseres
Tyranni

replacement string


Passeri
Menurida

Menuridae (lyrebirds)



Atrichornithidae (scrubbords)



Euoscines
Climacterida

Climacteridae (Australian treecreepers)



Ptilonorhynchidae (bowerbirds)




Meliphagida

Maluridae (Australian wrend)




Dasyornithidae (bristlebirds)




Pardalotidae (gerygones & allies)



Meliphagidae (honeyeasyers)






Orthonychida

Orthonychidae (logrunners)



Pomatostomidae (Australian babblers)





Corvida (see below)



Passerida (see below)









{{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}}
Passeroidea

Promeropidae (sugarbirds)




Arcanatoridae [=Modulatricidae] (spot-throat & allies)





Dicaeidae (flowerpeckers)



Nectariniidae (sunbirds)






Irenidae (fairy bluebirds)



Chloropseidae (leafbirds)





Peucedramidae (olive warbler)




Prunellidae (accentors)



Estrild clade


Urocynchramidae (Przevalski's finch)



Ploceidae (weavers)





Viduidae (indigobirds, whydals)



Estrildidae (estrildid finches)




Passerid clade

Passeridae (sparrows)




Motacillidae (wagtails, pipits)




Fringillidae (finches, euphonias)




Calcariidae (longspurs, snow buntings)




Rhodinocichlidae (thrush-tanager)





Emberizidae (buntings)



Passerellidae (American sparrows)




?Zeledonia



?Teretistris



Phaenicophilidae (palm-tanager & allies)




Icteridae (New World blackbirds)



Parulidae (wood warblers)







Mitrospingidae (mitrosingus & allies)



Cardinalidae (cardinal grosbeaks)



Thraupidae (tanagers)
















Corvida
Mohouoidea

Mohouidae (whitehead & allies)



Neosittoidea

Neosittidae (sittellas)


Orioloidea


Pachycephalidae (whistlers)




Oreoicidae (Australo-Papuan bellbirds)




Falcunculidae (shriketits)



Cinclosomatidae (quail-thrushes, jewel-babblers)







Eulacestomidae (ploughbill)




Oriolidae (orioles, figbirds)




Paramythiidae (painted berrypickers)




Psophodidae (whipbirds & allies)




Pteruthiidae (shrike-babblers)



Vireonidae (vireos)









Malaconotoidea

Campephagidae (cuckooshrikes)





Rhagologidae (mottled berryhunter)



Artamidae (woodswallows, butcherbirds)





Machaerirhynchidae (boatbills)





Platysteiridae (wattle-eyes, batsies)



Vangidae (vangas)





Aegithinidae (loras)




Pityriaseidae (bristlehead)



Malaconotidae (bush-shrikes, puffbacks)








Corvoidea

?Dicruridae (drongos)




Rhipiduridae (fantails)



Lamproliidae (silktail, drongo fantail)






Ifritidae (ifrit)




Melampittidae (melampittas)




Corcoracidae (Australian mudnesters)



Paradisaeidae (birds-of-paradise)






Monarchidae (monarchs)




Laniidae (shrikes)



Corvidae (crows, jays)








Tyranni
Eurylaimides

Sapayoidae (sapayoa)





Philepittidae (asites)



Eurylaimidae (eurylaimid broadbills)






Smithornithidae (African broadbills)



Calyptomenidae (Asian green broadbills




Pittidae (pittas)





Tyrannides
Tyrannida

Pipridae (manakins)




Cotingidae (cotingas)





Oxyruncidae (sharpbill)



Onychorhynchidae (royal flycatchers & allies)





Tityridae (titras, becards)




Pipritidae (piprites)





Platyrinchidae (spadebills)




Tachurididae (many-coloured rush tyrant)



Rhynchocyclidae (mionectine flycatchers)





Tyrannidae (tyrant flycatchers)








Furnariida


Melanopareiidae (crescent chests)




Conopophagidae (gnateaters)



Thamnophilidae (antbirds)






Grallariidae (antpittas)




Rhinocryptidae (tapaculos)




Formicariidae (antthrushes)



Furnariidae (ovenbirds)








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 PantheraFailed 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}}

Arecales Bromhead 1840

Poales Small 1903

Zingiberales Grisebach 1854

Commelinales de Mirbel ex von Berchtold & Presl 1820

Vitales de Jussieu ex von Berchtold & Presl 1820

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

(eurosids I)
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

(eurosids II)

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

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

Saxifragales von Berchtold & Presl 1820

Rosids

Vitales de Jussieu ex von Berchtold & Presl 1820

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

(eurosids I)
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

(eurosids II)
Superasterids

Berberidopsidales Doweld 2001

Santalales Brown ex von Berchtold & Presl 1820

Caryophyllales

Asterids

Cornales Link 1829

Ericales von Berchtold & Presl 1820

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

(euasterids I)
Campanulids

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

(euasterids II)
eudicots


Examples with labels

[edit]

Transclude two cladograms based on |label=

{{#invoke:Sandbox/Jts1882/Test|label|User:Jts1882/phylogeny/Passerines|Eurylaimides|Corvoidea}}

Philepittidae (asites)

Eurylaimidae (eurylaimid broadbills)

Calyptomenidae (African and green broadbills)

Sapayoidae (sapayoa)

Pittidae (pittas)

Rhipiduridae (fantails)

Dicruridae (drongos)

Monarchidae (monarchs)

Ifritidae (ifrit)

Paradisaeidae (birds-of-paradise)

Corcoracidae (Australian mudnesters)

Melampittidae (melampittas)

Laniidae (shrikes)

Platylophidae (crested jay)

Corvidae (crows, jays)

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

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

(eurosids I)
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

(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)

Subtrees

[edit]

A target example using section tags on subtrees

CodeOutput
{{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 />          
}}
root

Leaf 1




Leaf 2.1




Leaf 2.2.1



SubcladeA

Leaf A1




Leaf A2.1




Leaf A2.2.1



Leaf A2.2.2





SubcladeB

Leaf B1




Leaf B.1




Leaf B2.2.1


SubcladeC

Leaf C1




Leaf C2.1




Leaf C2.2.1



Leaf C2.2.2











[12/40]

A test <section/> for translusion from another page