Template:-'/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Documentation
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}{{wikipedia}}
{{dochead}}{{wikipedia}}
This template uses the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, this template prevents an apostrophe or single quote from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup.<br /><br />
Sometimes, apostrophes may collide with certain characters such as lowercase ''d''{{-'}}s and ''l''{{-'}}s, especially after bold or italic text. This template is the same as {{tlx|&#39;|plaincode}} except that it inserts a small amount of space before the apostrophe to avoid such collisions.
 
Sometimes, apostrophes may collide with certain characters such as lowercase ''d''{{-'}}s and ''l''{{-'}}s, especially after '''bold''' or ''italic'' text. This template is the same as {{tlx|&#39;|plaincode}} except that it inserts a small amount of space before the apostrophe to avoid such collisions.


=== Usage ===
{| class="wikitable" style="text-align: center; margin: auto auto auto auto;"
{| class="wikitable" style="text-align: center; margin: auto auto auto auto;"
|-
|-
Line 9: Line 8:
! You get
! You get
|-
|-
| <code>The <nowiki>''Illiad''{{nbhsp}}{{'}}s</nowiki> vocabulary</code>
| <code><nowiki>''Z''{{-'}}(</nowiki>{{nowrap|<nowiki>''x'' + ''y''</nowiki>}})</code>
| rowspan="2" | The ''Illiad''{{-'}}s vocabulary
| ''Z''{{-'}}({{nowrap|''x'' + ''y''}})
|-
|-
| <code>The <nowiki>''Illiad''{{-'}}s</nowiki> vocabulary</code>
| <code><nowiki>The ''Illiad''{{-'}}s vocabulary</nowiki></code>
| The ''Illiad''{{-'}}s vocabulary
|}
|}


<br /><hr />
=== Technical note ===
{{esctl}}
This template does not insert any semantically invalid whitespace characters, but does all the spacing visually only, in [[CSS]].

Latest revision as of 15:15, 23 February 2025

English Wikipedia has an article on:

Sometimes, apostrophes may collide with certain characters such as lowercase d's and l's, especially after bold or italic text. This template is the same as {{'}} except that it inserts a small amount of space before the apostrophe to avoid such collisions.

Usage

You type You get
''Z''{{-'}}(''x'' + ''y'') Z'(x + y)
The ''Illiad''{{-'}}s vocabulary The Illiad's vocabulary

Technical note

This template does not insert any semantically invalid whitespace characters, but does all the spacing visually only, in CSS.