Template:-?

From blackwiki
Jump to navigation Jump to search

 ?

Template documentation[view] [edit] [history] [purge]

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 looks similar to the template version, but improperly mixes content and presentation.

See also