Template:'/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
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, this template prevents an apostrophe or single quote 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, this template prevents an apostrophe or single quote from becoming mistakenly interpreted with adjacent '''bold''' (<code><nowiki>'''</nowiki></code>) or ''italic'' (<code><nowiki>''</nowiki></code>) Wiki markup.


Sometimes, apostrophes may collide with certain characters such as lowercase ''d''{{nbhsp}}{{'}}s and ''l''{{nbhsp}}{{'}}s, especially after '''bold''' or ''italic'' text. In such cases, {{tlx|nbhsp|plaincode}} can be used to insert a small amount of space before the apostrophe to avoid such collisions.
To insert an apostrophe and have it slightly spaced out from the rest of the text, use {{tlx|-'}}.<br /><br />
<br /><br />


{| class="wikitable" style="text-align: center; margin: auto;"
{| class="wikitable" style="text-align: center; margin: auto;"
Line 13: Line 12:
| ''Z''{{'}}({{nowrap|''x'' + ''y''}})
| ''Z''{{'}}({{nowrap|''x'' + ''y''}})
|-
|-
| <code>The <nowiki>''Illiad''{{nbhsp}}{{'}}s</nowiki> vocabulary</code>
| <code><nowiki>''L''{{'}}s and ''s''{{'}}s</nowiki></code>
| The ''Illiad''{{nbhsp}}{{'}}s vocabulary
| ''L''{{'}}s and ''s''{{'}}s
|}
|}


<br /><hr />
<br /><hr />
{{esctl}}
{{esctl}}