Module talk:TaxonItalics/moretestcases: Difference between revisions

Content deleted Content added
another test example
No edit summary
Line 3:
;Issues
* 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}}, the double quote marks should ideally not be italicized. Inand {{#invoke:TaxonItalics|main|"Dryosaurus" grandis|abbreviated=yes|linked=no}}, the abbreviationdouble shouldquote bemarks done.should Sandboxideally version:not {{#invoke:TaxonItalics/sandbox|main|"Dryosaurus"be grandis|abbreviated=yes|linked=no}}italicized.
* What about <nowiki>{{#invoke:TaxonItalics|main|Felis|abbreviated=yes|linked=no}}</nowiki> → {{#invoke:TaxonItalics|main|Felis|abbreviated=yes|linked=no}}
* 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"
Line 61 ⟶ 62:
|-
|<nowiki>{{#invoke:TaxonItalics|main|"Dryosaurus" grandis|abbreviated=yes|linked=yes}}</nowiki> || {{#invoke:TaxonItalics|main|"Dryosaurus" grandis|abbreviated=yes|linked=yes}}|| {{#invoke:TaxonItalics/sandbox|main|"Dryosaurus" grandis|abbreviated=yes|linked=yes}}
|-
|<nowiki>{{#invoke:TaxonItalics|main|[[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']]}}</nowiki> || {{#invoke:TaxonItalics|main|[[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']]}}|| {{#invoke:TaxonItalics/sandbox|main|[[Cyclamen#Subgenus Cyclamen|''Cyclamen'' subg. ''Cyclamen'']]}}
|}