Template:Censor: Difference between revisions
Appearance
demo |
del tag / class parameter / Parameters section |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{TTS|html={{{html|del}}}|class={{{class|censor}}}|{{{1}}}|{{{tts|redacted}}}}}</onlyinclude></includeonly><!-- | |||
< | --> | ||
== Demo == | == Demo == | ||
Line 13: | Line 12: | ||
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 <code>tts</code>. Whatever string was originally entered can still always be viewed in the page's "edit" tab. | 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 <code>tts</code>. Whatever string was originally entered can still always be viewed in the page's "edit" tab. | ||
== Parameters == | |||
* <code>tts</code> - 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. | |||
* <code>1</code> - Text to be redacted. For a more authentic effect, you can eyeball the space taken up by the string and fill it with the "{{TTS|tts=Full block|█}}" character. | |||
=== Only for use in other Templates === | |||
* <code>html</code> - HTML tag to use. | |||
* <code>class</code> - CSS classname. | |||
== Internal templates == | |||
* [[Template:TTS]] - used to specify HTML tag plus pronunciation. | |||
[[Category:Templates for | [[Category:Templates for markup]] [[Category:Pages serving as current format examples]] {{ArticleTitle|NoContents=y}} |
Latest revision as of 08:31, 24 August 2025
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]
- Template:TTS - used to specify HTML tag plus pronunciation.