Difference between revisions of "Template:Txtbox"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{|align="center" cellspacing="3px" cellpadding="5px" style="border: #ee0000 solid 1px; width:98%; margin-top:10px; margin-bottom:10px;"
+
<includeonly>{|align="center" cellspacing="3px" cellpadding="5px" style="border: #ee0000 solid 1px; width:98%; margin-top:10px; margin-bottom:10px; border-collapse: collapse;"
 
|style="font-family: Courier New, Courier, monospace; border: #aaaaaa dashed 1px; background: #f6f6f6; text-align:left; width:{{{width|50%}}}; {{white-space|{{{1|}}}}} padding-bottom:-10px;"|{{{box|What did you intend to assign to box?}}}
 
|style="font-family: Courier New, Courier, monospace; border: #aaaaaa dashed 1px; background: #f6f6f6; text-align:left; width:{{{width|50%}}}; {{white-space|{{{1|}}}}} padding-bottom:-10px;"|{{{box|What did you intend to assign to box?}}}
 
|style="border:solid; text-align:left;"|{{{txt|}}}
 
|style="border:solid; text-align:left;"|{{{txt|}}}
Line 27: Line 27:
 
'''second line''' - {{highlight|note that bold and italic and highlight/redlight}}
 
'''second line''' - {{highlight|note that bold and italic and highlight/redlight}}
 
|txt=Text to right of box
 
|txt=Text to right of box
''second line'' - {{redlight|are possible too.}}}}</noinclude><noinclude>[[category:templates]]<!-- There must not be any spaces after this comment.  padding-left: .7em; padding-right: .6em; padding-top: 1em; padding-bottom: .1em; border-collapse: collapse; -->bunch of temporary text for testing 1<br>
+
''second line'' - {{redlight|are possible too.}}}}</noinclude><noinclude>[[category:templates]]<!-- There must not be any spaces after this comment.  padding-left: .7em; padding-right: .6em; padding-top: 1em; padding-bottom: .1em; -->bunch of temporary text for testing 1<br>
 
bunch of temporary text for testing 2
 
bunch of temporary text for testing 2
 
bunch of temporary text for testing 3</noinclude>
 
bunch of temporary text for testing 3</noinclude>

Revision as of 04:09, 18 February 2013

Contents

Explanation

This template encloses the provided text within a dashed line box. 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 the <nowiki> 'prefixed with a space' formatting trick should be avoided. Other style markup like for italic or bold should be placed directly around the specific content and not around the entire template. Individual # symbols should be replaced with {{pound}} and a series of pound symbols may be enclosed within nowiki tags or they will be parsed as numbered list elements.

wrap options

normal = white-space: normal;
wrap = white-space: pre-wrap;
wiki = white-space: nowrap;
collapse = white-space: pre-line;
code = white-space: pre;
pre = white-space: pre;

Usage

{{txtbox|pre|width=value|box=content such as parens containing 5( ) spaces preserved,
'''second line - {{highlight|note that bold and italic and highlight/redlight}}'''
|txt=Text to right of box<br>
''second line'' - {{redlight|are possible too.}}}}

Example

bunch of temporary text for testing 1
bunch of temporary text for testing 2

bunch of temporary text for testing 3
content such as parens containing 5( ) spaces preserved, second line - note that bold and italic and highlight/redlight
Text to right of box second line -  are possible too. 
bunch of temporary text for testing 1

bunch of temporary text for testing 2 bunch of temporary text for testing 3

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox