Template:Prime/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
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}} <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;}}.


{{shortcut|,}} The {{w|comma (symbol)|punctuation comma}} is used as the shortcut since {{plaincode|<nowiki>{{'}}</nowiki>}} and {{plaincode|<nowiki>{{`}}</nowiki>}} are used to escape the apostrophe and the acute accent (<code>´</code>) is not easily typed on most keyboards.
{{shortcut|´}} The {{w|acute accent}} is used for the shortcut since {{plaincode|<nowiki>{{'}}</nowiki>}} and {{plaincode|<nowiki>{{`}}</nowiki>}} are used to escape the apostrophe. Alternatively, you can use {{plaincode|<nowiki>{{,}}</nowiki>}} (the {{w|comma (symbol)|punctuation comma}}).


=== Usage ===
=== Usage ===
Line 9: Line 9:
! You get
! You get
|-
|-
| <code><nowiki>A{{,}}</nowiki></code>
| <code><nowiki>A{{´}}</nowiki></code><br />or<br /><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.