Template:'/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{wikipedia|Template:Apostrophe}}
{{dochead}}{{substitute|no}}{{clear}}{{wikipedia}}
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. It is shorter than <code>&lt;nowiki&gt;'&lt;/nowiki&gt;</code> or <code>&lt;nowiki/&gt;'</code> and is designed to be clearer than an unadorned <code><nowiki>&amp;#39;</nowiki></code>. {{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.
 
To insert an apostrophe and have it slightly spaced out from the rest of the text, use {{tlx|`}}.<br /><br />


=== Usage ===
{| class="wikitable" style="text-align: center; margin: auto;"
{| class="wikitable" style="text-align: center; margin: auto;"
|-
|-
Line 14: Line 13:


=== Technical note ===
=== Technical note ===
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.
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>{{'}}</nowiki>}} and {{tlx|`|plaincode}} are used in the ''opposite'' manner compared to on Wikipedia: On Wikipedia {{plaincode|<nowiki>{{'}}</nowiki>}} adds a space before the apostrophe and {{tlx|`|plaincode}} does not, whereas on the Xenharmonic Wiki {{tlx|`|plaincode}} adds spacing and {{plaincode|<nowiki>{{'}}</nowiki>}} does not.


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>'''John'''{{'s}} house</nowiki></code>
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>'''John'''{{'s}} house</nowiki></code>


To type out a prime symbol, use the templates {{tlx|,|plaincode}} and {{tlx|-,|plaincode}}.
=== See also ===
* {{tlx|``|plaincode}} and {{tlx|-`|plaincode}} – used to insert a single prime
* {{tlx|"|plaincode}} and {{tlx|-"|plaincode}} – used to insert a double prime


{{esctl}}
{{esctl}}