@Erutuon Since this module concerns italics specifically in the context of taxonomic names, do you think it might be better named Module:taxonomy? That way, we can include other taxonomy-related stuff in there too. —CodeCat 23:13, 31 October 2016 (UTC)
Hi, @Erutuon. The recent discussion and use of this module at {{taxlink}}
got me thinking about whether this module can be used to adjust italicization in the titles of works at {{cite-meta}}
and {{quote-meta/source}}
. Currently, the title of a work is italicized using <cite> tags. However, when a title is long it is sometimes desirable to use ellipses to omit parts of it. These ellipses should, ideally, not be italicized:
At the moment, the only way to achieve the second result is to use the following ugly hack: |title=A Voyage around the World. </cite><cite> In Two Volumes
. Would it be possible to create another function in this module to search for occurrences of "", "{{...}}
" and "{{nb...}}
" and turn off the italicization? If so, I'd also be grateful if you would assist in updating {{cite-meta}}
and {{quote-meta/source}}
(or explain to me how to do so) so that they invoke this module. Thanks. — SGconlaw (talk) 15:14, 30 July 2017 (UTC)
In fact, just thinking about it, perhaps italicization should be turned off for any use of the left or right brackets within the title of a work, as that would indicate an editorial interpolation not originally in the title, like this: A Response to a Scurrilous Libel by J S. In Two Volumes. — SGconlaw (talk) 15:18, 30 July 2017 (UTC)
@Erutuon, what do you think? Any chance you can look into it? — SGconlaw (talk) 22:08, 10 August 2017 (UTC)
{{...}}
will be a little more complicated than the literal
, because the module will be searching the wikitext that it generates. — Eru·tuon 22:15, 10 August 2017 (UTC)
{{...}}
or {{nb...}}
occurs in titles. Maybe we can start with handling and first? — SGconlaw (talk) 01:51, 11 August 2017 (UTC)
{{quote-meta/source}}
(see this diff), but it doesn't seem to work. See the 1666 quotation in merlion. Have I invoked it wrongly? — SGconlaw (talk) 06:54, 11 August 2017 (UTC)
<cite></cite>
tags to produce italics, while I am using ''
, which translates to <i></i>
tags. Anyway, the function needs more testing before it can be used, and I am not sure how to get a representative selection of titles to test it with. — Eru·tuon 20:21, 11 August 2017 (UTC)
<cite>
tags entirely and replaced them with {{#invoke:italics}}
. Was this incorrect? Here are some entries that you can test with: darrein (1793, 1825 and 1845 quotes), merlion (etymology 2, 1666 quote), {{RQ:Austen Persuasion}}
. — SGconlaw (talk) 12:31, 12 August 2017 (UTC)@Erutuon, any chance you have time to look into this again? — SGconlaw (talk) 02:33, 29 November 2017 (UTC)
''
is the right solution. It might be better to leave the tag, because it is semantically valid, but add inline CSS around the text to be deitalicized: <span style="font-style: normal;"></span>
. In response to your previous post, the module isn't ready to use. — Eru·tuon 02:52, 29 November 2017 (UTC)
{{cite-meta}}
and {{quote-meta/source}}
. — SGconlaw (talk) 04:15, 29 November 2017 (UTC)
{{#invoke:italics|unitalicize_brackets|text}}
. — Eru·tuon 07:04, 13 January 2018 (UTC)
{{quote-meta/source}}
to add the module to the parameters |chapter=
, |trans-chapter=
, |title=
, and |trans-title=
, but it seems to have removed italicization from the title altogether if the title contains brackets. See, for example, {{RQ:Chambers Cyclopaedia}}
and consistent. Italicization was done using <cite>
tags, but it doesn't make a difference whether I use that or ''
. Also, the remainder of the reference after the title (publication place, name of publisher, etc.) is now italicized. — SGconlaw (talk) 13:18, 14 January 2018 (UTC){{RQ:Lovell Panzooryktologia}}
. Could it be because the title in {{RQ:Chambers Cyclopaedia}}
is within a wikilink? — SGconlaw (talk) 16:20, 14 January 2018 (UTC)
Hi, @Erutuon. I noticed that in the 1850 quotation at sassywood, the text within the brackets is no longer in italics. I think only the brackets themselves should not be italicized; the text within them should be:
— SGconlaw (talk) 19:12, 18 January 2018 (UTC)
Hi, @Erutuon, could you please update this module so that it recognizes the changes that have been made to {{...}}
and {{nb...}}
to avoid Lint errors? Thanks, and merry Christmas! — SGconlaw (talk) 08:12, 25 December 2018 (UTC)
{{#invoke:italics|test|]<!-- This fails currently, Generates a missing span... -->}}
)? Are you referring to the fact that the second of the closing brackets isn't enclosed in <span class="hellip-b"></span>
? — Eru·tuon 19:07, 25 December 2018 (UTC){{...}}
and {{nb...}}
to HTML character references. If any bracket that is not supposed to be interpreted as link syntax is given as HTML character reference (,
) or enclosed in nowiki tags (<nowiki></nowiki>
), that keeps the parser from misidentifying the start and end of the link. — Eru·tuon 19:33, 25 December 2018 (UTC)
{{...}}
or {{nb...}}
are used in a quotation, the brackets are appearing italicized. See, for example, {{RQ:Defoe Crusoe}}
(which appears in box). Also, {{nb...}}
has failed entirely in the Wilson quotation under sense 1.17 in box, producing "">…]". (Frankly, I'm beginning to wonder why is it necessary to avoid Lint errors at all, since they do not seem to affect anything.) — SGconlaw (talk) 21:35, 25 December 2018 (UTC)
Test case :
Test case | Actual output | Desired output. |
---|---|---|
{{#invoke:italics|i|× Agroelymus}} |
''''× ''Agroelymus'' |
× ''Agroelymus'' |
In this instance the function should be moving the start of the italic portion until after the x or other de-italicized portion.ShakespeareFan00 (talk) 08:28, 25 December 2018 (UTC)