pavement

Template:Code

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
<span style="background-color:lightcyan" id="code">{{{1}}}</span><noinclude>
 
<span style="background-color:lightcyan" id="code">{{{1}}}</span><noinclude>
  
Usage:
+
'''Usage:'''
  
 
Indicates code text. For use within paragraphs. Template isn't functional with use of pipes "|", equal signs "=" and other special characters. <nowiki>nowiki tags</nowiki> may be used to suppress the pipe and equal functions.
 
Indicates code text. For use within paragraphs. Template isn't functional with use of pipes "|", equal signs "=" and other special characters. <nowiki>nowiki tags</nowiki> may be used to suppress the pipe and equal functions.
  
 
+
'''Examples:'''
Examples:
+
  
 
''<nowiki>{{code|kldstat -v}}</nowiki>'' produces {{code|kldstat -v}}.
 
''<nowiki>{{code|kldstat -v}}</nowiki>'' produces {{code|kldstat -v}}.
  
 
''<nowiki>{{code|ls /etc/rc.conf </nowiki><nowiki><nowiki> | </nowiki></nowiki><nowiki> grep ifconfig}}</nowiki>'' produces {{code|ls /etc/rc.conf <nowiki>|</nowiki> grep ifconfig}}
 
''<nowiki>{{code|ls /etc/rc.conf </nowiki><nowiki><nowiki> | </nowiki></nowiki><nowiki> grep ifconfig}}</nowiki>'' produces {{code|ls /etc/rc.conf <nowiki>|</nowiki> grep ifconfig}}
</noinclude>
+
 
 +
'''See also:'''
 +
 
 +
[[help:templates]]
  
 
<!--<nowiki><nowiki> | </nowiki></nowiki> this many is needed. First suppress the pipe, then to show the instruction to the reader-->
 
<!--<nowiki><nowiki> | </nowiki></nowiki> this many is needed. First suppress the pipe, then to show the instruction to the reader-->
 +
 +
</noinclude>

Latest revision as of 22:07, 1 November 2015

{{{1}}}

Usage:

Indicates code text. For use within paragraphs. Template isn't functional with use of pipes "|", equal signs "=" and other special characters. nowiki tags may be used to suppress the pipe and equal functions.

Examples:

{{code|kldstat -v}} produces kldstat -v.

{{code|ls /etc/rc.conf <nowiki> | </nowiki> grep ifconfig}} produces ls /etc/rc.conf | grep ifconfig

See also:

help:templates


Personal tools