Difference between revisions of "Template:Code/doc"
From MidrangeWiki
m (→Examples: Clarity, side-by-side does not have to be left-right) |
MrDolomite (talk | contribs) m (→Examples: use table to list examples) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
=Documentation= | =Documentation= | ||
− | <big>{{tl|code}}</big> is a shorthand notation to enclose the single parameter text inside | + | <big>{{tl|code}}</big> is a shorthand notation to enclose the single parameter text inside both {{tag|code}} and {{tag|big}} tags. |
+ | |||
+ | It is most useful when showing screen input or output, or referring to an object, such as a library, file, member or command. | ||
== Usage == | == Usage == | ||
Line 11: | Line 13: | ||
== Examples == | == Examples == | ||
{| | {| | ||
− | + | ! Code | |
− | + | ! | |
+ | ! Result | ||
|- | |- | ||
| <pre>{{code|this is a test of the quick brown fox}}</pre> | | <pre>{{code|this is a test of the quick brown fox}}</pre> | ||
+ | | | ||
+ | | {{code|this is a test of the quick brown fox}} | ||
|- | |- | ||
− | | | + | | <pre>{{code|WRKPTF}}</pre> |
− | | | + | | |
− | | {{code| | + | | {{code|WRKPTF}} |
|} | |} | ||
---- | ---- |
Latest revision as of 15:47, 30 January 2009
Documentation
{{code}} is a shorthand notation to enclose the single parameter text inside both <
code
>
and <
big
>
tags.
It is most useful when showing screen input or output, or referring to an object, such as a library, file, member or command.
Usage
{{ code | string to code-icize }}
Examples
Code | Result | |
---|---|---|
{{code|this is a test of the quick brown fox}} |
this is a test of the quick brown fox
| |
{{code|WRKPTF}} |
WRKPTF
|
- This template is a self-reference and so is part of the MidrangeWiki project rather than the content itself.