Template:`/doc: Difference between revisions
ArrowHead294 (talk | contribs) m ArrowHead294 moved page Template:-'/doc to Template:`/doc |
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''{{ | 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. | ||
The templates {{tlx|'}} and {{tlx|<}} are the ''opposite'' of the ones on Wikipedia: On Wikipedia {{tlx|'}} adds a space before the apostrophe and {{tlx|<}} does not, whereas on the Xenharmonic Wiki {{tlx|<}} adds spacing and {{tlx|'}} does not. | |||
=== Usage === | === Usage === | ||
| Line 8: | Line 10: | ||
! You get | ! You get | ||
|- | |- | ||
| <code><nowiki>''Z''{{ | | <code><nowiki>''Z''{{`}}(</nowiki>{{nowrap|<nowiki>''x'' + ''y''</nowiki>}})</code> | ||
| ''Z''{{ | | ''Z''{{`}}({{nowrap|''x'' + ''y''}}) | ||
|- | |- | ||
| <code><nowiki>The ''Illiad''{{ | | <code><nowiki>The ''Illiad''{{`}}s vocabulary</nowiki></code> | ||
| The ''Illiad''{{ | | The ''Illiad''{{`}}s vocabulary | ||
|} | |} | ||
=== Technical note === | === Technical note === | ||
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]]. | ||
When inserting an apostrophe before a lowercase "s", it is recommended to use {{tlx|<s}} instead. For example: | |||
<syntaxhighlight lang="wikitext"> | |||
The ''Illiad''{{`s}} vocabulary | |||
</syntaxhighlight> | |||