Content deleted Content added
→Request to output log: bit more |
→Handling disambiguation terms: new section |
||
(One intermediate revision by one other user not shown) | |||
Line 12:
:::::Well, if you're happy to do the work, I agree they are a good demonstration.
:::::Any thoughts about other cases, as per my question below? [[User:Peter coxhead|Peter coxhead]] ([[User talk:Peter coxhead|talk]]) 20:58, 24 August 2018 (UTC)
:::::: Not right now, but I'll post there if any occur to me. — [[User:Erutuon|Eru]]·[[User talk:Erutuon|tuon]] 06:03, 25 August 2018 (UTC)
== Work remaining ==
Line 24 ⟶ 25:
*Genus (Subgenus) species [abbreviated] → {{#invoke:TaxonItalics|main|Genus (Subgenus) species|abbreviated=yes}}
Are there any more cases that the code should handle? [[User:Peter coxhead|Peter coxhead]] ([[User talk:Peter coxhead|talk]]) 16:41, 24 August 2018 (UTC)
== Handling disambiguation terms ==
By default, the code assumes that a parenthesized term is a subgenus and italicizes it:
* <nowiki>{{#invoke:TaxonItalics |main |Varanus (Hapturosaurus)}}</nowiki> → {{#invoke:TaxonItalics|main|Varanus (Hapturosaurus)}}
However, this is wrong if it is actually a disambiguation term:
* <nowiki>{{#invoke:TaxonItalics |main |Caia (plant)}}</nowiki> → {{#invoke:TaxonItalics|main|Caia (plant)}}
I've just added a parameter {{para|dab}} to treat a parenthesized part as a disambiguation term:
* <nowiki>{{#invoke:TaxonItalics |main |Caia (plant) |dab=yes}}</nowiki> → {{#invoke:TaxonItalics|main|Caia (plant)|dab=yes}}
[[User:Peter coxhead|Peter coxhead]] ([[User talk:Peter coxhead|talk]]) 06:54, 5 October 2021 (UTC)
|