Template:'s/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{substitute|no}}
This template allows quick entry of an apostrophe and lowercase "s" using the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. {{tlx|'|plaincode}} and {{plaincode|<nowiki>{{'s}}</nowiki>}} prevent apostrophes and single quotes from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup.
This template allows quick entry of an apostrophe and lowercase "s" using the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. {{tlx|'|plaincode}} and {{plaincode|<nowiki>{{'s}}</nowiki>}} prevent apostrophes and single quotes from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup.


Line 12: Line 12:


=== Technical notes ===
=== Technical notes ===
When an apostrophe follows italicized text, {{tlx|`|plaincode}} and {{tlx|`s|plaincode}} can be used to additionally prevent the last letter of the right-leaning text from intersecting the apostrophe.
When an apostrophe follows italicized text, {{tlx|`|plaincode}} and {{tlx|`s|plaincode}} can be used to additionally prevent the last letter of the right-leaning text from interfering with the apostrophe.


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