Difference between revisions of "Template:Cli"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>{|align="center" cellspacing="0" style="border:none; width:98%; border-collapse: collapse;"
 
<includeonly>{|align="center" cellspacing="0" style="border:none; width:98%; border-collapse: collapse;"
|style="border: #444 solid; border-width:2px 0px 0px 2px; background: #777; color: #00FF00; width:69px; height:23px;"|[[file:pseudo-xterm-left.png]]}}
+
|style="border: #444 solid; border-width:2px 0px 0px 2px; background: #777; color: #00FF00; width:69px; height:23px;"|[[file:pseudo-xterm-left.png]]
 
|style="border: #444 solid; border-width:2px 0px 0px 0px; background: #777; color: #ffFFff; height:23px; text-align:center;"|'''Xterm'''
 
|style="border: #444 solid; border-width:2px 0px 0px 0px; background: #777; color: #ffFFff; height:23px; text-align:center;"|'''Xterm'''
 
|style="border: #444 solid; border-width:2px 2px 0px 0px; background: #777; color: #00FF00; width:69px; height:23px;"|[[file:pseudo-xterm-right.png]]
 
|style="border: #444 solid; border-width:2px 2px 0px 0px; background: #777; color: #00FF00; width:69px; height:23px;"|[[file:pseudo-xterm-right.png]]

Revision as of 20:50, 29 July 2012

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. 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