Template:Code

From STNE Wiki

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

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()