Difference between revisions of "Module:TaxonItalics/doc"
Jump to navigation
Jump to search
blackwiki>Peter coxhead (→Abbreviated: example that doesn't work) |
blackwiki>Peter coxhead (→Purpose: note on abbreviation and linking) |
||
| Line 11: | Line 11: | ||
}} | }} | ||
==Purpose== | ==Purpose== | ||
| − | The purpose of this module is to correctly italicize scientific names at the rank of genus or below. Botanical ([[International Code of Nomenclature for algae, fungi, and plants|ICNafp]]) names may contain "connecting terms"; these must not be italicized. The hybrid symbol, ×, should also not be italicized. | + | The purpose of this module is to correctly italicize scientific names at the rank of genus or below. Botanical ([[International Code of Nomenclature for algae, fungi, and plants|ICNafp]]) names may contain "connecting terms"; these must not be italicized. The hybrid symbol, ×, should also not be italicized. The italicized names may also be wikilinked and abbreviated. |
The module does <em>not</em> deal with virus names, which have quite different structures and italicization rules. | The module does <em>not</em> deal with virus names, which have quite different structures and italicization rules. | ||
Revision as of 11:24, 23 August 2018
Module:TaxonItalics Template:Toolbar
Contents
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 italicized names may also be wikilinked and abbreviated.
The module does not deal with virus names, which have quite different structures and italicization rules.
Usage
- {{#invoke:TaxonItalics|main|TAXON_NAME}} – italicizes a taxon name
- {{#invoke:TaxonItalics|main|TAXON_NAME|linked=yes}} – italicizes a taxon name, wikilinking the italicized output to the unchanged input
- {{#invoke:TaxonItalics|main|TAXON_NAME|abbreviated=yes}} – italicizes a taxon name, abbreviating all but the last part to the first letter
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
Linked
Using |linked=yes
- Populus sect. Aigeiros → Populus sect. Aigeiros
- Elaeagnus × submacrophylla → Elaeagnus × submacrophylla
Abbreviated
Using |abbreviated=yes
- Populus sect. Aigeiros → P. sect. Aigeiros
- Acer tataricum subsp. ginnala → A. t. subsp. ginnala
- [also linked] × Sorbaronia mitschurinii → × S. mitschurinii
- [also linked] Elaeagnus × submacrophylla → E. × submacrophylla
- Elaeagnus ×submacrophylla → E. ×submacrophylla
- Elaeagnus {{hybrid}} submacrophylla → E. × submacrophylla – abbreviating does not work correctly when the hybrid template is used; replace by ×, × or some other non-template equivalent
For even more examples, see the testcases.