Template:Code: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 47: | Line 47: | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[ru:Template: | [[ru:Template:Код]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 08:05, 16 January 2026
Documentation
Shortcut
This template provides an alternative to HTML <code> elements. Useful for displaying multiple code snippets with custom delimiters.
Parameters
- Anonymous parameters - code text to display
- d/delimiter - separator between items (default: space, can be "and", "or", ",", etc.)
- wb/wordbreak - allow breaking long text (useful for URLs)
Examples
{{code|text}}–text{{code|1|2|3|4|5}}–12345- Formatted code
- Comma delimiter
- And delimiter
- Or delimiter
- Escape character usage
Source
This template is a fork of Minecraft Wiki's Code template.