Jump to content

Template:Animal genera table/row/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Creates the a row in a wikitable for use in animal genera lists. The table header and footer can be generated with {{Animal genera table}} and {{Animal genera table/end}}.

Fields

[edit]
  • Required
    • name
    • image
    • authority-name
    • authority-year
    • range
    • size (required unless "no-ecology" is set)
    • habitat (required unless "no-ecology" is set)
    • hunting (required unless "no-ecology" is set)
  • Optional
    • common-name (sets an English term for the genus below the latin name)
    • image-size (sets a width for the image e.g. "160px" to prevent tall images from stretching the table row; defaults to 180px if not set)
    • image-alt (optional but recommended, sets alt-text for the image)
    • authority-not-original (adds parenthesis around the author citation; see Author citation (zoology))
    • species (adds species information below the scientific name; recommended to be a collapsible list if there are eight or more species)
    • range-size (sets a width for the range map image e.g. "160px" to prevent tall images from stretching the table row; defaults to 180px if not set)
    • range-alt (optional but recommended, sets a caption (as alt-text) for the range map image)
    • no-ecology (removes the "Size and ecology" column)
    • single-species (changes pluralization in "Size and ecology" column)

Examples

[edit]

{{Animal genera table |group-name=Felinae |group-type=Subfamily |authority-name=[[Fischer von Waldheim|Waldheim]] |authority-year=1817 |genera-count=one}}

{{Animal genera table/row
|name=[[Catopuma]] |common-name=fake name
|image=File:Asian Golden cat.jpg |image-size=180px |image-alt=Tawny cat facing the viewer
|authority-name=[[Nikolai Severtzov|Severtzov]] |authority-year=1858
|species={{Collapsible list |expand=yes |title=Two species |bullets=on
| ''C. temminckii'' ([[Asian golden cat]], pictured)
| ''C. badia '' ([[Bay cat]])</nowiki></code>
}}
|range=Scattered areas of Southeast Asia |range-image=File:Felinae range.png |range-image-size=180px
|size={{convert|53|cm|in|0|abbr=on}} long, plus {{convert|32|cm|in|0|abbr=on}} tail (Bay cat) to {{convert|105|cm|in|0|abbr=on}} long, plus {{convert|56|cm|in|0|abbr=on}} tail (Asian golden cat)
|habitat=Forest, savanna, grassland, and shrubland
|hunting=Mostly unknown, with evidence of preying on rodents, squirrels, and snakes
}}

{{Animal genera table/end}}

Gives:

Subfamily FelinaeWaldheim, 1817 – one genus
Name Authority and species Range Size and ecology
Catopuma
(fake name)

Tawny cat facing the viewer

Severtzov, 1858

Two species
Scattered areas of Southeast Asia
Map of range
Size range: 53 cm (21 in) long, plus 32 cm (13 in) tail (Bay cat) to 105 cm (41 in) long, plus 56 cm (22 in) tail (Asian golden cat)

Habitats: Forest, savanna, grassland, and shrubland

Diets: Mostly unknown, with evidence of preying on rodents, squirrels, and snakes

single-species

[edit]

With |single-species=yes, the "sizes" and "diets" headings in the Size and ecology column change to be "size" and "diet".

Subfamily FelinaeWaldheim, 1817 – one genus
Name Authority and species Range Size and ecology
Catopuma
(fake name)

Tawny cat facing the viewer

Severtzov, 1858

One species
Scattered areas of Southeast Asia
Map of range
Size: 53 cm (21 in) long, plus 32 cm (13 in) tail

Habitats: Forest, savanna, grassland, and shrubland

Diet: Mostly unknown, with evidence of preying on rodents, squirrels, and snakes

no-ecology

[edit]

With |no-ecology=yes to remove the "Size and ecology" column; this is not standard, but may be useful for articles where all of the species have very similar ecology to remove repetition. Consider also setting "narrow-percent" in the header if the resulting table has too much empty space. A table row is included in this example to demonstrate the result; note that both the header template and each row have to have "no-ecology" set or else the table will be malformed.

{{Animal genera table |group-name=Felinae |group-type=Subfamily |authority-name=[[Fischer von Waldheim|Waldheim]] |authority-year=1817 |genera-count=one |no-ecology=yes}}

{{Animal genera table/row |no-ecology=yes
|name=[[Catopuma]] |common-name=fake name
|image=File:Asian Golden cat.jpg |image-size=180px |image-alt=Tawny cat facing the viewer
|authority-name=[[Nikolai Severtzov|Severtzov]] |authority-year=1858
|species={{Collapsible list |expand=yes |title=Two species |bullets=on
| ''C. temminckii'' ([[Asian golden cat]], pictured)
| ''C. badia '' ([[Bay cat]])</nowiki></code>
}}
|range=Scattered areas of Southeast Asia |range-image=File:Felinae range.png |range-image-size=180px
}}

{{Animal genera table/end}}

Gives:

Subfamily FelinaeWaldheim, 1817 – one genus
Name Authority and species Range
Catopuma
(fake name)

Tawny cat facing the viewer

Severtzov, 1858

Two species
Scattered areas of Southeast Asia
Map of range


See also

[edit]