Template:Cli

From PC-BSD Wiki
Revision as of 21:02, 29 July 2012 by Tigersharke (Talk | contribs)

Jump to: navigation, search

Explanation

This template produces a window reminiscent of an xterm, for use with commandline instructions. The text to the right of the box may be some type of comment such as "a prompt asking for the root password will open." By assigning width it can be adjusted if necessary, otherwise the content to the right of the box defaults to a width of 60% out of the 98% used. Note that formatting is needed (such as <br>) to prevent the content from becoming one long line or paragraph (the <nowiki> or 'leading space' formatting tricks do not work). Other style markup like for italic or bold should be placed directly around the content and not around the entire template.

Usage

{{cli|
content<br>
second line
|
Text to right of box
''second line''<br>
|
width=value
}}

Example

Pseudo-xterm-left.png Xterm Pseudo-xterm-right.png

error

content
second line

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox