Template:Redacted: Difference between revisions
Appearance
alias because I misremembered the name of the template Tag: New redirect |
make this its own template so it can have a distinct pronunciation Tag: Removed redirect |
||
| Line 1: | Line 1: | ||
# | <includeonly><onlyinclude>{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{2|}}}{{{3|}}} = {{TTS|html=del|class={{{class|censor}}}|{{{1}}}|{{{tts|redacted}}}|title={{{title|}}}}} | #default = {{TTS|html=del|class={{{class|censor}}}|t1={{{1}}}|{{{2}}}|t3={{{3|}}}|{{{tts|redacted}}}|title={{{title|}}}}} }}</onlyinclude></includeonly><!-- | ||
more readable version: | |||
{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | |||
| {{{2|}}}{{{3|}}} = {{TTS|html=del|class={{{class|censor}}}|{{{1}}}|{{{tts|redacted}}}|title={{{title|}}}}} | |||
| #default = {{TTS|html=del|class={{{class|censor}}}|t1={{{1}}}|{{{2}}}|t3={{{3|}}}|{{{tts|redacted}}}|title={{{title|}}}}} | |||
}} | |||
--> | |||
== Demo == | |||
SCP-540 was recently moved to site {{redacted|██}} | |||
== Description == | |||
This is a template for superficially hiding words. It is a variant of [[Template:censor]] specifically for use in contexts like SCP reports. | |||
In visual browsers, the word will be visible when highlighted. In text-to-speech, it will be pronounced "redacted". Whatever string was originally entered can still always be viewed in the page's "edit" tab unless you decide to replace it with block characters. | |||
== Parameters == | |||
* <code>tts</code> - Pronunciation for redacted text. Specify this first so that if screen readers are attempting to edit a page as plain text the TTS-friendly text is said before the "irrelevant" visual text which will be not be read as deleted. | |||
* <code>t1</code> - Text to appear before redaction, such as start of swear word. | |||
* <code>1</code> / <code>2</code> - Text to be redacted, which will be visible on highlight but not pronounced. For a more authentic effect, you can eyeball the space taken up by the string and fill it with the "{{TTS|tts=Unicode full block|█|title=full block}}" character. | |||
* <code>t3</code> - Text to appear after redaction, such as plural ending of swear word. | |||
* <code>tts2</code> - Not displayed. When words are chopped in two with <code>t1</code> or <code>t3</code>, or you wish to make a word both invisible on page and searchable in editing, use this to include an un-chopped censored word for search purposes. | |||
* <code>title</code> - Text to be shown on tooltip. (optional) | |||
=== Only for use in other Templates === | |||
* <code>class</code> - CSS classname. | |||
== Internal templates == | |||
* [[Template:TTS]] - used to specify HTML tag plus pronunciation. | |||
[[Category:Templates for markup]] [[Category:Pages serving as current format examples]] {{ArticleTitle|NoContents=y}} | |||
Latest revision as of 01:13, 5 May 2026
Demo
SCP-540 was recently moved to site
Description
This is a template for superficially hiding words. It is a variant of Template:censor specifically for use in contexts like SCP reports.
In visual browsers, the word will be visible when highlighted. In text-to-speech, it will be pronounced "redacted". Whatever string was originally entered can still always be viewed in the page's "edit" tab unless you decide to replace it with block characters.
Parameters
tts- Pronunciation for redacted text. Specify this first so that if screen readers are attempting to edit a page as plain text the TTS-friendly text is said before the "irrelevant" visual text which will be not be read as deleted.t1- Text to appear before redaction, such as start of swear word.1/2- Text to be redacted, which will be visible on highlight but not pronounced. For a more authentic effect, you can eyeball the space taken up by the string and fill it with the "" character.t3- Text to appear after redaction, such as plural ending of swear word.tts2- Not displayed. When words are chopped in two witht1ort3, or you wish to make a word both invisible on page and searchable in editing, use this to include an un-chopped censored word for search purposes.title- Text to be shown on tooltip. (optional)
Only for use in other Templates
class- CSS classname.
Internal templates
- Template:TTS - used to specify HTML tag plus pronunciation.