Template:Italics correction

Revision as of 21:20, 3 July 2023 by Wikipedia>Quondum (Undoing "font-style:italic" change: this is explicitly not supposed to be part of the template function (see template documentation) and creates double italics; which is highly undesirable since this is in many articles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Italics correction/doc" to edit its documentation if it is available. (How does this work?)

Use {{italics correction}} to increase the spacing (by 0.15em) following italic text to keep it from running into an immediately subsequent non-italic character, such as a closing parenthesis. The template takes one unnamed parameter: the text. The template can be included within or its parameter may include the italics markup, which is not provided by this template itself.

Examples

Using the wiki markup (''Harbi'') without the template would produce (Harbi) with the italicized 'i' intruding into the ')'. ({{italics correction|''Harbi''}}) produces (Harbi) instead.

TemplateData

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text1

no description

Stringrequired

Technical note

The kerning problem with italics has, as of April 2021, no automated solutions in the web browser, so the use of this template remains necessary. The underlying font standards generally don't have support for this feature, so this issue should not be expected to be fixed anytime soon. (OpenType only has italics correction in the TeX-inspired MATH table – see also this discussion on typedrawers.)

See also