Difference between revisions of "Template:'-/doc"
(→Usage: Attempted to avoid rendering <code> (or <pre>?) where it's obvious that the transclusion produced such tags; requires tweaking) |
(I'm not sure what I've changed here...) Tag: Manual revert |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
This template, {{tn|'-}} or | This template, {{tn|'-}} or [[Template:Single+space]], uses the {{Wikipedia|List of XML and HTML character entity references|decimal code}} for the apostrophe or single-quote character so that it does not become interpreted with adjacent italics (<code><nowiki>''</nowiki></code>) or bold (<code><nowiki>'''</nowiki></code>) wiki markup, or visually confused with other quotation marks. | ||
This template leaves trailing space after the single quotation mark/apostrophe, unlike the similar {{tl|`}} (no spacing), {{tl|-'}} (leading space before the single quote) and {{tl|'}} (smaller leading space before the apostrophe). It does not insert any semantically-invalid space characters, but does all the spacing visually-only, in {{Wikipedia|Cascading style sheets|CSS}}. | This template leaves trailing space after the single quotation mark/apostrophe, unlike the similar {{tl|`}} (no spacing), {{tl|-'}} (leading space before the single quote) and {{tl|'}} (smaller leading space before the apostrophe). It does not insert any semantically-invalid space characters, but does all the spacing visually-only, in {{Wikipedia|Cascading style sheets|CSS}}. |
Latest revision as of 06:52, 17 September 2022
This is a documentation subpage for Template:'-. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
This template, {{'-}}
or Template:Single+space, uses the decimal code for the apostrophe or single-quote character so that it does not become interpreted with adjacent italics (''
) or bold ('''
) wiki markup, or visually confused with other quotation marks.
This template leaves trailing space after the single quotation mark/apostrophe, unlike the similar {{`}} (no spacing), {{-'}} (leading space before the single quote) and {{'}} (smaller leading space before the apostrophe). It does not insert any semantically-invalid space characters, but does all the spacing visually-only, in CSS.
This template is intended for use with double-quote-providing templates when the content quoted ends on the right-hand side with an apostrophe/single quote, whereas {{-'}} is for the left-hand side, {{'}} is intended for use with italic text, and {{`}} is for non-italic text.
- Do not use these templates in the |title = parameter of Citation Style 1 templates. Doing so corrupts the COinS metadata produced by the citation.
Example:
"Critical Review of 'My Two Front Teeth{{'-}}"
results in:
- "Critical Review of 'My Two Front Teeth'"
compared to:
- "Critical Review of 'My Two Front Teeth'"
produced by:
"Critical Review of 'My Two Front Teeth'"
Note the slight visual spacing difference between these two:
- Teeth'"
- Teeth'"
The equivalent template when manually placing double quotes around a single-quoted passage is {{' "}}; see also {{-'}} and {{" '}} for the left-hand side equivalents (parameter and manual, respectively).