Template:Code: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Adding example.
More presentable code tag.
Line 1: Line 1:
<noinclude>This template is used for inline code demarcation. It can have an optional "lang" parameter, which specifies the language to format the displayed code.
<noinclude>This template is used for inline code demarcation. This should be used for things like enumerators and the like.


<nowiki>{{code|some text goes here}}</nowiki> becomes: {{code|some text goes here}}.
<nowiki>{{code|some text goes here}}</nowiki> becomes: {{code|some text goes here}}.


</noinclude><includeonly>{{#tag:syntaxhighlight|​{{{code|{{{1}}}}}}​|lang={{{lang|{{{2|text}}}}}}|enclose=none}}<includeonly>
</noinclude><includeonly><span>{{{code|{{{1}}}}}}​</span><includeonly>

Revision as of 20:35, 28 January 2012

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​.