Difference between revisions of "Template:Txtbox"

From PC-BSD Wiki
Jump to: navigation, search
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{|align="center" cellspacing="0" cellpadding="2" style="border:none; width:98%; border-collapse: collapse;"
 
<includeonly>{|align="center" cellspacing="0" cellpadding="2" style="border:none; width:98%; border-collapse: collapse;"
|style=" border: #aaaaaa dashed 1px; background: #ededed; text-align:left; padding-left: .7em; padding-right: .4em; padding-top: .4em; padding-bottom: 0; width:{{{width|50%}}}"|{{{box|error}}}
+
|style=" border: #aaaaaa dashed 1px; background: #f6f6f6; text-align:left; padding-left: .7em; padding-right: .4em; padding-top: .4em; padding-bottom: 0; width:{{{width|50%}}}"|{{{box|error}}}
 
|style="border:none; text-align:left;"|{{{1|}}}
 
|style="border:none; text-align:left;"|{{{1|}}}
|}</includeonly><noinclude>
+
|}[[category:Uses Txtbox]]</includeonly><noinclude>
 
== Explanation ==
 
== Explanation ==
(This needs to be adjusted to match the effect of the template) 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 that formatting is needed (such as <nowiki><br></nowiki>) to prevent the content from becoming one long line or paragraph (the <nowiki><</nowiki>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.
+
 
 +
(This needs to be adjusted to match the effect of the template.) 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 that formatting is needed (such as <nowiki><br></nowiki>) to prevent the content from becoming one long line or paragraph (the <nowiki><nowiki></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 ==
 
== Usage ==
 +
 
'''<nowiki>{{</nowiki>txtbox|box='''<br>
 
'''<nowiki>{{</nowiki>txtbox|box='''<br>
 
''content''<nowiki><br></nowiki><br>
 
''content''<nowiki><br></nowiki><br>
Line 18: Line 20:
  
 
== Example ==
 
== Example ==
 +
 
{{txtbox|box=
 
{{txtbox|box=
 
content<br>
 
content<br>
Line 24: Line 27:
 
Text to right of box<br>
 
Text to right of box<br>
 
''second line'' - {{redlight|are possible too.}}
 
''second line'' - {{redlight|are possible too.}}
}}</noinclude><!-- There must not be any spaces after this comment -->
+
}}</noinclude><noinclude>[[category:templates]]</noinclude><!-- There must not be any spaces after this comment. -->

Revision as of 09:43, 7 February 2013

Explanation

(This needs to be adjusted to match the effect of the template.) 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 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

{{txtbox|box=
content<br>
'''second line - {{highlight|note that bold and italic and highlight/redlight}}'''
|
Text to right of box<br>
''second line - {{redlight|are possible too.''}}
|
width=value
}}

Example

content
second line - note that bold and italic and highlight/redlight
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox