Difference between revisions of "Module:TaxonItalics/doc"
Jump to navigation
Jump to search
blackwiki>Peter coxhead (→Usage: more) |
blackwiki>Peter coxhead (→Examples: linked example) |
||
| Line 38: | Line 38: | ||
* × Beallara → {{#invoke:TaxonItalics|main|× Beallara}} | * × Beallara → {{#invoke:TaxonItalics|main|× Beallara}} | ||
* <nowiki>{{hybrid}}</nowiki>Beallara → {{#invoke:TaxonItalics|main|{{hybrid}}Beallara}} | * <nowiki>{{hybrid}}</nowiki>Beallara → {{#invoke:TaxonItalics|main|{{hybrid}}Beallara}} | ||
| + | |||
| + | Linked via {{para|linked|yes}}: | ||
| + | * Elaeagnus × submacrophylla → {{#invoke:TaxonItalics|main|Elaeagnus × submacrophylla|linked=yes}} | ||
For even more examples, see the [[Module talk:TaxonItalics/testcases|testcases]]. | For even more examples, see the [[Module talk:TaxonItalics/testcases|testcases]]. | ||
Revision as of 10:50, 23 August 2018
Module:TaxonItalics Template:Toolbar
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}} – italicizes a taxon name
- {{#invoke:TaxonItalics|main|TAXON_NAME|abbreviated=yes}} – italicizes a taxon name, abbreviating all but the last part to the first letter
- {{#invoke:TaxonItalics|main|TAXON_NAME|linked=yes}} – italicizes a taxon name, wikilinking the italicized output to the unchanged input
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 via |linked=yes:
- Elaeagnus × submacrophylla → Elaeagnus × submacrophylla
For even more examples, see the testcases.