Template:'s/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}} | {{dochead}} | ||
This template allows quick entry of an apostrophe and "s" using 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, | 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. When taking the possessive of titles, or when indicating the derivative of a function, {{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. | ||
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. | |||
{| class="wikitable" style="text-align: center; margin: auto;" | {| class="wikitable" style="text-align: center; margin: auto;" | ||
Revision as of 04:00, 26 January 2026
This template allows quick entry of an apostrophe and lowercase "s" using the decimal code for the apostrophe or single-quote character. When taking the possessive of titles, or when indicating the derivative of a function, {{'}} and {{'s}} prevent apostrophes and single quotes from becoming mistakenly interpreted with adjacent bold (''') or italic ('') Wiki markup.
When an apostrophe follows italicized text, {{`}} and {{`s}} can be used to additionally prevent the last letter of the right-leaning text from intersecting the apostrophe.
| You type | You get |
|---|---|
'''Taylor Swift'''{{'s}} latest album
|
Taylor Swift's latest album |
Technical notes
The templates {{'s}} and {{`s}} are used in the opposite manner compared to on Wikipedia: On Wikipedia {{'s}} adds a space before the apostrophe and {{`s}} does not, whereas on the Xenharmonic Wiki {{`s}} adds spacing and {{'s}} does not.