Template:Code

From STNE Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "<noinclude>Use this template for small pieces of in-line code. Use pre tags for multi-line code. Usage: <pre>{{code|Function DoStuff()}}</pre> Result: {{code|Function DoStuff()...")
 
(7 intermediate revisions not shown)
Line 1: Line 1:
-
<noinclude>Use this template for small pieces of in-line code. Use pre tags for multi-line code.
+
<includeonly><span style="font-family:monospace;">{{{1}}}</span></includeonly><noinclude>
 +
Use this template for small pieces of in-line code. Use pre tags for multi-line code.
Usage:
Usage:
Line 6: Line 7:
Result:
Result:
{{code|Function DoStuff()}}
{{code|Function DoStuff()}}
-
 
+
[[Category:Templates]]</noinclude>
-
</noinclude><onlyinclude><span style="font-family:monospace">{{{1}}}</span></onlyinclude>
+

Latest revision as of 12:17, 7 February 2011

Use this template for small pieces of in-line code. Use pre tags for multi-line code.

Usage:

{{code|Function DoStuff()}}

Result: Function DoStuff()

Personal tools