Module talk:Sandbox/trappist the monk/taxonomy
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 119,019+ 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:
- Category:Taxonomy templates
- Category:Taxonomy templates for species
- Category:Taxonomy templates with qualified names
- Category:Taxonomy templates with query
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?
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:
|
{{Don't edit this line {{{machine code|}}} |same_as= |parent= |rank= |link= |extinct= |always_display= |refs= }} |
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 no value: Amorphea no value: Obazoa no value: Opisthokonta Superkingdom: Holozoa no value: Filozoa no value: Apoikozoa Kingdom: Animalia Subkingdom: Eumetazoa Subkingdom: Bilateria no value: Nephrozoa Superphylum: Deuterostomia Phylum: Chordata Subphylum: Vertebrata Infraphylum: Gnathostomata no value: Eugnathostomata Megaclass: Osteichthyes Superclass: Sarcopterygii no value: Dipnotetrapodomorpha no value: Tetrapodomorpha no value: Eotetrapodiformes Infraclass: Elpistostegalia no value: Stegocephalia Superclass: Tetrapoda no value: Reptiliomorpha no value: Amniota no value: Synapsida no value: Eupelycosauria no value: Metopophora no value: Haptodontiformes no value: Sphenacomorpha no value: Sphenacodontia no value: Pantherapsida no value: Sphenacodontoidea no value: Therapsida no value: Theriodontia no value: Eutheriodontia no value: Cynodontia no value: Epicynodontia no value: Eucynodontia no value: Probainognathia no value: Prozostrodontia no value: Mammaliamorpha no value: Mammaliaformes Class: Mammalia no value: Theriamorpha Subclass: Theriiformes Superlegion: Trechnotheria no value: Cladotheria no value: Prototribosphenida no value: Zatheria Infralegion: Boreosphenida Subclass: Theria no value: Eutheria Infraclass: Placentalia Magnorder: Boreoeutheria Superorder: Laurasiatheria no value: Scrotifera Grandorder: Ferungulata Mirorder: Ferae Clade: Pan-Carnivora Clade: Carnivoramorpha Clade: Carnivoraformes Order: Carnivora Suborder: Feliformia Infraorder: Aeluroidea Superfamily: Feloidea Family: Felidae Subfamily: Felinae Genus: Felis |
Bold ranks show taxa that will be shown in taxoboxes |
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: Embryophytes Division: Tracheophytes Subdivision: Spermatophytes no value: Angiosperms no value: mesangiosperms no value: eudicots no value: core eudicots no value: Superrosids no value: rosids no value: Eurosids no value: fabids Order: Fabales Family: Fabaceae Subfamily: Faboideae Tribe: Wisterieae Genus: Wisteria |
Bold ranks show taxa that will be shown in taxoboxes
|
Start a discussion about improving the Module:Sandbox/trappist the monk/taxonomy page
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Module:Sandbox/trappist the monk/taxonomy" page.