Template:Spaced prime/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This template produces a {{w|prime symbol}} <code>′</code> with leading space so it does not collide with preceding '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) characters. | {{dochead}}{{substitute|no}}{{clear}} | ||
This template produces a {{w|prime symbol}} ([http://www.compart.com/en/unicode/U+2032 U+2032] <code>′</code>) with leading space so it does not collide with preceding '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) characters. | |||
{{shortcut|- | {{shortcut|-`}} | ||
Using {{plaincode|<nowiki>{{-`}}</nowiki>}} is significantly less messy than having to type out <code><nowiki><span style="padding-left: 0.15em; white-space: nowrap;">′</span></nowiki></code> every time. | |||
=== Usage === | === Usage === | ||
| Line 9: | Line 12: | ||
! You get | ! You get | ||
|- | |- | ||
| <code><nowiki>''T''{{- | | <code><nowiki>''T''{{-´}}</nowiki></code> | ||
| ''T''{{- | | ''T''{{-´}} | ||
|} | |} | ||
=== Technical notes === | === Technical notes === | ||
The difference between {{tlx|prime|plaincode}} and this template is that {{plaincode|<nowiki>{{prime}}</nowiki}} is | The difference between {{tlx|prime|plaincode}} and this template is that {{plaincode|<nowiki>{{prime}}</nowiki>}} is for letters that require little or no spacing, such as lowercase ''a'', ''o'', and ''s'', and uppercase ''A'' and ''L'', while this template is for letters such as ''d'', ''f'', and ''l'', and uppercase ''C'' and ''T'' that require more space. | ||
=== See also === | |||
* {{tlx|"|plaincode}} and {{tlx|-"|plaincode}} – used to insert a double prime | |||
* {{tlx|'|plaincode}} and {{tlx|`|plaincode}} – used to insert an apostrophe that is not interpreted as Wiki markup | |||
Latest revision as of 14:45, 8 February 2026
| This template should not be substituted. |
This template produces a prime symbol (U+2032 ′) with leading space so it does not collide with preceding bold (''') or italic ('') characters.
Note: You can use {{-`}} as a shortcut.
Using {{-`}} is significantly less messy than having to type out <span style="padding-left: 0.15em; white-space: nowrap;">′</span> every time.
Usage
| You type | You get |
|---|---|
''T''{{-´}}
|
T′ |
Technical notes
The difference between {{prime}} and this template is that {{prime}} is for letters that require little or no spacing, such as lowercase a, o, and s, and uppercase A and L, while this template is for letters such as d, f, and l, and uppercase C and T that require more space.