Template:Text/doc: Difference between revisions

From Bharatpedia, an open encyclopedia
(Created page with "{{Documentation subpage}} This template will display the text that is passed in as the first unnamed parameter. It is useful to obfuscate patterns that would otherwise be recognized by bots. As such, this template should obviously '''not''' be substituted or its purpose will be defeated. ;Example : "{{tld|text|Foo}}" results in "{{text|Foo}}" To further obscure patterns, this template also supports an optional second unnamed parameter. If present, both pa...")
 
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


This template will display the text that is passed in as the first unnamed parameter. It is useful to obfuscate patterns that would otherwise be recognized by bots. As such, this template should obviously '''not''' be [[WP:TSUB|substituted]] or its purpose will be defeated.
This template will display the text that is passed in as the first unnamed parameter. It is useful to obfuscate patterns that would otherwise be recognized by bots. As such, this template should obviously '''not''' be [[BP:TSUB|substituted]] or its purpose will be defeated.


;Example : "{{tld|text|Foo}}" results in "{{text|Foo}}"
;Example : "{{tld|text|Foo}}" results in "{{text|Foo}}"

Latest revision as of 15:50, 1 October 2024

This template will display the text that is passed in as the first unnamed parameter. It is useful to obfuscate patterns that would otherwise be recognized by bots. As such, this template should obviously not be substituted or its purpose will be defeated.

Example
"{{text|Foo}}" results in "Foo"

To further obscure patterns, this template also supports an optional second unnamed parameter. If present, both parameters will be concatenated.

Example
"{{text|Fo|o}}" results in "Foo"

This effect could also be produced with "{{text|Fo}}o" or "{{text|Fo}}{{text|o}}" or several similar patterns, but placing the whole pattern in one template is somewhat more legible.

See also