Template:Text/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
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 was copied from Wikipedia and 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.
- An additional use is to awt the colour of text.
- 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 "
" or "{{text|Fo}}
o
" or several similar patterns, but placing the whole pattern in one template is somewhat more legible.
{{text|Fo}}
{{text|o}}
- Color example
Classes with text colors adjusted corrected for both dark and light skins are named:
- red
- blue
- green
- gray
{{text|class=green|A message in green}}
:
A message in green
See also[edit source]
{{Should be text}}
(pertains to images){{Not a typo}}
{{Sic|hide=y}}