Content deleted Content added
m →Examples: subheading |
category |
||
(10 intermediate revisions by the same user not shown) | |||
Line 10:
| 8 = [[Module talk:TaxonItalics/testcases|testcases]]
}}
{{high risk|439099}}
==Purpose==
The
For non-virus taxa, italics are used at the rank of genus or below. The module does not decide whether a scientific name should be italicized. Use {{tlx|Is italic taxon}} for this purpose.
==Usage==
* <nowiki>{{#invoke:TaxonItalics|main|TAXON_NAME}}</nowiki> – italicizes a taxon name
* <nowiki>{{#invoke:TaxonItalics|main|TAXON_NAME|linked=yes}}</nowiki> – italicizes a taxon name, wikilinking the italicized output to the unchanged input
* <nowiki>{{#invoke:TaxonItalics|main|TAXON_NAME|abbreviated=yes}}</nowiki> – italicizes a taxon name, abbreviating all but the last part to the first letter
* <nowiki>{{#invoke:TaxonItalics|main|TAXON_NAME|dab=yes}}</nowiki> – italicizes a taxon name, treating any parenthesized part as a disambiguation term, and not italicizing it
The parameters can be combined. It can also be used via {{tl|Taxon italics}}.
==Examples==
Line 48 ⟶ 51:
* Populus sect. Aigeiros → {{#invoke:TaxonItalics|main|Populus sect. Aigeiros|abbreviated=yes}}
* Acer tataricum subsp. ginnala → {{#invoke:TaxonItalics|main|Acer tataricum subsp. ginnala|abbreviated=yes}}
* [also linked] × Sorbaronia
* [also linked] Elaeagnus × submacrophylla → {{#invoke:TaxonItalics|main|Elaeagnus × submacrophylla|abbreviated=yes|linked=yes}}
* Elaeagnus ×submacrophylla → {{#invoke:TaxonItalics|main|Elaeagnus ×submacrophylla|abbreviated=yes}}
* Elaeagnus <nowiki>{{hybrid}}</nowiki> submacrophylla →
===Disambiguation terms===
By default, a parenthesized part of a taxon name is assumed to be a subgenus name, and is italicized:
* Varanus (Hapturosaurus) → {{#invoke:TaxonItalics|main|Varanus (Hapturosaurus)}}
* Caia (plant) → {{#invoke:TaxonItalics|main|Caia (plant)}} – {{red|wrong}}
To treat a parenthesized part as a disambiguation term, use {{para|dab|yes}}
* Caia (plant) → {{#invoke:TaxonItalics|main|Caia (plant)|dab=yes}}
* (also linked) Caia (plant) → {{#invoke:TaxonItalics|main|Caia (plant)|linked=yes|dab=yes}}
For even more examples, see the [[Module talk:TaxonItalics/testcases|testcases]].
Line 57 ⟶ 68:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Taxobox templates]]
}}</includeonly>
|