Template:Var/doc

Usage
This template is to help facilitate the displaying of variable names (in mathematics, computer source code, etc.) with the semantically correct, which also renders the variable in italics, as is customary. This method is preferred to simply italicizing, for accessibility, content/presentation separation, semantic Web, and metadata reasons; &#91;X&#93;HTML's  element has semantic meaning, while simple italicization does not. "Variable" in this sense may include arbitrary or unknown names or terms, example human input, arithmetical variables in equations, etc. This template (and the underlying XHTML) are generally used if MediaWiki's  (or any other stand-alone mathematical markup) are being used.

Example:



outputs



which renders as:


 * username

compare to simple  italicization:


 * username

When used alone as variables, the letters "I" (upper-case "i") and "l" (lower-case "L") should be rendered with instead of, to make them more distinguishable: ,.

More examples:


 * with : "At the % prompt, the user must enter ssh hostname."
 * Inside  and : "The commandline should read:  (where hostname is the IP address or domain name of the system to connect to); if this is correct, press Enter."

Some of these examples may look slightly different outside this documentation, because the default background color varies by page type (articles are stark white, template documentation pale green, most other pages very pale grey). In-article example:


 * with : "At the % prompt, the user must enter ssh hostname."
 * Inside  and : "The commandline should read:  (where hostname is the IP address or domain name of the system to connect to); if this is correct, press Enter."