Module talk:Sandbox/trappist the monk/taxonomy

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This page is a demonstrator / proof of concept. At Wikipedia talk:WikiProject Tree of Life § The automatic taxonomy system I wondered if it were possible to condense the 113,995+ templates into a handful of lua data modules.

I have created a number of data modules (at least one, often more, for each letter of the alphabet and one for non-letters and one for 'new' data) to hold the data taken from most (all?) of the templates listed in Category:Taxonomy templates. These data modules are listed here. I also created a test module that crawls up the tree from a given starting taxon and renders the list of taxa. The test module also calls taxonomyList() in Module:Autotaxobox with the same starting taxon to serve as a comparative reference.

The data modules built 2021-10-24 include data from:


replacements for the left-hand table produced by {{taxonomy key}}? A problem that I have not been able to overcome is the what-do-I-click-on-to-edit-a-taxon-in-a-data-module question. In the existing 87,000+ template version, it is easy to link to a taxon's parent template because the template exists. For the lua data module form, it is easy to link to the taxon's parent data module (Module:Sandbox/trappist_the_monk/taxonomy F for Felinae) but most editor won't want to edit the data module (or perhaps won't be able to because of protections). So, the question is, how to get from the Felis example of the data display rendering to the Felinae data display? Is this even possible?

Taxonomy/Felis
Parent: [Taxonomy; edit]
Rank: – a rank must be supplied
Link:
Extinct: no
Always displayed: no
Taxonomic references:
Parent's taxonomic references:
Template skeleton:
data loaded from [taxonomy F]
to change these data:
  1. copy the template skeleton
  2. click [create]
  3. paste, and edit
{{Don't edit this line {{{machine code|}}}
|same_as=
|parent=
|rank=
|link=
|extinct=
|always_display=
|refs=
}}
Taxonomy/Angiosperms [edit]
Parent: Spermatophytes/Plantae [taxonomy S4]
Rank: clade [displays as: Clade]
Link: Flowering plant|Angiosperms [displays as: Angiosperms]
Extinct: no
Always displayed: true
Taxonomic references:
Parent's taxonomic references:

