Template:Taxobox/core: Difference between revisions
Telupedia>Maxisnt m 1 revision imported |
add handling for audio file and audio caption (with associated parameters used for images, which may not be necessary). See discussion at Template_talk:Automatic_taxobox |
||
| Line 1: | Line 1: | ||
{| class="infobox biota" style="text-align: left; width: 200px; font-size: 100%" | {| class="infobox biota" style="text-align: left; width: 200px; font-size: 100%" | ||
|- | |- | ||
! colspan=2 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}}| }}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}{{#if:{{{temporal_range|}}}|<br/><div style="font-size: 85%;">Temporal range: {{{temporal_range}}}</div>}} | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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|}}}| | ||
| Line 19: | Line 19: | ||
}} | }} | ||
}} | }} | ||
|- style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" | |- style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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|}}}|colour={{{colour|}}} }} }} | ||
|-{{#if:{{{status2|}}}|{{taxobox/species|{{{status2_system|}}}|{{{status2|}}}|{{{status2_ref|}}}|extinction_date={{{extinct|}}} }} }} | |-{{#if:{{{status2|}}}|{{taxobox/species|{{{status2_system|}}}|{{{status2|}}}|{{{status2_ref|}}}|extinction_date={{{extinct|}}}|colour={{{colour|}}}|number=2 }} }} | ||
|-{{#if:{{{status3}}}|{{taxobox/species|{{{status3_system|}}}|{{{status3|}}}|{{{status3_ref|}}}|extinction_date={{{extinct|}}}|colour={{{colour|}}}|number=3 }} }} | |||
|- | |- | ||
! colspan=2 style="min-width:15em; text-align: center{{#if:{{{colour|}}}|{{;}} 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> | }} | ! colspan=2 style="color:inherit; min-width:15em; text-align: center{{#if:{{{colour|}}}|{{;}} 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|}}}| ggggparent_authority={{{greatgreatgreatgrandparent_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}}} }} | ||
| Line 140: | Line 141: | ||
|- | |- | ||
{{#if:{{{binomial|}}}| | {{#if:{{{binomial|}}}| | ||
! colspan=2 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Binomial nomenclature|Binomial name]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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> | ||
}} | }} | ||
|- style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" | |- style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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)|Trinomial nomenclature}}|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)|Trinomial nomenclature}}|Trinomial name]] | ||
| Line 152: | Line 153: | ||
|- | |- | ||
{{#if:{{{type_genus|}}}| | {{#if:{{{type_genus|}}}| | ||
! colspan=2 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour|}}} }}"{{!}} [[Type genus]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour|}}} }}"{{!}} [[Type genus]]{{{type_genus_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour|}}} }}"{{!}} [[Type genus|Type ichnogenus]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour|}}} }}"{{!}} [[Type genus|Type ichnogenus]]{{{type_ichnogenus_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour|}}} }}"{{!}} [[Type genus|Type oogenus]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour|}}} }}"{{!}} [[Type genus|Type oogenus]]{{{type_oogenus_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type species]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type species]]{{{type_species_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type species|Type ichnospecies]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type species|Type ichnospecies]]{{{type_ichnospecies_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type species|Type oospecies]] | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type species|Type oospecies]]{{{type_oospecies_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type strain]]{{#if:{{{type_strain_ref|}}}|{{{type_strain_ref}}}|}} | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Type strain]]{{#if:{{{type_strain_ref|}}}|{{{type_strain_ref}}}|}} | ||
{{!}}- | {{!}}- | ||
{{!}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} {{{subdivision_ranks}}}{{{subdivision_ref|}}} | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} {{{possible_subdivision_ranks}}} | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Biodiversity|Diversity]]{{{diversity_ref|}}} {{#ifeq: {{NAMESPACEE}} | {{ns:0}} | [[Category:Articles using diversity taxobox]] | }} | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} 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 270: | Line 271: | ||
|- | |- | ||
{{#if:{{{synonyms|}}}| | {{#if:{{{synonyms|}}}| | ||
! colspan=2 style="text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Synonym (taxonomy)|Synonyms]]{{{synonyms_ref|}}} | ! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[Synonym (taxonomy)|Synonyms]]{{{synonyms_ref|}}} | ||
{{!}}- | {{!}}- | ||
{{!}} colspan=2 style="text-align: left" {{!}} | {{!}} colspan=2 style="text-align: left" {{!}} | ||
{{{synonyms}}} | {{{synonyms}}} | ||
{{!}}- | |||
}} | |||
{{#if:{{{audio|}}}| | |||
! colspan=2 style="color:inherit; text-align: center{{#if:{{{colour|}}}|{{;}} background-color: {{{colour}}} }}" {{!}} [[List of animal sounds|Audio]]{{{audio_ref|}}} | |||
{{!}}- | |||
{{!}} colspan=2 style="text-align: center" {{!}} {{#invoke:InfoboxImage|InfoboxImage|image={{{audio}}}|size={{{audio_width|}}}|sizedefault=frameless|upright={{{audio_upright|}}} |alt={{{audio_alt|}}}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{audio_caption|}}}| | |||
{{!}} colspan=2 style="text-align: {{{audio_caption_align|center}}}; font-size: 88%" {{!}} {{{audio_caption}}} | |||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 282: | Line 293: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
|}<!-- | |}<templatestyles src="Template:Taxobox/core/styles.css" /><!-- | ||
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 07:14, 1 June 2026
| Taxobox/core | |
|---|---|
| Scientific classification |
File:Test Template Info-Icon - Version (2).svg Template documentationcreatepurge