Jump to content

Module:TaxonItalics/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Peter coxhead (talk | contribs) at 10:36, 23 August 2018 (Examples: sigh... correctly this time). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Module:TaxonItalics (talk · edit · hist · links · doc · subpages · sandbox · testcases)

Purpose

The purpose of this module is to correctly italicize scientific names at the rank of genus or below. Botanical (ICNafp) names may contain "connecting terms"; these must not be italicized. The hybrid symbol, ×, should also not be italicized.

The module does not deal with virus names, which have quite different structures and italicization rules.

Usage

{{#invoke:TaxonItalics|main|TAXON_NAME}}

Examples

Connecting terms:

  • Pinus subg. Pinus → Pinus subg. Pinus
  • P. subgenus Pinus → P. subg. Pinus
  • P. subsect. Pinaster → P. subsect. Pinaster
  • Acer tataricum subsp. ginnala → Acer tataricum subsp. ginnala
  • Aster ericoides var. ericoides → Aster ericoides var. ericoides
  • A. ericoides varietas ericoides → A. ericoides var. ericoides
  • A. e. subvar. ericoides → A. e. subvar. ericoides

Botanical names may contain only one infraspecific epithet; a string like "Fragaria vesca subsp. vesca f. semperflorens" is a classification, not a name, and is not handled by the module.

Hybrid symbols:

  • Elaeagnus × submacrophylla → Elaeagnus × submacrophylla
  • ×Beallara → ×Beallara
  • × Beallara → × Beallara
  • {{hybrid}}Beallara → ×Beallara

For even more examples, see the testcases.