Difference between revisions of "Template:C"
From Maths
m (Fixed typo) |
m |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
| − | This is like the <code>M</code> template | + | This is like the <code>M</code> template only for code instead, adds a code block with optional styling. |
| + | |||
| + | Note that it uses a <code><span></code> tag instead of the <code><code></code> tags | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| Line 16: | Line 18: | ||
| Optional styling, eg <code>color:#ffffff;</code> for white font | | Optional styling, eg <code>color:#ffffff;</code> for white font | ||
|} | |} | ||
| − | </noinclude>< | + | </noinclude><includeonly><span style="font-family: monospace,Courier;{{{style|}}}">{{{1|}}}</span></includeonly> |
Revision as of 19:28, 16 October 2015
This is like the M template only for code instead, adds a code block with optional styling.
Note that it uses a <span> tag instead of the <code> tags
| Attribute | Default | Comment |
|---|---|---|
| 1 | (empty string) | This is the code to show |
style
|
(empty string) | Optional styling, eg color:#ffffff; for white font
|