This is a documentation subpage for 模板:Italics correction. It may contain usage information, categories and other content that is not part of the original 模板 page. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
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
无描述。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
text | 1 | 无描述 | 字符串 | 必需 |
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
{{pad}}
, to produce whitespace (e.g. {{pad|0.5em}}){{'s}}
, to enter an apostrophe and "s" after italicized titles{{'"}}
and related, to kern apart consecutive quotation marks