Template:Code: Difference between revisions
Appearance
m Update to CSS |
Added documentation. |
||
| Line 1: | Line 1: | ||
<code style="border: 1px solid # | <code style="border: 1px solid #ddd; border-radius: 0.25em; padding: 0.25em 0.5em; margin: 0 0.25em;">{{{1}}}</code><noinclude> | ||
==Description== | |||
Use for inserting '''''inline''''' code, i.e. as part of a sentence. For blocks of code, use the {{code|<nowiki><pre></pre></nowiki>}} tags. | |||
==Usage== | |||
<pre style="display:table">{{code|1}}</pre> | |||
Replace "1" with the code to display. | |||
</noinclude> | |||
Revision as of 09:04, 13 October 2018
{{{1}}}
Description
Use for inserting inline code, i.e. as part of a sentence. For blocks of code, use the <pre></pre> tags.
Usage
{{code|1}}
Replace "1" with the code to display.