Difference between revisions of "Template:'/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>SMcCandlish
(update)
blackwiki>SMcCandlish
(twiddle)
Line 6: Line 6:
 
This template uses the [[List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character so that it doesn't become interpreted with adjacent italics (<code><nowiki>''</nowiki></code>) or bold (<code><nowiki>'''</nowiki></code>) wiki markup. This situation most commonly arises when taking the possessive of titles that [[Wikipedia:Manual of Style (text formatting)#Italic face|should be italicized]]. <code><nowiki>{{'}}</nowiki></code> is shorter than <code><nowiki><nowiki>'</nowiki></nowiki></code> and clearer than an unadorned <code><nowiki>&amp;#39;</nowiki></code>.
 
This template uses the [[List of XML and HTML character entity references|decimal code]] for the apostrophe or single-quote character so that it doesn't become interpreted with adjacent italics (<code><nowiki>''</nowiki></code>) or bold (<code><nowiki>'''</nowiki></code>) wiki markup. This situation most commonly arises when taking the possessive of titles that [[Wikipedia:Manual of Style (text formatting)#Italic face|should be italicized]]. <code><nowiki>{{'}}</nowiki></code> is shorter than <code><nowiki><nowiki>'</nowiki></nowiki></code> and clearer than an unadorned <code><nowiki>&amp;#39;</nowiki></code>.
  
This template leaves leading space before the apostrophe, unlike the similar {{tl|`}} (no spacing) and {{tl|'2}} (space after the apostrophe). This template is intended for use with ''[[Italic type|italic]]'' text, whereas {{tl|`}} is intended for use with non-italic text. For example:
+
This template leaves leading space before the apostrophe, unlike the similar {{tl|`}} (no spacing) and {{tl|'-}} (space after the apostrophe). This template is intended for use with ''[[Italic type|italic]]'' text, whereas {{tl|`}} is intended for use with non-italic text. For example:
 
* <code><nowiki>The ''Iliad''{{'}}s vocabulary is archaic.</nowiki></code>
 
* <code><nowiki>The ''Iliad''{{'}}s vocabulary is archaic.</nowiki></code>
 
generates:
 
generates:
Line 17: Line 17:
  
 
==See also==
 
==See also==
*{{tl|'2}}
+
*{{tl|'-}}
 
*{{tl|'s}}
 
*{{tl|'s}}
 
*{{tl|' "}}
 
*{{tl|' "}}

Revision as of 22:08, 12 May 2010

Usage

This template uses the decimal code for the apostrophe or single-quote character so that it doesn't become interpreted with adjacent italics ('') or bold (''') wiki markup. This situation most commonly arises when taking the possessive of titles that should be italicized. {{'}} is shorter than <nowiki>'</nowiki> and clearer than an unadorned &#39;.

This template leaves leading space before the apostrophe, unlike the similar {{`}} (no spacing) and {{'-}} (space after the apostrophe). This template is intended for use with italic text, whereas {{`}} is intended for use with non-italic text. For example:

  • The ''Iliad''{{'}}s vocabulary is archaic.

generates:

  • The Iliad's vocabulary is archaic.

with a tiny amount of space before the apostrophe to avoid colliding with the italic d at the end of Iliad. Conversely, {{`}} should be used if the text is already italicized. For example:

  • ''The ''Iliad''{{`}}s vocabulary is archaic.''

generates:

without the extra space, which would be distracting here.

See also