Difference between revisions of "Template:Italics correction/doc"
Jump to navigation
Jump to search
imported>Sardanaphalus (category) |
imported>Gonnym |
||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| − | Use {{tl|italics correction}} to | + | Use {{tl|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 == | == Examples == | ||
| − | <code><nowiki>({{italics correction|''Harbi''}})</nowiki></code> produces | + | 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 == | ||
| − | * {{ | + | * {{tl|pad}}, to produce whitespace (e.g. <nowiki>{{pad|0.5em}}</nowiki>) |
| − | |||
* {{tl|italics after}} | * {{tl|italics after}} | ||
| − | |||
| − | <includeonly> | + | <includeonly>{{basepage subpage| |
<!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | ||
| − | [[Category: | + | [[Category:Inline spacing templates]] |
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 20:15, 13 November 2020
| 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}})
- {{italics after}}