Template:Code: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
New template for inline code. Better than <code>
 
No edit summary
 
(13 intermediate revisions by 2 users not shown)
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.


</noinclude><includeonly>{{#tag:syntaxhighlight|​{{{code|{{{1}}}}}}​|lang={{{lang|{{{2|text}}}}}}|enclose=none}}<includeonly>
<code><nowiki>{{code|some text goes here}}</nowiki></code> becomes: {{code|some text goes here}}.
 
[[Category:Inline Formatting Templates]]
</noinclude><includeonly><span class{{=}}"tpl-code">{{{1}}}</span></includeonly>

Latest revision as of 22:03, 22 November 2017

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.