The {{#invoke:}} that calls the test module and taxonomyList() is below. To play with the test module, edit this page and replace the left-most positional parameter with a different taxon. There is no error checking; the test module will return nothing if it cannot find the new taxon.


lua data module experiment wikidata experiment autotaobox reference
no rank or same_as for taxon Felis from Felis Superdomain: Biota
Superkingdom: Eukaryota
Kingdom: Animalia
Subkingdom: Bilateria
Superphylum: Deuterostomia
Phylum: Chordata
Subphylum: Vertebrata
Infraphylum: Gnathostomata
Megaclass: Osteichthyes
Superclass: Sarcopterygii
no value: Dipnotetrapodomorpha
no value: Tetrapodomorpha
Superclass: Tetrapoda
no value: Reptiliomorpha
no value: Amniota
no value: Synapsida
no value: Eupelycosauria
no value: Sphenacodontia
no value: Sphenacodontoidea
no value: Therapsida
no value: Eutheriodontia
no value: Cynodontia
no value: Epicynodontia
no value: Eucynodontia
no value: Probainognathia
no value: Mammaliamorpha
no value: Mammaliaformes
Class: Mammalia
Subclass: Theria
Clade: Eutheria
Infraclass: Placentalia
Magnorder: Boreoeutheria
Superorder: Laurasiatheria
Clade: Scrotifera
Grandorder: Ferungulata
Mirorder: Ferae
Clade: Pan-Carnivora
Clade: Carnivoramorpha
Clade: Carnivoraformes
Order: Carnivora
Suborder: Feliformia
Family: Felidae
Subfamily: Felinae
Genus: Felis

Bold ranks show taxa that will be shown in taxoboxes
because rank is principal or always_display=yes.

Ancestral taxa
Domain: Eukaryota /displayed  [Taxonomy; edit]
Clade: Amorphea  [Taxonomy; edit]
Clade: Obazoa  [Taxonomy; edit]
(unranked): Opisthokonta  [Taxonomy; edit]
(unranked): Holozoa  [Taxonomy; edit]
(unranked): Filozoa  [Taxonomy; edit]
Clade: Choanozoa  [Taxonomy; edit]
Kingdom: Animalia  [Taxonomy; edit]
Subkingdom: Eumetazoa  [Taxonomy; edit]
Clade: ParaHoxozoa  [Taxonomy; edit]
Clade: Bilateria  [Taxonomy; edit]
Clade: Nephrozoa  [Taxonomy; edit]
Superphylum: Deuterostomia  [Taxonomy; edit]
Phylum: Chordata  [Taxonomy; edit]
Clade: Olfactores  [Taxonomy; edit]
Subphylum: Vertebrata  [Taxonomy; edit]
Infraphylum: Gnathostomata  [Taxonomy; edit]
Clade: Eugnathostomata  [Taxonomy; edit]
Clade: Teleostomi  [Taxonomy; edit]
Superclass: Tetrapoda  [Taxonomy; edit]
Clade: Reptiliomorpha  [Taxonomy; edit]
Clade: Amniota  [Taxonomy; edit]
..... .....
Class: Mammalia /skip  [Taxonomy; edit]
..... .....
Subclass: Theria /skip  [Taxonomy; edit]
Clade: Eutheria  [Taxonomy; edit]
Infraclass: Placentalia  [Taxonomy; edit]
Magnorder: Boreoeutheria  [Taxonomy; edit]
Superorder: Laurasiatheria  [Taxonomy; edit]
Clade: Scrotifera  [Taxonomy; edit]
Grandorder: Ferungulata  [Taxonomy; edit]
Mirorder: Ferae  [Taxonomy; edit]
Clade: Pan-Carnivora  [Taxonomy; edit]
Clade: Carnivoramorpha  [Taxonomy; edit]
Clade: Carnivoraformes  [Taxonomy; edit]
Order: Carnivora  [Taxonomy; edit]
Suborder: Feliformia  [Taxonomy; edit]
Infraorder: Aeluroidea  [Taxonomy; edit]
Superfamily: Feloidea  [Taxonomy; edit]
Family: Felidae  [Taxonomy; edit]
Subfamily: Felinae  [Taxonomy; edit]
Genus: Felis  [Taxonomy; edit]
lua data module experiment wikidata experiment autotaobox reference
no rank or same_as for taxon Wisteria from Wisteria Superdomain: Biota
Superkingdom: Eukaryota
Kingdom: Plantae
Subkingdom: Viridiplantae
Infrakingdom: Streptophyta
Superdivision: Embryophyta
Division: Tracheophyta
Subdivision: Spermatophytes
no value: Angiospermae
no value: mesangiosperms
no value: eudicots
no value: core eudicots
no value: Superrosidae
no value: rosids
no value: fabids
Order: Fabales
Family: Fabaceae
Subfamily: Faboideae
Tribe: Wisterieae
Genus: Wisteria

Bold ranks show taxa that will be shown in taxoboxes
because rank is principal or always_display=yes.

Ancestral taxa
Domain: Eukaryota  [Taxonomy; edit]
Clade: Diaphoretickes  [Taxonomy; edit]
(unranked): Archaeplastida  [Taxonomy; edit]
Kingdom: Plantae  [Taxonomy; edit]
Clade: Streptophyta  [Taxonomy; edit]
Clade: Embryophytes /Plantae  [Taxonomy; edit]
Clade: Polysporangiophytes /Plantae  [Taxonomy; edit]
Clade: Tracheophytes /Plantae  [Taxonomy; edit]
Clade: Spermatophytes /Plantae  [Taxonomy; edit]
Clade: Angiosperms  [Taxonomy; edit]
Clade: Eudicots  [Taxonomy; edit]
Clade: Core eudicots  [Taxonomy; edit]
Clade: Superrosids  [Taxonomy; edit]
Clade: Rosids  [Taxonomy; edit]
Clade: Fabids  [Taxonomy; edit]
Order: Fabales  [Taxonomy; edit]
Family: Fabaceae  [Taxonomy; edit]
Subfamily: Faboideae  [Taxonomy; edit]
Clade: Meso-Papilionoideae  [Taxonomy; edit]
Clade: Non-protein amino acid-accumulating clade  [Taxonomy; edit]
Clade: Hologalegina  [Taxonomy; edit]
Clade: Inverted repeat-lacking clade  [Taxonomy; edit]
Tribe: Wisterieae  [Taxonomy; edit]
Genus: Wisteria  [Taxonomy; edit]