Template:Code: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Code background color is lighter.
Uses external CSS styling instead of inline CSS.
Line 3: Line 3:
<code><nowiki>{{code|some text goes here}}</nowiki></code> becomes: {{code|some text goes here}}.
<code><nowiki>{{code|some text goes here}}</nowiki></code> becomes: {{code|some text goes here}}.


</noinclude><includeonly><tt style="background-color: #f8f8f8;">{{{1}}}​</tt><includeonly>
</noinclude><includeonly><span class="tpl-code">{{{1}}}​</span><includeonly>

Revision as of 00:36, 2 February 2013

This template is used for inline code demarcation. This should be used for things like enumerators and the like.

{{code|some text goes here}} becomes: some text goes here​.