Difference between revisions of "Template:'/doc"
blackwiki>DocWatson42 m (Made three minor corrections.) |
blackwiki>Sardanaphalus (category update) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- PLEASE ADD CATEGORIES | + | <!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----> |
| − | |||
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>&#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>&#39;</nowiki></code>. | ||
| Line 17: | Line 16: | ||
This template is also similar to {{tl|-'}}, used to slightly space apart a leading single quote from a surrounding double quotation mark provided by a template parameter in which the content is placed, e.g. the {{para|title}} parameter of {{tl|cite web}}. The equivalent template when manually placing double quotes around a single-quoted passage is {{tl|" '}}; see also {{tl|'-}} and {{tl|' "}} for the right-hand side equivalents (parameter and manual, respectively). All of these templates use 0.2 em of spacing, while {{tl|'}}, this template, uses only 0.1 em of spacing, as does {{'s}}, which is used for possessives in italics. | This template is also similar to {{tl|-'}}, used to slightly space apart a leading single quote from a surrounding double quotation mark provided by a template parameter in which the content is placed, e.g. the {{para|title}} parameter of {{tl|cite web}}. The equivalent template when manually placing double quotes around a single-quoted passage is {{tl|" '}}; see also {{tl|'-}} and {{tl|' "}} for the right-hand side equivalents (parameter and manual, respectively). All of these templates use 0.2 em of spacing, while {{tl|'}}, this template, uses only 0.1 em of spacing, as does {{'s}}, which is used for possessives in italics. | ||
| − | == See also == | + | ===See also=== |
| − | + | * {{tpad|!}} ([[Template:Pipe]], for escaping the "|" symbol) | |
| − | * {{ | + | {{Quotation mark templates}} |
| − | <includeonly><!-- | + | <includeonly><!----PLEASE ADD CATEGORIES BELOW THIS LINE:----> |
| − | + | [[Category:Wikipedia character-substitution templates]] | |
| − | [[Category:Wikipedia | + | </includeonly> |
| − | |||
| − | </includeonly | ||
| − | |||
Revision as of 00:43, 19 August 2014
| This is a documentation subpage for Template:'. It contains usage information, categories and other content that is not part of the original template page. |
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 '.
This template leaves leading space before the apostrophe, unlike the similar {{`}} (no spacing). 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:
- The IliadTemplate:`s vocabulary is archaic.
without the extra space, which would be distracting here.
This template is also similar to {{-'}}, used to slightly space apart a leading single quote from a surrounding double quotation mark provided by a template parameter in which the content is placed, e.g. the |title= parameter of {{cite web}}. The equivalent template when manually placing double quotes around a single-quoted passage is {{" '}}; see also {{'-}} and {{' "}} for the right-hand side equivalents (parameter and manual, respectively). All of these templates use 0.2 em of spacing, while {{'}}, this template, uses only 0.1 em of spacing, as does 's, which is used for possessives in italics.
See also
- Template:Tpad (Template:Pipe, for escaping the "|" symbol)
- {{'}} (Template:Apostrophe)
- {{'s}}
- {{′}} (Template:Prime)
- {{''}}
- {{' "}} (Template:Single+double)
- {{" '}} (Template:Double+single)
- {{' '}} (Template:Single+single)
- {{" ' "}} (Template:Double+single+double)
- {{' " '}} (Template:Single+double+single)
- {{-"}} (Template:Space+double)
- {{"-}} (Template:Double+space)
- {{-'}} (Template:Space+single)
- {{'-}} (Template:Single+space)
- {{--)}} (Template:Space+parenthesis) (it's
--)because)and-)were already used by other templates) - {{(-}} (Template:Parenthesis+space) (using
(--also works, for consistency with the one above)