Jump to content

Template:Censor

From Philosophical Research
Revision as of 08:31, 24 August 2025 by Reversedragon (talk | contribs) (del tag / class parameter / Parameters section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Demo[edit]

Item with pronounced bad word name

SCP-540 was recently moved to site pronounced ██

Description[edit]

This is a template for superficially hiding words. It may be used to comply with rules about language on Item pages, but only in the label or alias fields.

In visual browsers, the word will be visible when highlighted. In text-to-speech, it will be pronounced "redacted", or as the string specified with tts. Whatever string was originally entered can still always be viewed in the page's "edit" tab.

Parameters[edit]

  • tts - Pronunciation for redacted text. Specify this first so that if screen readers are attempting to edit a page the TTS-friendly text is said before the "irrelevant" visual text which will be not be read as deleted.
  • 1 - Text to be redacted. For a more authentic effect, you can eyeball the space taken up by the string and fill it with the "pronounced " character.

Only for use in other Templates[edit]

  • html - HTML tag to use.
  • class - CSS classname.

Internal templates[edit]