Template:'/doc: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}}{{wikipedia|Template:Apostrophe}} | {{dochead}}{{wikipedia|Template:Apostrophe}} | ||
This template uses the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, {{plaincode|<nowiki>{{'}}</nowiki>}} and {{tlx|'s|plaincode}} 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 uses the [[wikipedia:List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, {{plaincode|<nowiki>{{'}}</nowiki>}} and {{tlx|'s|plaincode}} prevent apostrophes and single quotes from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup. | ||
=== Usage === | === Usage === | ||
| Line 15: | Line 13: | ||
=== Technical note === | === Technical note === | ||
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. | |||
The templates {{plaincode|<nowiki>{{'}}</nowiki>}} and {{tlx|`|plaincode}} 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 {{plaincode|<nowiki>{{'}}</nowiki>}} and {{tlx|`|plaincode}} 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. | ||