Template:Prime/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{substitute|no}}{{clear}}{{wikipedia}}
{{dochead}}{{substitute|no}}{{clear}}{{wikipedia}}
This template produces a {{w|prime symbol}} <code>′</code> with a small amount of leading space so it does not collide with preceding '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) characters. It is designed to be easier to remember and somewhat clearer than an unadorned {{plaincode|&amp;#x2032;}} or {{plaincode|&amp;prime;}}.
This template produces a {{w|prime symbol}} ([http://www.compart.com/en/unicode/U+2032 U+2032] <code>′</code>) with a small amount of leading space so it does not collide with preceding '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) characters.  


{{shortcut|´}} The {{w|acute accent}} ([https://www.compart.com/en/unicode/U+00B4 U+00B4]) is used since {{plaincode|<nowiki>{{'}}</nowiki>}} and {{plaincode|<nowiki>{{`}}</nowiki>}}, the straight apostrophe-quote and grave accent (respectively), are used to escape the apostrophe.
{{shortcut|``}}
 
{{plaincode|<nowiki>{{``}}</nowiki>}} is significantly less messy than having to type out <code><nowiki><span style="padding-left: 0.05em; white-space: nowrap;">′</span></nowiki></code> every time.


=== Usage ===
=== Usage ===
Line 10: Line 12:
! You get
! You get
|-
|-
| <code><nowiki>A{{´}}</nowiki></code>
| <code><nowiki>A{{``}}</nowiki></code>
| A{{´}}
| A{{``}}
|}
|}


=== Technical notes ===
=== Technical notes ===
The difference between this template and {{tlx|spaced prime|plaincode}} is that this template is for letters that require little or no spacing, such as lowercase ''a'', ''o'', and ''s'', and uppercase ''A'' and ''L'', while {{plaincode|<nowiki>{{spaced prime}}</nowiki>}} is for letters such as lowercase ''d'', ''f'', and ''l'', and uppercase ''C'' and ''T'' that require more space.
The difference between this template and {{tlx|spaced prime|plaincode}} is that this template is for letters that require little or no spacing, such as lowercase ''a'', ''o'', and ''s'', and uppercase ''A'' and ''L'', while {{plaincode|<nowiki>{{spaced prime}}</nowiki>}} is for letters such as lowercase ''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:46, 8 February 2026

This template should not be substituted.
English Wikipedia has an article on:

This template produces a prime symbol (U+2032 ) with a small amount of leading space so it does not collide with preceding bold (''') or italic ('') characters.

📝Note: You can use {{``}} as a shortcut.

{{``}} is significantly less messy than having to type out <span style="padding-left: 0.05em; white-space: nowrap;">′</span> every time.

Usage

You type You get
A{{``}} A

Technical notes

The difference between this template and {{spaced prime}} is that this template is for letters that require little or no spacing, such as lowercase a, o, and s, and uppercase A and L, while {{spaced prime}} is for letters such as lowercase d, f, and l, and uppercase C and T that require more space.

See also

  • {{"}} and {{-"}} – used to insert a double prime
  • {{'}} and {{`}} – used to insert an apostrophe that is not interpreted as Wiki markup