Difference between revisions of "Template:Italics correction/doc"

From blackwiki
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 insert a thin whitespace following a (slanted) text in italics to keep it from running into the following (upright) character. The template takes one unnamed parameter: the text. It should be enclosed in italics markup, which is not provided by this template itself.
+
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: ({{italics correction|''Harbi''}}).
+
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 ==
* {{tlx|pad|{{italics correction|''width''}}}}, to produce whitespace (e.g. {{plaincode|<nowiki>{{pad|0.5em}}</nowiki>}})
+
* {{tl|pad}}, to produce whitespace (e.g. <nowiki>{{pad|0.5em}}</nowiki>)
* {{tl|dab italics}}
 
 
* {{tl|italics after}}
 
* {{tl|italics after}}
* {{tl|Talk header italics}}
 
  
<includeonly>
+
<includeonly>{{basepage subpage|
 
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
 
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Spacing (inline) templates]]
+
[[Category:Inline spacing templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 20:15, 13 November 2020

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text1

no description

Stringrequired

See also