Difference between revisions of "Template:Italics correction/doc"
Jump to navigation
Jump to search
imported>RexxS (→Usage: copyedit: it doesn't actually insert a space of any sort; clarify where it is needed; the italics markup may extend well before the use of this template, so 'enclose' is not strictly accurate) |
imported>Hyacinth (TemplateData) |
||
| Line 7: | Line 7: | ||
== Examples == | == Examples == | ||
Using the wiki markup <code><nowiki>(''Harbi'')</nowiki></code> without the template would produce (''Harbi'') with the italicized 'i' intruding into the ')'. <code><nowiki>({{italics correction|''Harbi''}})</nowiki></code> produces ({{italics correction|''Harbi''}}) instead. | Using the wiki markup <code><nowiki>(''Harbi'')</nowiki></code> without the template would produce (''Harbi'') with the italicized 'i' intruding into the ')'. <code><nowiki>({{italics correction|''Harbi''}})</nowiki></code> produces ({{italics correction|''Harbi''}}) instead. | ||
| + | |||
| + | ==TemplateData== | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "text", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | } | ||
| + | }, | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
== See also == | == See also == | ||
Revision as of 21:45, 4 October 2018
| This is a documentation subpage for Template:Italics correction. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
Use {{italics correction}} to increase the spacing (by 0.1em) 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. It should be used within 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| text | 1 | no description | String | required |
See also
- {{pad}}, to produce whitespace (e.g. {{pad|0.5em}})
- {{dab italics}}
- {{italics after}}
- {{Talk header italics}}