Difference between revisions of "Template:'/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Djr13
(remove the mention of decimal/html from top, as this template is no longer equivalent or even makes use of these things, and has other functionality that would break some uses assuming it being simply an apostrophe)
m (68 revisions imported)
 
(24 intermediate revisions by 19 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{Cascade-protected template}}
 +
{{COinS safe|n}}
 
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
 
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
  
Line 6: Line 8:
 
generates:
 
generates:
 
* The ''Iliad''{{'}}s vocabulary is archaic.
 
* 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, {{tl|`}} should be used if the text is already italicized. For example:
+
with a tiny amount of space before the apostrophe to avoid colliding with the italic ''d'' at the end of ''Iliad''.
* <code><nowiki>''The ''Iliad''{{`}}s vocabulary is archaic.''</nowiki></code>
 
generates:
 
* ''The ''Iliad''{{`}}s vocabulary is archaic.''
 
without the extra space, which would be distracting here.
 
  
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 this template, {{tl|'}}, uses only 0.1 em of spacing, as does {{tl|'s}}, which is used for possessives in italics.
  
===See also===
+
==See also==
* {{tpad|!}} ([[Template:Pipe]], for escaping the "|" symbol)
+
{{Quotation mark templates}}<includeonly>{{Sandbox other|
{{Quotation mark templates}}
+
| <!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
 +
[[Category:Quotation mark templates]]
 +
}}</includeonly>
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
==TemplateData==
| <!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
+
{{TemplateData header}}
[[Category:Wikipedia character-substitution templates]]
+
<templatedata>
[[Category:Inline spacing templates]]
+
{
}}</includeonly>
+
"params": {},
 +
"description": "This template creates an apostrophe with a small leading space. This template is intended for use just following bold or italic text. No parameters."
 +
}
 +
</templatedata>

Latest revision as of 08:58, 30 September 2020

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.

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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for '

This template creates an apostrophe with a small leading space. This template is intended for use just following bold or italic text. No parameters.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified