Template:`/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
mNo edit summary
Line 17: Line 17:
The templates {{tlx|'|plaincode}} and {{plaincode|<nowiki>{{`}}</nowiki>}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{tlx|'|plaincode}} adds a space before the apostrophe and {{plaincode|<nowiki>{{`}}</nowiki>}} does not, whereas on the Xenharmonic Wiki {{plaincode|<nowiki>{{`}}</nowiki>}} adds spacing and {{tlx|'|plaincode}} does not.
The templates {{tlx|'|plaincode}} and {{plaincode|<nowiki>{{`}}</nowiki>}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{tlx|'|plaincode}} adds a space before the apostrophe and {{plaincode|<nowiki>{{`}}</nowiki>}} does not, whereas on the Xenharmonic Wiki {{plaincode|<nowiki>{{`}}</nowiki>}} adds spacing and {{tlx|'|plaincode}} does not.


When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|`s|plaincode}} instead. For example:
When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|`s|plaincode}} instead, as {{plaincode|<nowiki>{{`}}s</nowiki>}} can be somewhat awkward. For example: <code><nowiki>The ''Iliad''{{`s}} vocabulary</nowiki></code>
 
<pre>
The ''Iliad''{{`s}} vocabulary
</pre>

Revision as of 00:33, 26 January 2026

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
''The Doobie Brothers''{{`}} latest album The Doobie Brothers' latest album

Technical notes

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

The templates {{'}} and {{`}} are used in the opposite manner compared to on Wikipedia: On Wikipedia {{'}} adds a space before the apostrophe and {{`}} does not, whereas on the Xenharmonic Wiki {{`}} adds spacing and {{'}} does not.

When inserting an apostrophe before a lowercase "s", it is recommended to use {{`s}} instead, as {{`}}s can be somewhat awkward. For example: The ''Iliad''{{`s}} vocabulary