Difference between revisions of "Template:Code"
(Added Page) |
m (Added functionality.) |
||
Line 1: | Line 1: | ||
− | + | <noinclude> | |
− | |||
Render text in a monospaced font suitable for code. | Render text in a monospaced font suitable for code. | ||
− | |||
− | |||
== Usage == | == Usage == | ||
− | This should be used to format technical strings such as UUIDs, file paths, snippets of code, etc. It | + | This should be used to format technical strings such as UUIDs, |
+ | file paths, snippets of code, etc. | ||
+ | It <i> should </i> not be used as a general purpose formatting tool | ||
+ | to separate some text from normal text. | ||
== Examples == | == Examples == | ||
− | {{ | + | With Template: <br> |
− | | <nowiki>{{ | + | {{Code | <nowiki> {{ImageText | Nesting_MAINPAGE.png | Nesting | w = 80 | h = 80 | font size = 80% }} </nowiki>}}<br> |
− | + | ||
− | + | Without Template: <br> | |
− | + | <nowiki>{{ImageText | Nesting_MAINPAGE.png | Nesting | w = 80 | h = 80 | font size = 80% }}</nowiki> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category: Templates]] | [[Category: Templates]] | ||
− | + | ||
</noinclude> | </noinclude> | ||
+ | |||
+ | <includeonly> | ||
+ | <code> | ||
+ | {{{1}}} | ||
+ | </code> | ||
+ | </includeonly> |
Latest revision as of 15:48, 23 November 2024
Render text in a monospaced font suitable for code.
Usage
This should be used to format technical strings such as UUIDs, file paths, snippets of code, etc. It should not be used as a general purpose formatting tool to separate some text from normal text.
Examples
With Template:
{{ImageText | Nesting_MAINPAGE.png | Nesting | w = 80 | h = 80 | font size = 80% }}
Without Template:
{{ImageText | Nesting_MAINPAGE.png | Nesting | w = 80 | h = 80 | font size = 80% }}