Template:Animal genera table/row/doc
![]() | This is a documentation subpage for Template:Animal genera table/row. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
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
- 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
<syntaxhighlight lang="wikitext" inline>
Name | Authority and species | Range | Size and ecology</syntaxhighlight>
<syntaxhighlight lang="wikitext">|- |
Catopuma (fake name) |
Severtzov, 1858
Two species
|
Scattered areas of Southeast Asia![]() |
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</syntaxhighlight> <syntaxhighlight lang="wikitext" inline> |
---|
</syntaxhighlight>
Gives:
Name | Authority and species | Range | Size and ecology |
---|---|---|---|
Catopuma (fake name) |
Severtzov, 1858
Two species
|
Scattered areas of Southeast Asia![]() |
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
With <syntaxhighlight lang="wikitext" inline>|single-species=yes</syntaxhighlight>, the "sizes" and "diets" headings in the Size and ecology column change to be "size" and "diet".
Name | Authority and species | Range | Size and ecology |
---|---|---|---|
Catopuma (fake name) |
Severtzov, 1858
One species
|
Scattered areas of Southeast Asia![]() |
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
With <syntaxhighlight lang="wikitext" inline>|no-ecology=yes</syntaxhighlight> 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.
<syntaxhighlight lang="wikitext" inline>
Name | Authority and species | Range
</syntaxhighlight> <syntaxhighlight lang="wikitext">|- |
Catopuma (fake name) |
Severtzov, 1858
Two species
|
Scattered areas of Southeast Asia![]() </syntaxhighlight> <syntaxhighlight lang="wikitext" inline> |
---|
</syntaxhighlight>
Gives:
Name | Authority and species | Range |
---|---|---|
Catopuma (fake name) |
Severtzov, 1858
Two species
|
Scattered areas of Southeast Asia![]()
|
See also