Template:Code: Difference between revisions
Jump to navigation
Jump to search
New template for inline code. Better than <code> |
Adding example. |
||
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. It can have an optional "lang" parameter, which specifies the language to format the displayed code. | ||
<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>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang={{{lang|{{{2|text}}}}}}|enclose=none}}<includeonly> |
Revision as of 20:32, 28 January 2012
This template is used for inline code demarcation. It can have an optional "lang" parameter, which specifies the language to format the displayed code.
{{code|some text goes here}} becomes: some text goes here
.