Difference between revisions of "Template:Txtbox"

From PC-BSD Wiki
Jump to: navigation, search
(One intermediate revision by one user not shown)
Line 13: Line 13:
 
'''<nowiki>{{</nowiki>txtbox|box='''<br>
 
'''<nowiki>{{</nowiki>txtbox|box='''<br>
 
''content''<nowiki><br></nowiki><br>
 
''content''<nowiki><br></nowiki><br>
<nowiki>'''</nowiki>''second line'' - note that bold and italic<nowiki>'''</nowiki><br>
+
<nowiki>'''</nowiki>''second line'' - <nowiki>{{</nowiki>highlight|note that bold and italic and highlight/redlight<nowiki>}}'''</nowiki><br>
 
'''|'''<br>
 
'''|'''<br>
 
''Text to right of box''<br>
 
''Text to right of box''<br>
<nowiki>''</nowiki>''second line'' - are used as examples<nowiki>''</nowiki><nowiki><br></nowiki><br>
+
<nowiki>''</nowiki>''second line'' - <nowiki>{{</nowiki>redlight|are possible too.<nowiki>''}}</nowiki><nowiki><br></nowiki><br>
 
'''|'''<br>
 
'''|'''<br>
 
'''''width='''value''<br>
 
'''''width='''value''<br>
Line 24: Line 24:
 
{{txtbox|box=
 
{{txtbox|box=
 
content<br>
 
content<br>
'''second line''' - note that bold and italic
+
'''second line''' - {{highlight|note that bold and italic and highlight/redlight}}
 
|
 
|
 
Text to right of box<br>
 
Text to right of box<br>
''second line'' - are used as examples
+
''second line'' - {{redlight|are possible too.}}
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 20:33, 1 November 2012

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 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
''second line - {{redlight|are possible too.''}}<br>
|
width=value
}}

Example

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

Variants
Actions
Navigation
Toolbox