Template:`s/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{wikipedia}}
{{dochead}}{{substitute|no}}{{clear}}{{wikipedia}}
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|'s|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''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) text. In these cases, {{tlx|`|plaincode}} and {{plaincode|<nowiki>{{`s}}</nowiki>}} can be used to prevent such collisions. This template is the same as {{tlx|&#39;s|plaincode}} except that it inserts a small amount of space before the apostrophe.


=== Usage ===
=== Usage ===
Line 8: Line 8:
! You get
! You get
|-
|-
| <code><nowiki>The ''Illiad''{{`s}} vocabulary</nowiki></code>
| <code><nowiki>The ''Iliad''{{`s}} vocabulary</nowiki></code>
| The ''Illiad''{{`s}} vocabulary
| The ''Iliad''{{`s}} vocabulary
|}
|}


=== Technical notes ===
=== Technical notes ===
This template does not insert any semantically invalid whitespace characters, but does all the spacing visually only, in [[CSS]].
The templates {{tlx|'s|plaincode}} and {{plaincode|<nowiki>{{`s}}</nowiki>}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{tlx|'s|plaincode}} adds a space before the apostrophe and {{plaincode|<nowiki>{{`s}}</nowiki>}} does not, whereas on the Xenharmonic Wiki {{plaincode|<nowiki>{{`s}}</nowiki>}} adds spacing and {{tlx|'s|plaincode}} does not.
The templates {{tlx|'s|plaincode}} and {{plaincode|<nowiki>{{`s}}</nowiki>}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{tlx|'s|plaincode}} adds a space before the apostrophe and {{plaincode|<nowiki>{{`s}}</nowiki>}} does not, whereas on the Xenharmonic Wiki {{plaincode|<nowiki>{{`s}}</nowiki>}} adds spacing and {{tlx|'s|plaincode}} does not.


This template does not insert any semantically invalid whitespace characters, but does all the spacing visually only, in [[CSS]].
=== See also ===
* {{tlx|``|plaincode}} and {{tlx|-`|plaincode}} – used to insert a single prime
* {{tlx|"|plaincode}} and {{tlx|-"|plaincode}} – used to insert a double prime