Template:Code: Difference between revisions
Beardgoggles (talk | contribs) m (Minor update to padding.) |
Beardgoggles (talk | contribs) m (Added trial switch to set text color.) |
||
Line 1: | Line 1: | ||
<code style="border: 1px solid #ddd; border-radius: 0.25em; padding: 0.1em 0.33em; margin: 0 0.25em; font-weight: normal;">{{{1}}}</code><noinclude> | <code style="color: {{{color|black}}}; border: 1px solid #ddd; border-radius: 0.25em; padding: 0.1em 0.33em; margin: 0 0.25em; font-weight: normal;">{{{text|{{{1}}}}}}</code><noinclude> | ||
==Description== | ==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. | Use for inserting '''''inline''''' code, i.e. as part of a sentence. For blocks of code, use the {{code|<nowiki><pre></pre></nowiki>}} tags. |
Revision as of 17:12, 3 December 2019
{{{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.