Template:`/doc: Difference between revisions

ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
mNo edit summary
 
(11 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|'|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, {{plaincode|<nowiki>{{`}}</nowiki>}} and {{tlx|`s|plaincode}} can be used to prevent such collisions. This template is the same as {{tlx|&#39;|plaincode}} except that it inserts a small amount of space before the apostrophe.


=== Usage ===
=== Usage ===
Line 10: Line 10:
| <code><nowiki>''The Doobie Brothers''{{`}} latest album</nowiki></code>
| <code><nowiki>''The Doobie Brothers''{{`}} latest album</nowiki></code>
| ''The Doobie Brothers''{{`}} latest album
| ''The Doobie Brothers''{{`}} latest album
|-
| <code><nowiki>''Le Serre Nuove dell{{`}}Ornellaia''</nowiki></code>
| ''Le Serre Nuove dell{{`}}Ornellaia''
|}
|}


Line 17: Line 20:
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}}, as {{plaincode|<nowiki>{{`}}s</nowiki>}} can be somewhat awkward. For example: <code><nowiki>The ''Iliad''{{`s}} vocabulary</nowiki></code>


<pre>
=== See also ===
The ''Iliad''{{`s}} vocabulary
* {{tlx|``|plaincode}} and {{tlx|-`|plaincode}} – used to insert a single prime
</pre>
* {{tlx|"|plaincode}} and {{tlx|-"|plaincode}} – used to insert a double prime