Difference between revisions of "Template:Code/doc"
From MidrangeWiki
MrDolomite (talk | contribs) m (created doc sub-page) |
m (→Examples: Clarity, side-by-side does not have to be left-right) |
||
Line 11: | Line 11: | ||
== Examples == | == Examples == | ||
{| | {| | ||
− | + | |- | |
− | + | | '''Encode:''' | |
|- | |- | ||
| <pre>{{code|this is a test of the quick brown fox}}</pre> | | <pre>{{code|this is a test of the quick brown fox}}</pre> | ||
+ | |- | ||
+ | | '''Result:''' | ||
+ | |- | ||
| {{code|this is a test of the quick brown fox}} | | {{code|this is a test of the quick brown fox}} | ||
− | |||
|} | |} | ||
---- | ---- |
Revision as of 06:34, 9 June 2008
Documentation
{{code}} is a shorthand notation to enclose the single parameter text inside <code>
tags. It is most useful when showing screen input or output.
Usage
{{ code | string to code-icize }}
Examples
Encode: |
{{code|this is a test of the quick brown fox}} |
Result: |
this is a test of the quick brown fox
|
- This template is a self-reference and so is part of the MidrangeWiki project rather than the content itself.