Template:`/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}}{{wikipedia}} | {{dochead}}{{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|'|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|'|plaincode}} except that it inserts a small amount of space before the apostrophe to avoid such collisions. | ||
=== Usage === | === Usage === | ||
| Line 10: | Line 8: | ||
! You get | ! You get | ||
|- | |- | ||
| <code><nowiki>''The Doobie Brothers''{{`}} | | <code><nowiki>''The Doobie Brothers''{{`}} latest album</nowiki></code> | ||
| ''The Doobie Brothers''{{`}} | | ''The Doobie Brothers''{{`}} latest album | ||
|} | |} | ||
=== Technical notes === | === Technical notes === | ||
This template does not insert any semantically invalid whitespace characters, but does all the spacing visually only, in [[CSS]]. | This template does not insert any semantically invalid whitespace characters, but does all the spacing visually only, in [[CSS]]. | ||
The templates {{tlx|'s}} and {{tlx|`s}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{tlx|'s}} adds a space before the apostrophe and {{tlx|`s}} does not, whereas on the Xenharmonic Wiki {{tlx|`s}} adds spacing and {{tlx|'s}} does not. | |||
When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|`s}} instead. For example: | When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|`s}} instead. For example: | ||