Template talk:Taxonbar

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Taxonbar (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test) · Module:Taxonbar

Automatic Wikispecies display & spelling out Wikidata instead of Wd[edit]

Currently, |wikispecies=<value> is required to display a link to Wikispecies since the association isn't currently automatically drawn from Wikidata. If desired, I can add this to the automatically displayed IDs, to be displayed either:

  1. after Wikidata "Wd: Q1" in the beginning, or
  2. at the very end, or
  3. alphabetically, or
  4. no change, leaving it in 'manual' mode.

I think #1 is best, with the same manual override as the other IDs.

Also, perhaps spelling out "Wikidata" is better than "Wd". "Wikidata" would I think be required if we put Wikispecies next to it.

Thoughts?   ~ Tom.Reding (talkdgaf)  17:48, 8 June 2018 (UTC)

 Done   ~ Tom.Reding (talkdgaf)  00:30, 24 June 2018 (UTC)

Problem with PfaF[edit]

The module creates a malformed link (wrong URL, wrong link text) if the Plants for a Future id property contains a space. For instance, in Taxus canadensis, [http://www.pfaf.org/user/Plant.aspx?LatinName=Taxus canadensis Taxus canadensis] should be [http://www.pfaf.org/user/Plant.aspx?LatinName=Taxus+canadensis Taxus canadensis]. Before being put in the link, the property needs to have any spaces in it replaced with pluses, string.gsub(PfaF_id, ' ', '+'). (Or it could be URI-encoded with mw.uri.encode(PfaF_id, "QUERY"), though only the space-to-plus thing part is really needed.) — Eru·tuon 05:55, 26 July 2018 (UTC)

@Tom.Reding: Another PfaF example: if you go to Elaeagnus × ebbingei (Q2585025) and follow the PfaF ID link, it works correctly. However, in the taxonbar at Elaeagnus × submacrophylla, the PfaF ID has been retrieved and/or displayed incorrectly, and the link does not work. Peter coxhead (talk) 22:19, 6 August 2018 (UTC)

@Erutuon and Peter coxhead: Fixed.   ~ Tom.Reding (talkdgaf)  14:59, 7 August 2018 (UTC)

Update to taxon italicization code[edit]

The code that italicizes a taxon name in a taxon bar has been updated. It should now handle a wider range of 'special cases' correctly, by not italicizing 'connecting terms' like "sect." or "subsp." or the hybrid symbol (see e.g. the taxonbar at Elaeagnus × submacrophylla where previously the × was italicized, although this doesn't show in some fonts).

If you notice any errors or issues in the italicization of taxon names in taxon bars, please leave a message here. Peter coxhead (talk) 19:24, 18 August 2018 (UTC)