Jump to content

Template:Thingamajig: Difference between revisions

From Philosophical Research
copy or update template from Template:Thingamabob
 
implement before and after text
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{TTS|html=del|class=thingamabob censor {{#if:{{{caps|}}}|caps}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}</onlyinclude></includeonly><!--
<includeonly><onlyinclude>{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{2|}}}{{{3|}}} = {{TTS|html=del|class=thingamabob censor {{#if:{{{caps|}}}|caps}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}} | #default = {{TTS|html=del|class=thingamabob censor {{#if:{{{caps|}}}|caps}}|t1={{{1}}}|{{{2}}}|t3={{{3|}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}}}</onlyinclude></includeonly><!--
 
more readable version:
{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}
| {{{2|}}}{{{3|}}} = {{TTS|html=del|class=thingamabob censor {{#if:{{{caps|}}}|caps}}|{{{1}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}
| #default = {{TTS|html=del|class=thingamabob censor {{#if:{{{caps|}}}|caps}}|t1={{{1}}}|{{{2}}}|t3={{{3|}}}|tts={{{tts|}}}|E={{{E|}}}|href={{{href|}}}}}
}}
-->
-->
== Demo ==
== Demo ==
Line 7: Line 13:
they dreaded the return of {{thingamajig|he who must not be named|E=Voldemort}}
they dreaded the return of {{thingamajig|he who must not be named|E=Voldemort}}


{{thingamajig|caps=y|Redacted}}Tale
{{thingamajig|caps=y||Redacted|Tale}}, an {{game|Undertale}} {{TTS|tts=A.U.|AU}}


== Description ==
== Description ==


This is a variation of [[Template:Thingamabob]], a template for marking words as arbitrarily replaced with something else. It may be useful for humor, for particular kinds of art projects.
This is a variation of [[Template:Thingamabob]], a template for marking words as arbitrarily replaced with something else. It may be useful for humor, for particular kinds of art projects.
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 ==
== Parameters ==
Line 19: Line 23:
* <code>tts</code>  - Pronunciation for replaced 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>tts</code>  - Pronunciation for replaced 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 that was actually or supposedly "replaced".
* <code>1</code>    - Text that was actually or supposedly "replaced".
* <code>caps</code>  - If present, text will be [[Template:caps|capitalized]]. Use this so that if screen readers are attempting to edit a page [[Template:caps|regular words will not be read as acronyms]].


=== Not present ===
=== Not present ===
Line 29: Line 34:




[[Category:Templates for markup]] [[Category:Pages serving as current format examples]]  {{ArticleTitle|NoContents=y}}
[[Category:Templates for markup]] [[Category:Pages serving as current format examples]]  {{ArticleTitle|h1=Template:thingamajig|NoContents=y}}

Latest revision as of 11:08, 5 December 2025

Demo[edit]

Beware the Jabberwock, my son

they dreaded the return of he who must not be named

Redacted, an Undertale pronounced A.U.

Description[edit]

This is a variation of Template:Thingamabob, a template for marking words as arbitrarily replaced with something else. It may be useful for humor, for particular kinds of art projects.

Parameters[edit]

  • tts - Pronunciation for replaced 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 that was actually or supposedly "replaced".
  • caps - If present, text will be capitalized. Use this so that if screen readers are attempting to edit a page regular words will not be read as acronyms.

Not present[edit]

  • class - use Template:censor if you have some reason to customize this. You may copy this template and create another template if you find a new classname and styling you like.

Internal templates[edit]