Difference between revisions of "Template:Tt"
Jump to navigation
Jump to search
(I'm sure this won't work) |
(Change shading and documentation) |
||
| Line 1: | Line 1: | ||
| − | <includeonly><tt style="background-color:# | + | <includeonly><tt style="background-color:#f0f0f0"><small>{{{1}}}</small></tt></includeonly><noinclude> |
{{lowercase}} | {{lowercase}} | ||
{{TemplateDoc|name=tt|pages=Mainly talk pages|purpose=Formatting text as explained below|cat=}} | {{TemplateDoc|name=tt|pages=Mainly talk pages|purpose=Formatting text as explained below|cat=}} | ||
| Line 5: | Line 5: | ||
{{Parm|1|The text to format|yes|}} | {{Parm|1|The text to format|yes|}} | ||
}} | }} | ||
| − | This template formats text as small monospaced text with a lightly-shaded background | + | This template formats text as small monospaced text with a lightly-shaded background. This is useful, for example, in showing what someone has to type in. |
Here is an example: | Here is an example: | ||
| − | :To use this template with the text "Hello", type {{tt|{{tt|Hello}}}}. | + | :To use this template with the text "Hello", type {{tt|<nowiki>{{tt|Hello}}</nowiki>}}. |
| + | |||
| + | (This template takes its name from the HTML {{tt|<nowiki><tt></nowiki>}} tag.) | ||
</noinclude> | </noinclude> | ||
Revision as of 14:36, June 11, 2007
| Template: tt | |
|---|---|
| Use on | Mainly talk pages |
| Use for | Formatting text as explained below |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| 1 | The text to format | yes | |
This template formats text as small monospaced text with a lightly-shaded background. This is useful, for example, in showing what someone has to type in.
Here is an example:
- To use this template with the text "Hello", type {{tt|Hello}}.
(This template takes its name from the HTML <tt> tag.)