Module talk:TaxonItalics/moretestcases: Difference between revisions

Content deleted Content added
No edit summary
one issue now fixed
Line 4:
* A parenthesized part of a taxon name is assumed to be a subgenus, and so is italicized. This is correct for {{#invoke:TaxonItalics|main|Mus (Mus)|linked=yes}}, but not for {{#invoke:TaxonItalics|main|Caia (plant)|abbreviated=no|linked=yes}}. Can these be distinguished automatically?
* "Quoted" genus names are not handled correctly. In {{#invoke:TaxonItalics|main|"Dryosaurus" grandis|abbreviated=no|linked=yes}} and {{#invoke:TaxonItalics|main|"Dryosaurus" grandis|abbreviated=yes|linked=no}}, the double quote marks should ideally not be italicized.
* What about <nowiki>{{#invoke:TaxonItalics|main|Felis|abbreviated=yes|linked=no}}</nowiki> → {{#invoke:TaxonItalics|main|Felis|abbreviated=yes|linked=no}} – doesn't abbreviate unless it appears to be a binomial.
* If passed a string which is manually wikilinked and italicized, the wrong output is produced: <nowiki>{{#invoke:TaxonItalics|main|[[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']]|abbreviated=no|linked=no}}</nowiki> → {{#invoke:TaxonItalics|main|{{#invoke:TaxonItalics|main|[[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']]|abbreviated=no|linked=no}}}} instead of leaving it unchanged as [[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']].
 
{| class="wikitable"