Template:Text/doc: Difference between revisions
(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 [[ | 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 is a documentation subpage for Template:Text. It contains usage information, categories and other content that is not part of the original template page. |
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
{{Should be text}}
(pertains to images){{Not a typo}}
{{Proper name}}
{{Sic|hide=y}}