Jump to content

Template:-?/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

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

[edit]