Template:Code/Doc

This template is used to create lines formatted as code. It has up to 19 parameters, depending on its usage. The version of this template that you use depends on what is entered in the first parameter.

Basic Formatting
For simply creating a line formatted as code, any value (except L or T) is entered in the first parameter:
 * T becomes your text here
 * If you need to present a single character in code font, please use &lt;code&gt;...&lt;/code&gt; instead.

Link Formatting
To format an active link as code, the previous example works: But to format the link as code without markup, it must be entered differently: Note that the first parameter is now &#76;
 * T becomes This is a link
 * T becomes L

Template Example Formatting
Formatting a line as a template example, such as these lines here, requires more parameters:
 * T


 * &#84;: The T here forces template formatting. This value should not be changed
 * Template: The name of the template being presented
 * Color: The color of the text to be displayed. This can be entered as the name of the color (for common colors only), or as a hex color value preceded by a . Wikipedia has a listing of all permitted names, and how to "create" your own colors.
 * Modifier: Enter   here to display the less-than and greater-than symbols around the parameter names
 * Parameter1 &hellip; Parameter15: The parameters of your template

T
 * produces

T

T
 * produces

T

'Author's note: creating this documentation was quite confusing, especially at the "Template Example Formatting", because I'm using this template to explain how to use this template. So many self-references...but now it's SO much easier to format things as code!'