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

From blackwiki
Jump to navigation Jump to search
imported>Lambiam
(documentation)
 
imported>Gonnym
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
+
== Usage ==
 +
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.
  
==Usage==
+
== Examples ==
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.
+
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.
  
==Examples==
+
==TemplateData==
<tt><nowiki>({{italics correction|''Harbi''}})</nowiki></tt> produces "({{italics correction|''Harbi''}})".
+
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "text",
 +
"type": "string",
 +
"required": true
 +
}
 +
},
 +
"format": "inline"
 +
}
 +
</templatedata>
  
==See also==
+
== See also ==
* {{tlx|pad|{{italics correction|''width''}}}} – to produce whitespace, such as <code><nowiki>{{pad|0.5em}}</nowiki></code>
+
* {{tl|pad}}, to produce whitespace (e.g. <nowiki>{{pad|0.5em}}</nowiki>)
 +
* {{tl|italics after}}
  
<includeonly>
+
<includeonly>{{basepage subpage|
 
+
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AFTER THIS LINE, THANK YOU. -->
+
[[Category:Inline spacing templates]]
 
+
}}</includeonly>
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
 
 
 
</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