Template:-?
Appearance
?
This template is used on approximately 2,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
Usage
The {{-?}} template creates a spaced question mark so as to avoid text collisions between italicized content and a non-italicized question mark. This situation may most frequently be encountered in DYK.
- Example (with highlighting added for clarity)
- Using the template:
... that '''[[Sergei Prokofiev]]''' wrote ''[[Peter and the Wolf]]''{{-?}}
- ... that Sergei Prokofiev wrote Peter and the Wolf?
- For comparison, here is the completely unspaced version:
... that '''[[Sergei Prokofiev]]''' wrote ''[[Peter and the Wolf]]''?
- ... that Sergei Prokofiev wrote Peter and the Wolf?
- And here is the version with a semantically incorrect non-breaking space character:
... that '''[[Sergei Prokofiev]]''' wrote ''[[Peter and the Wolf]]'' ?
- ... that Sergei Prokofiev wrote Peter and the Wolf ?
- When rendered, the non-breaking-spaced version adds too much space, and improperly mixes content and presentation.
See also
- {{'}} (Template:Apostrophe) – for use with adjacent italic markup
- {{`}} – for use with adjacent bold markup
- {{'s}} – for inserting an apostrophe and "s" immediately following italic markup
- {{`s}} – for inserting an apostrophe and "s" immediately following bold markup
- {{′}} (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)