Template:Code

From STNE Wiki

(Difference between revisions)
Jump to: navigation, search
 
(4 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>
-
[[Category:Scripting]]
+
-
</noinclude><includeonly><span style="font-family:monospace; color:#FFFFFF;">{{{1}}}</span></includeonly>
+

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