Module talk:TaxonItalics/moretestcases
Appearance
See also Module talk:TaxonItalics/testcases.
- Issues
- By default, a parenthesized part of a taxon name is assumed to be a subgenus, and so is italicized. This is correct for Mus (Mus), but not for Mus (subgenus). The disambiguation term can be left unitalicized by using
|dab=yes
. Can these two cases be distinguished automatically? - "Quoted" genus names are not handled correctly. In "Dryosaurus" grandis and "D." grandis, the double quote marks should ideally not be italicized.
- What about
{{#invoke:TaxonItalics|main|Felis|abbreviated=yes|linked=no}}
→ Felis – doesn't abbreviate unless it appears to be a binomial.
input | live | sandbox |
---|---|---|
{{#invoke:TaxonItalics|main|Acer tataricum subsp. ginnala}} | Acer tataricum subsp. ginnala | Acer tataricum subsp. ginnala |
{{#invoke:TaxonItalics|main|Pinus subg. Pinus}} | Pinus subg. Pinus | Pinus subg. Pinus |
{{#invoke:TaxonItalics|main|Pinus subgenus Pinus}} | Pinus subg. Pinus | Pinus subg. Pinus |
{{#invoke:TaxonItalics|main|P. subg. Pinus}} | P. subg. Pinus | P. subg. Pinus |
{{#invoke:TaxonItalics|main|Pinus sect. Pinus}} | Pinus sect. Pinus | Pinus sect. Pinus |
{{#invoke:TaxonItalics|main|Pinus section Pinus}} | Pinus sect. Pinus | Pinus sect. Pinus |
{{#invoke:TaxonItalics|main|P. sect. Pinus}} | P. sect. Pinus | P. sect. Pinus |
{{#invoke:TaxonItalics|main|Pinus subsect. Pinus}} | Pinus subsect. Pinus | Pinus subsect. Pinus |
{{#invoke:TaxonItalics|main|Quercus series Virentes}} | Quercus ser. Virentes | Quercus ser. Virentes |
{{#invoke:TaxonItalics|main|Banksia subser. Banksia}} | Banksia subser. Banksia | Banksia subser. Banksia |
{{#invoke:TaxonItalics|main|Banksia subseries Banksia}} | Banksia subser. Banksia | Banksia subser. Banksia |
{{#invoke:TaxonItalics|main|Acer tataricum subsp. ginnala}} | Acer tataricum subsp. ginnala | Acer tataricum subsp. ginnala |
{{#invoke:TaxonItalics|main|Aster ericoides var. ericoides}} | Aster ericoides var. ericoides | Aster ericoides var. ericoides |
{{#invoke:TaxonItalics|main|A. ericoides varietas ericoides}} | A. ericoides var. ericoides | A. ericoides var. ericoides |
{{#invoke:TaxonItalics|main|A. e. subvar. ericoides}} | A. e. subvar. ericoides | A. e. subvar. ericoides |
{{#invoke:TaxonItalics|main|Pinus}} | Pinus | Pinus |
{{#invoke:TaxonItalics|main|Mus (Mus)|linked=yes}} | Mus (Mus) | Mus (Mus) |
{{#invoke:TaxonItalics|main|Caia (plant)|abbreviated=no|linked=yes|dab=yes}} | Caia (plant) | Caia (plant) |
{{#invoke:TaxonItalics|main|Bunyavirales|linked=yes}} | Bunyavirales | Bunyavirales |
{{#invoke:TaxonItalics|main|Acer tataricum subsp. ginnala|abbreviated=yes}} | A. t. subsp. ginnala | A. t. subsp. ginnala |
{{#invoke:TaxonItalics|main|Acer tataricum subsp. ginnala|abbreviated=yes|linked=yes}} | A. t. subsp. ginnala | A. t. subsp. ginnala |
{{#invoke:TaxonItalics|main|"Dryosaurus" grandis|abbreviated=yes|linked=yes}} | "D." grandis | "D." grandis |
Has internal italic markup – remove and process as if absent | ||
{{#invoke:TaxonItalics|main|Pinus ''subg.'' Pinus}} | Pinus subg. Pinus | Pinus subg. Pinus |
{{#invoke:TaxonItalics|main|Pinus subg.'' Pinus}} | Pinus subg. Pinus | Pinus subg. Pinus |
Already has italic markup at the start and/or end – return unchanged | ||
{{#invoke:TaxonItalics|main|''Pinus sylvestris''}} | Pinus sylvestris | Pinus sylvestris |
{{#invoke:TaxonItalics|main|''Pinus'' subg. ''Pinus''}} | Pinus subg. Pinus | Pinus subg. Pinus |
{{#invoke:TaxonItalics|main|''Pinus subg. Pinus''}} | Pinus subg. Pinus | Pinus subg. Pinus |
{{#invoke:TaxonItalics|main|''Pinus'' '''subg.''' ''Pinus''}} | Pinus subg. Pinus | Pinus subg. Pinus |
{{#invoke:TaxonItalics|main|''Pinus subg. Pinus}} text after'' | Pinus subg. Pinus text after | Pinus subg. Pinus text after |
{{#invoke:TaxonItalics|main|Pinus subg. Pinus''}} text after'' | Pinus subg. Pinus text after | Pinus subg. Pinus text after |
Starts with [ – return unchanged | ||
{{#invoke:TaxonItalics|main|[[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']]}} | Cyclamen subg. Cyclamen | Cyclamen subg. Cyclamen |
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Module:TaxonItalics/moretestcases" page.