Difference between revisions of "Template:Code/doc"

From MidrangeWiki
Jump to: navigation, search
m (Documentation: add text about <big>, use Template:tag)
m (Examples: use table to list examples)
 
Line 13: Line 13:
 
== Examples ==
 
== Examples ==
 
{|  
 
{|  
|-
+
! Code
| '''Encode:'''
+
!
 +
! 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}}
 
|-
 
|-
| '''Result:'''
+
| <pre>{{code|WRKPTF}}</pre>
|-
+
|
| {{code|this is a test of the quick brown fox}}
+
| {{code|WRKPTF}}
 
|}
 
|}
 
----
 
----

Latest revision as of 15:47, 30 January 2009

48px This is the template documentation page for {{Code}}.
It is not intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

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