Difference between revisions of "Template:Code/doc"
Jump to navigation
Jump to search
(Very rough documentation) |
m (category) |
||
Line 1: | Line 1: | ||
− | ==Description== | + | == Description == |
− | This | + | This template can be used to display text as in-line code. |
− | ==Example Usage== | + | == Example Usage == |
The line: | The line: | ||
− | <pre> | + | <pre>{{Code | CODE CONTENT GOES HERE }}</pre> |
− | + | ||
− | </pre> | ||
Results in: | Results in: | ||
− | {{Code| CODE CONTENT GOES HERE }} | + | {{Code | CODE CONTENT GOES HERE }} |
+ | |||
+ | == Alternative == | ||
+ | It is possible to just use the html tags directly, as they are not that long: | ||
+ | |||
+ | <pre><code>CODE CONTENT GOES HERE</code></pre> | ||
+ | |||
+ | <noinclude>[[Category:Template documentation]]</noinclude> | ||
+ | <includeonly>[[Category:Formatting templates]]</includeonly> |
Latest revision as of 21:17, 5 June 2022
Description[edit]
This template can be used to display text as in-line code.
Example Usage[edit]
The line:
{{Code | CODE CONTENT GOES HERE }}
Results in:
CODE CONTENT GOES HERE
Alternative[edit]
It is possible to just use the html tags directly, as they are not that long:
<code>CODE CONTENT GOES HERE</code>