Template:Taxobox/core and Template:Taxobox/core/sandbox: Difference between pages
(Difference between pages)
Content deleted Content added
200,603 edits updated to tested sandbox version – parameter name in Template:Taxobox/species changed |
Undo |
||
Line 1: | Line 1: | ||
<templatestyles src="Taxobox/styles.css" /><div role="complementary" aria-label="Taxonomy" class="infobox taxobox {{{palette|}}} biota"> |
|||
{| class="infobox biota" style="text-align: left; width: 200px; font-size: 100%" |
|||
{| role="presentation" |
|||
|- |
|- |
||
| colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}{{#if:{{{temporal_range|}}}|<br/><div style="font-size: 85%;">Temporal range: {{{temporal_range}}}</div>}} |
|||
|- |
|- |
||
{{#if:{{{image|}}}| |
{{#if:{{{image|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-image" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{image_width|}}}|sizedefault=frameless|upright={{{upright|1}}}|alt={{{image_alt|}}}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{image_caption|}}}| |
{{#if:{{{image_caption|}}}| |
||
{{!}} colspan=2 style="text-align: {{{image_caption_align |
{{!}} colspan=2 class="taxobox-caption" {{#if:{{{image_caption_align|}}}|style="text-align: {{{image_caption_align}}};"}} {{!}} {{{image_caption}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
}} |
}} |
||
{{#if:{{{image2|}}}| |
{{#if:{{{image2|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-image" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2}}}|size={{{image2_width|}}}|sizedefault=frameless|upright={{#if:{{{upright2|}}}|{{{upright2}}}|{{{upright|1}}}}}|alt={{{image2_alt|}}}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{image2_caption|}}}| |
{{#if:{{{image2_caption|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-caption" {{!}} {{{image2_caption}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
}} |
}} |
||
|- |
|- class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} |
||
{{#if:{{{status|}}}|{{taxobox/species|{{{status_system|}}}|{{{status|}}}|{{{status_ref|}}}|extinction_date={{{extinct|}}} }} }} |
{{#if:{{{status|}}}|{{taxobox/species|{{{status_system|}}}|{{{status|}}}|{{{status_ref|}}}|extinction_date={{{extinct|}}} }} }} |
||
|-{{#if:{{{status2|}}}|{{taxobox/species|{{{status2_system|}}}|{{{status2|}}}|{{{status2_ref|}}}|extinction_date={{{extinct|}}} }} }} |
|-{{#if:{{{status2|}}}|{{taxobox/species|{{{status2_system|}}}|{{{status2|}}}|{{{status2_ref|}}}|extinction_date={{{extinct|}}} }} }} |
||
|- |
|- |
||
| colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} | {{#if:{{{virus_group|{{{virus|}}}}}}|[[Virus classification]]|{{#if:{{{ichnos|}}}|[[Trace fossil classification]]|{{#if:{{{veterovata|}}}|[[Egg fossil#Classification|Egg fossil classification]]|[[Taxonomy (biology)|Scientific classification]]}} }} }} {{#if:{{{edit link|}}}|{{edit taxonomy|{{{parent|}}} | {{{edit link}}} }} }}{{#if: {{{classification_status|}}} | <br/><span style="font-weight:normal">({{{classification_status}}})</span> | }} |
|||
|- |
|- |
||
{{#if:{{{parent|}}}|{{#invoke:Autotaxobox|taxoboxList|{{{parent}}}| display_taxa={{{display_taxa|1}}}| authority={{{authority|}}}| parent_authority={{{parent_authority|}}}| gparent_authority={{{grandparent_authority|}}}| ggparent_authority={{{greatgrandparent_authority|}}}| gggparent_authority={{{greatgreatgrandparent_authority|}}}| offset={{{offset|0}}}| bold_first={{{bold_first|{{#if:{{{species|}}}|link|bold}}}}}| virus={{{virus|no}}}}}}} |
{{#if:{{{parent|}}}|{{#invoke:Autotaxobox|taxoboxList|{{{parent}}}| display_taxa={{{display_taxa|1}}}| authority={{{authority|}}}| parent_authority={{{parent_authority|}}}| gparent_authority={{{grandparent_authority|}}}| ggparent_authority={{{greatgrandparent_authority|}}}| gggparent_authority={{{greatgreatgrandparent_authority|}}}| offset={{{offset|0}}}| bold_first={{{bold_first|{{#if:{{{species|}}}|link|bold}}}}}| virus={{{virus|no}}}}}}} |
||
{{#if:{{{virus_group|}}}|{{taxonomy|rank=group |
{{#if:{{{virus_group|}}}|{{taxonomy|rank=group |
||
|link= {{#switch:{{lc:{{{virus_group}}} }} |
|link= {{#switch:{{lc:{{{virus_group}}} }} |
||
|i=Group I < |
|i=Group I <span class="taxobox-note">([[dsDNA virus|dsDNA]])</span> |
||
|ii=Group II < |
|ii=Group II <span class="taxobox-note">([[ssDNA virus|ssDNA]])</span> |
||
|iii=Group III < |
|iii=Group III <span class="taxobox-note">([[Double-stranded RNA viruses|dsRNA]])</span> |
||
|iv=Group IV < |
|iv=Group IV <span class="taxobox-note">([[Positive-sense single-stranded RNA virus|(+)ssRNA]])</span> |
||
|v=Group V < |
|v=Group V <span class="taxobox-note">([[Negative-sense single-stranded RNA virus|(−)ssRNA]])</span> |
||
|vi=Group VI < |
|vi=Group VI <span class="taxobox-note">([[ssRNA-RT virus|ssRNA-RT]])</span> |
||
|vi/vii=Groups VI and VII |
|vi/vii=Groups VI and VII |
||
|vii=Group VII < |
|vii=Group VII <span class="taxobox-note">([[dsDNA-RT virus|dsDNA-RT]])</span> |
||
|{{{virus_group}}} |
|{{{virus_group}}} |
||
Line 140: | Line 141: | ||
|- |
|- |
||
{{#if:{{{binomial|}}}| |
{{#if:{{{binomial|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Binomial nomenclature|Binomial name]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} <b><span class="binomial">{{{binomial}}}</span></b><br/><div style="font-size: 85%;">{{{binomial_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} <b><span class="binomial">{{{binomial}}}</span></b><br/><div style="font-size: 85%;">{{{binomial_authority|}}}</div> |
||
}} |
}} |
||
|- |
|- class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} |
||
{{#if:{{{trinomial|}}}| |
{{#if:{{{trinomial|}}}| |
||
! colspan=2 style="text-align: center" {{!}} [[{{#switch:{{{regnum|}}}|[[Animalia]]|[[Animal]]ia|Animalia=Trinomen|[[Plantae]]|[[Plant]]ae|Plantae|[[Fungi]]|[[Fungus|Fungi]]|Fungi|[[Archaeplastida]]|Archaeplastida=Infraspecific name (botany)|Trinomen}}|Trinomial name]] |
{{!}} colspan=2 style="text-align: center" {{!}} [[{{#switch:{{{regnum|}}}|[[Animalia]]|[[Animal]]ia|Animalia=Trinomen|[[Plantae]]|[[Plant]]ae|Plantae|[[Fungi]]|[[Fungus|Fungi]]|Fungi|[[Archaeplastida]]|Archaeplastida=Infraspecific name (botany)|Trinomen}}|Trinomial name]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} <b><span class="trinomial">{{{trinomial}}}</span></b><br/><div style="font-size: 85%;">{{{trinomial_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} <b><span class="trinomial">{{{trinomial}}}</span></b><br/><div style="font-size: 85%;">{{{trinomial_authority|}}}</div> |
||
Line 152: | Line 153: | ||
|- |
|- |
||
{{#if:{{{type_genus|}}}| |
{{#if:{{{type_genus|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type genus]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_genus}}}<br/><div style="font-size: 85%;">{{{type_genus_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_genus}}}<br/><div style="font-size: 85%;">{{{type_genus_authority|}}}</div> |
||
Line 158: | Line 159: | ||
|- |
|- |
||
{{#if:{{{type_ichnogenus|}}}| |
{{#if:{{{type_ichnogenus|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type genus|Type ichnogenus]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_ichnogenus}}}<br/><div style="font-size: 85%;">{{{type_ichnogenus_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_ichnogenus}}}<br/><div style="font-size: 85%;">{{{type_ichnogenus_authority|}}}</div> |
||
Line 164: | Line 165: | ||
|- |
|- |
||
{{#if:{{{type_oogenus|}}}| |
{{#if:{{{type_oogenus|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type genus|Type oogenus]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_oogenus}}}<br/><div style="font-size: 85%;">{{{type_oogenus_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_oogenus}}}<br/><div style="font-size: 85%;">{{{type_oogenus_authority|}}}</div> |
||
Line 170: | Line 171: | ||
|- |
|- |
||
{{#if:{{{type_species|}}}| |
{{#if:{{{type_species|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type species]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_species}}}<br/><div style="font-size: 85%;">{{{type_species_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_species}}}<br/><div style="font-size: 85%;">{{{type_species_authority|}}}</div> |
||
Line 176: | Line 177: | ||
|- |
|- |
||
{{#if:{{{type_ichnospecies|}}}| |
{{#if:{{{type_ichnospecies|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type species|Type ichnospecies]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_ichnospecies}}}<br/><div style="font-size: 85%;">{{{type_ichnospecies_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_ichnospecies}}}<br/><div style="font-size: 85%;">{{{type_ichnospecies_authority|}}}</div> |
||
Line 182: | Line 183: | ||
|- |
|- |
||
{{#if:{{{type_oospecies|}}}| |
{{#if:{{{type_oospecies|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type species|Type oospecies]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_oospecies}}}<br/><div style="font-size: 85%;">{{{type_oospecies_authority|}}}</div> |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_oospecies}}}<br/><div style="font-size: 85%;">{{{type_oospecies_authority|}}}</div> |
||
Line 188: | Line 189: | ||
|- |
|- |
||
{{#if:{{{type_strain|}}}| |
{{#if:{{{type_strain|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Type strain]] |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_strain}}} |
{{!}} colspan=2 style="text-align: center" {{!}} {{{type_strain}}} |
||
Line 194: | Line 195: | ||
|- |
|- |
||
{{#if:{{{subdivision|}}}| |
{{#if:{{{subdivision|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} {{{subdivision_ranks}}}{{{subdivision_ref|}}} |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: left" {{!}} |
{{!}} colspan=2 style="text-align: left" {{!}} |
||
Line 201: | Line 202: | ||
|- |
|- |
||
{{#if:{{{possible_subdivision|}}}| |
{{#if:{{{possible_subdivision|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} {{{possible_subdivision_ranks}}} |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: left" {{!}} |
{{!}} colspan=2 style="text-align: left" {{!}} |
||
Line 208: | Line 209: | ||
|- |
|- |
||
{{#if:{{{diversity|}}}| |
{{#if:{{{diversity|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Biodiversity|Diversity]]{{{diversity_ref|}}} {{#ifeq: {{NAMESPACEE}} | {{ns:0}} | [[Category:Articles using diversity taxobox]] | }} |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: center" {{!}} {{#if:{{{diversity_link|}}}|[[{{{diversity_link|}}}|{{{diversity|}}}]]|{{{diversity|}}}}} |
{{!}} colspan=2 style="text-align: center" {{!}} {{#if:{{{diversity_link|}}}|[[{{{diversity_link|}}}|{{{diversity|}}}]]|{{{diversity|}}}}} |
||
Line 214: | Line 215: | ||
}} |
}} |
||
{{#if:{{{range_map|}}}| |
{{#if:{{{range_map|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-image" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{range_map}}}|size={{{range_map_width|}}}|sizedefault=frameless|upright={{#if:{{{range_map_upright|}}}|{{{range_map_upright}}}|{{{upright|1}}}}}|alt={{{range_map_alt|}}}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{range_map_caption|}}}| |
{{#if:{{{range_map_caption|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-caption" {{!}} {{{range_map_caption}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 230: | Line 231: | ||
}} |
}} |
||
{{#if:{{{range_map2|}}}| |
{{#if:{{{range_map2|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-image" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{range_map2}}}|size={{{range_map2_width|}}}|sizedefault=frameless|upright={{#if:{{{range_map2_upright|}}}|{{{range_map2_upright}}}|{{{upright|1}}}}}|alt={{{range_map2_alt|}}}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{range_map2_caption|}}}| |
{{#if:{{{range_map2_caption|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-caption" {{!}} {{{range_map2_caption}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 246: | Line 247: | ||
}} |
}} |
||
{{#if:{{{range_map3|}}}| |
{{#if:{{{range_map3|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-image" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{range_map3}}}|size={{{range_map3_width|}}}|sizedefault=frameless|upright={{#if:{{{range_map3_upright|}}}|{{{range_map3_upright}}}|{{{upright|1}}}}}|alt={{{range_map3_alt|}}}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{range_map3_caption|}}}| |
{{#if:{{{range_map3_caption|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-caption" {{!}} {{{range_map3_caption}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 262: | Line 263: | ||
}} |
}} |
||
{{#if:{{{range_map4|}}}| |
{{#if:{{{range_map4|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-image" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{range_map4}}}|size={{{range_map4_width|}}}|sizedefault=frameless|upright={{#if:{{{range_map4_upright|}}}|{{{range_map4_upright}}}|{{{upright|1}}}}}|alt={{{range_map4_alt|}}}}} |
||
{{!}}- |
{{!}}- |
||
{{#if:{{{range_map4_caption|}}}| |
{{#if:{{{range_map4_caption|}}}| |
||
{{!}} colspan=2 |
{{!}} colspan=2 class="taxobox-caption" {{!}} {{{range_map4_caption}}} |
||
}} |
}} |
||
}} |
}} |
||
|- |
|- |
||
{{#if:{{{synonyms|}}}| |
{{#if:{{{synonyms|}}}| |
||
! colspan=2 |
{{!}} colspan=2 class="taxobox-heading" {{#if:{{{colour|}}}|style="background-color: {{{colour}}}"}} {{!}} [[Synonym (taxonomy)|Synonyms]]{{{synonyms_ref|}}} |
||
{{!}}- |
{{!}}- |
||
{{!}} colspan=2 style="text-align: left" {{!}} |
{{!}} colspan=2 style="text-align: left" {{!}} |
||
Line 282: | Line 283: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
|} |
|} |
||
</div><!-- |
|||
Define any categories to be displayed on the page here: |
Define any categories to be displayed on the page here: |
||
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!-- |
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}<!-- |
Revision as of 11:36, 24 January 2022
Taxobox/core/sandbox | |
Scientific classification |
This is the template sandbox page for Template:Taxobox/core (diff). .See also the companion subpage for test cases |
This template uses TemplateStyles: |
This template uses Lua: |
Usage
This core template should never be used directly. It is called by {{Taxobox}}
and templates in the automated taxobox system – {{Automatic taxobox}}
, {{Speciesbox}}
, {{Subspeciesbox}}
, {{Infraspeciesbox}}
, {{Hybridbox}}
, {{Ichnobox}}
, {{Oobox}}
and {{Virusbox}}
. It produces the taxobox output.
Parameters
Parameters, on the whole, are the same as in {{Taxobox}}
.
There are a couple of extras:
|edit link=
: If specified, will display a link to allow the automated taxonomy pertaining to the taxon to be edited, generated by{{Edit taxonomy}}
. The value will be displayed as the link text, in the "Scientific classification" cell.|parent=
: If specified, causes the template to display the automated taxonomy stored in taxonomy templates.
Supporting templates
Tracking categories
Hidden categories added by this template:
- Category:Articles using diversity taxobox (1,806)
- Category:Articles with 'species' microformats (467,084)
- Category:Taxobox articles missing a taxonbar (0)
- Category:Taxobox articles possibly missing a taxonbar (0)