Jump to content

Module talk:TaxonItalics

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Peter coxhead (talk | contribs) at 16:41, 24 August 2018 (Work remaining: update; more??). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Request to output log

Moved here from Module talk:TaxonItalics/testcases as per instructions there. Peter coxhead (talk) 15:13, 23 August 2018 (UTC)[reply]

Erutuon, due to some useful changes Peter coxhead made to the main module, all of the initially-unitalicized testcases [at Module talk:TaxonItalics/testcases] show as failed, but I assume this is due to HTML-ified spaces/multipliciations/etc., which render the same but fail a simple plain-text equivalency check. Would you be able to output a nowiki version of the log after the table and/or add 2 columns to the table (e.g. "Expected nowiki" & "Actual nowiki")?   ~ Tom.Reding (talkdgaf)  14:48, 23 August 2018 (UTC)[reply]

@Tom.Reding: I'm aware of this issue, but I'm still working on the module to get allow it to abbreviate taxon names when required – not needed in {{Taxonbar}} but needed in some autotaxoboxes.
I think it's correct now, but Erutuon should wait a day before doing anything in case there are more changes. Peter coxhead (talk) 15:13, 23 August 2018 (UTC)[reply]
See User:Peter coxhead/Test#Module:TaxonItalics#main for my work tests. Peter coxhead (talk) 15:16, 23 August 2018 (UTC)[reply]

Work remaining

The module seems to handle ICNafp-style names (i.e. those with connecting terms) correctly, both straightforward italicization and abbreviation. However, it doesn't yet handle "GENUS (SUBGENUS)" style names: Peter coxhead (talk) 17:12, 23 August 2018 (UTC)[reply]

The module now handles "GENUS (SUBGENUS)" style names correctly:

  • Genus (Subgenus) → Genus (Subgenus)
  • Genus (Subgenus) species → Genus (Subgenus) species
  • Genus (Subgenus) [abbreviated] → G. (Subgenus)
  • Genus (Subgenus) species [abbreviated] → G. (S.) species

Are there any more cases that the code should handle? Peter coxhead (talk) 16:41, 24 August 2018 (UTC)[reply]